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 - j0nte33

Pages: [1]
1
General / event loop in multiple places? :S
« on: July 27, 2015, 05:07:13 pm »
okay, so im writing a super basic engine, with a statemanager.
this is basically what happends right now:
void CEngine::Update()
{
        // Code for event loop, ( close application )
                CStateMachine::GetInstance().Update();
                Draw();
}
 
in GameStateGame, lets say i have a character, i need to do keyboard check for movement.
i can't just make a event loop in GameStateGame. tried it.
Any tips?

there are some solutions i've come up with but i would like some pointers...

solution 1:
(click to show/hide)

solution 2:
(click to show/hide)
Thankyou  ;D

Pages: [1]
anything