Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Haukinger

Pages: [1]
1
General / Switching states
« on: September 04, 2010, 08:14:17 pm »
Hi all!

I've had a look at the Basic Game Engine 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

Pages: [1]