SFML community forums
Help => General => Topic started by: Haukinger on September 04, 2010, 08:14:17 pm
-
Hi all!
I've had a look at the Basic Game Engine (http://www.sfml-dev.org/wiki/en/tutoriels/gqe_en) at the wiki.
What is the recommended way to switch between states?
I'd guess one state accesses the app's state manager and set's the next state (or drops himself), but where to put that call? I'd assume IState::Draw() as it's the only method called once per tick. But it feels wrong to put game logic there...
Thanks a lot for your advice,
Hauke