Original Post
I was recently reading a tutorial about a simple 2D game engine, and no - im not making an engine, im making a game.
A stack was used for both game states and processes, and left me a little confused.
Link: http://content.gpwik...ine_System_Core
Can someone please explain to me, using examples - how stacks can be used to manage states and processes in a game, and why this is preferable to say - a switch statement?
A stack was used for both game states and processes, and left me a little confused.
Link: http://content.gpwik...ine_System_Core
Can someone please explain to me, using examples - how stacks can be used to manage states and processes in a game, and why this is preferable to say - a switch statement?