2d game with libgdx where to start?

its only those three classes and its only test images and code. i was just trying to get setup, going from splash to mainmenu to game
the menu dosen’t go anywhere right now, i didnt want to spend time on a serious menu if i couldn’t get a basic screen change working, thanks for the help man i really appreciate it

heres the whole project http://www.mediafire.com/download.php?vcwd1qpddpw8ulz

^ Ayt. I’ll post back here if I find something out.

its only those three classes and its only test images and code. i was just trying to get setup, going from splash to mainmenu to game
the menu dosen’t go anywhere right now, i didnt want to spend time on a serious menu if i couldn’t get a basic screen change working, thanks for the help man i really appreciate it

heres the whole project http://www.mediafire.com/download.php?vcwd1qpddpw8ulz

^ Ayt. I’ll post back here if I find something out.

ok im guna be working on the sprites

ok im guna be working on the sprites

Hey hellrazer21, I figured it out…

Based on the Screen API, the Screen interface has no create() method. What it has is show()… so what I did is take everything you had inside create() and I put it inside show(). It just displays a white screen, but at least you won’t get any errors now.

That’s why you were getting a NullPointerException — because create() is never called meaning screen is indeed null when resize() is done.

Hey hellrazer21, I figured it out…

Based on the Screen API, the Screen interface has no create() method. What it has is show()… so what I did is take everything you had inside create() and I put it inside show(). It just displays a white screen, but at least you won’t get any errors now.

That’s why you were getting a NullPointerException — because create() is never called meaning screen is indeed null when resize() is done.

what if i dispose everything from splash to get a clean start with the menu?

hmmmmm… well… you can try it and tell us how it goes just to see if you can get the menu working that way :slight_smile:

hellrazer, please use google, and please post new threads for your problems instead of one giant thread.

what if i dispose everything from splash to get a clean start with the menu?

hmmmmm… well… you can try it and tell us how it goes just to see if you can get the menu working that way :slight_smile:

hellrazer, please use google, and please post new threads for your problems instead of one giant thread.

ok :-X

ok :-X

This may help, depends how you like to learn, but I found it helpful

Not just the first video , but the whole series.

This may help, depends how you like to learn, but I found it helpful

Not just the first video , but the whole series.

I’m a bit late here, but my recommendation is to learn basic Java first and get the hang of how it works and how to debug. Then start by learning Java2D, although you can do without it I recommend it to get a feel for basic UI and OOP programming. Once you’re good with that then learn other APIs like Libgdx. To learn Libgdx, you should learn how OpenGL basically works, don’t go too deep though. Then watch Dustin Riley’s tutorials and maybe get into GLSL later. It’s a long process but it will help big time. I can’t say I’m a Java expert (heck I still prefer null layouts :P) but I think this should get you fluently programming in Libgdx. Don’t forget to refer to the wiki and also refer to https://github.com/mattdesl/lwjgl-basics/wiki (all of it, not just the Libgdx section). As I said, I’m no expert so feel free to correct me in anything I say.
Hope this helps.

I’m a bit late here, but my recommendation is to learn basic Java first and get the hang of how it works and how to debug. Then start by learning Java2D, although you can do without it I recommend it to get a feel for basic UI and OOP programming. Once you’re good with that then learn other APIs like Libgdx. To learn Libgdx, you should learn how OpenGL basically works, don’t go too deep though. Then watch Dustin Riley’s tutorials and maybe get into GLSL later. It’s a long process but it will help big time. I can’t say I’m a Java expert (heck I still prefer null layouts :P) but I think this should get you fluently programming in Libgdx. Don’t forget to refer to the wiki and also refer to https://github.com/mattdesl/lwjgl-basics/wiki (all of it, not just the Libgdx section). As I said, I’m no expert so feel free to correct me in anything I say.
Hope this helps.