Java 2D Game Programming Episode 5 - MouseHandler, more GameState, & Vector

preview_player
Показать описание
The three in one combo. Come one come all. Creating the MouseHandler and add more features to the GameStateManager. However, the real main course would be creating the Vector class! The Vector class will handle all on-screen entity's positions.

Рекомендации по теме
Комментарии
Автор

thanks a lot for this tutorial i remember learning about game states and abstract classes in school and such however a lot of it was just empty code and i hated abstract class recently i started making a chess game and half way through i realizzed that my structure is horrible and that there was 0 progression so i looked up tutorial on game states and found this amazing tutorial . i also learned about creating a more effective game loop as well so an added bonus i just used thread . sleep () like a nood

mitzanotheryoutbechannel
Автор

Dude your views should be more like 87, 000.

retrogamingbros
Автор

Thanks again finished video! No errors or anything but when I press W I don't get a message in the terminal!

MSTennis
Автор

I'm getting a null pointer exception after creating the GameState stuff. It's having problems with the gsm.render(g) part in the GamePanel.

tylereldred
Автор

why does "Vector2f.setWorldVar(map.x, map.y);" works?
how does it know where it is pointing at?

Koto-Sama
Автор

bro, so nice but wtf... is a tutorial o a f* speed run take it chill bro

prxx