Jump to content

  • Log In with Google      Sign In   
  • Create Account


Bikonja

Member Since 02 Sep 2007
Offline Last Active Mar 02 2013 06:36 AM
-----

#5006739 [SDL] Help with keyboard input and sprite movement

Posted by Bikonja on 03 December 2012 - 01:38 PM

You need to draw your scene every frame, not just draw it once in it's first state and then update state, but not drawing.
Place your drawing code inside the while loop (don't have experience with SDL so can't really say if within SDL_PollEvent while or (!done) while but I would say you should put your drawing code inside the !done while.


PARTNERS