Java Game Programming 37 - State Manager

preview_player
Показать описание
Java Game Programming Episode 37: In this episode of Java Game Programming we create our third helper class named the StateManager! This static class exists to help us differentiate between the different modes of our Game such as being in the Menu, the level Editor or in the actual tower defense mode.

HUGE thank you to the following Patrons who helped make this episode possible:
- Darryl S.
- Sandra Z.
- Ben S.
Рекомендации по теме
Комментарии
Автор

Couldn't you have used the Singleton method for MainMenu, Editor, and Menu so you didn't have to keep null checking?

neurogenix
Автор

Nice tutorial ireally liked it !
But i have a completly different question:
Is there a way to scale down a sprite with the code?
I know it may sound stupid but i have downloaded a really cool sprite for my hero but i didnt notice that he is not 16x16 like my other spirtes.... he is like 250x280 :D

PoWR
Автор

I have a problem in the 13th line because I'm using java 1.8 and not 1.7, how can I fix this?

mcgaming
Автор

I have a few questions for you about projectiles and enemies, plus i wanted to give you the images for these that i have questions about.  Is there a way for the enemy to turn once it hits a checkpoint? and if the projectile isn't round it does not fly straight. If you can help please let me know

jtmob
Автор

I really like this tutorial so far, but I took a break and started back up my program, finished with #36, and now for some reason my enemies don't move. The projectiles still work, and it will spawn the enemy wave size, just no movement. I can't figure out what's wrong. Any ideas?

Kentron
Автор

can anyone link Source code? I have so many errors that I can not fix

Thanks

-Lewis

lewishd
Автор

just wanted to say its multiples of 2 not factors of 2

battycrease
Автор

Holy shit. I was (once more) trying to figure out why my enemies had no tracking. Turned out I never set the Y speed thing .. *cough*

TheBrohman
Автор

#makesfunofphotoshopskills  
Great tutorial as always :)

GboxLP
Автор

Can I use this knowledge to hack League of Legends systems?

pungasairmax
Автор

i'm new and it's a shame that you did not continue building the main menu just because you made a picture for the game does not mean it's a menu, really. I kind of wish you actually went in and started making a flow pane which took in three buttons and added some CSS to make it look nice. but sadly all you did was make a switch statement that updates the background image, lame.

ALLCAPS