Tagged Questions
1
vote
4answers
255 views
Knowing state of game in real time
I'm trying to code a tic tac toe game in java and I need help figuring out how to efficiently and without freezing the program check if someone won the game.
I'm only in the design stages now, I ...
0
votes
1answer
588 views
Managing Game States
I'm thinking about making a StateManager for my game. I want to know how to design it; that is, how to use a stack to push and pop states onto, and draw them to the screen.
For example, should each ...
4
votes
3answers
2k views
GameState management hierarchical FSM vs stack based FSM
I'm reading a bit on Finite State Machines to handle game states (or screens). I would like to build a rather decent FSM that can handle multiple screens.
e.g. while the game is running I want to be ...
6
votes
3answers
348 views
Common ways to keep up with character state in a 2D game?
I am currently developing a 2D Blockdude clone for learning purposes and am wondering about storing character state in the game. For example, the character can be facing either right or left. What are ...
3
votes
1answer
2k views
Handling game states for Android
Currently developing a game for Android. I went through a tutorial to get sprites, loop, etc. up and running, and it all works fine. The way it is currently set up is that Main creates a canvas, the ...