I think I'll try and finish something. I started a top down shooter a little bit ago, so I already had some stuff such as movement, collision, and shooting done. This morning I came up with an idea for the gameplay and story, and made the art to create the first room. The only thing I didn't make was the player sprite. I should probably do more work on the gameplay and story and less on graphics right now

Just a little confused. Do you have sound and music stored in your preferences? When the player turns the music/sound on or off, do you directly change the value you already have stored in the preferences? Thanks

If you didn't already know, LibGDX has a UI library built in: scene2d. It's pretty easy to use to add buttons, sliders, and more.

For managing different platforms, there are many different ways you can do it such as having a different option screen class for each platform, so my next idea is just one option of many. So you'll probably have a screen class called Options. When you show the options screen, you would do a check to see what platform the game is on with the method Gdx.app.getApplicationType() or whatever the method is. Then you could have separate methods for creating the options screen for each platform, so: initDesktopOptions() and initAndroidOptions(). Then you could create the UI elements for each type in each of those methods.

Sometime I'm going to add in some stuff and I would like to add in some lights. I took a look at Box2dLights and set it up and it works great (Nice and simple), however I'm not able to do what I want to do. I would like to add in lights that will not affect the lighting anywhere on the scene except where the light is and where it extends to.

I tried moving the RayHandler updateAndRender method around my render method to try different rendering positions, but it didn't do anything to help with my problem. When I put it so that it renders the light after my player and map render methods, it looks good, but where the light it is the only place where there is light. Everywhere else is completely black, but I think that is how the light is supposed to work (not sure).

Sorry if this post was confusing at all. Let me know if you need any more information or if you would like me to restate something.

I played around with it for a little bit, and I found the issue, but didn't solve it.

Pretty much, the main game class sets the screen to MainMenu. MainMenu then runs its show method once then never runs its render method, and switches back to the main game class render method. Why is it doing this?

I have no idea what to do here because I've tried copying and pasting code from another screen class I made for a different project, pasting it in, then changing all the names and everything, and it still doesn't work.

EDIT: I figured out the issue. I had to add super.render(); to the main game class. Ugh, I can't believe I forgot that, and was trying to figure out the problem for a couple hours now DX. I guess that's programming though

Hello. So, I've learned the basics/intermediate of java, and would like to start game developing. I've downloaded and setup LibGDX, but now I'm not sure where to go from here. Are there any resources that you have to start with LibGDX? Thanks!

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org