problem with the gameloop
hi,
I am new to game programming.I am developing a simple sprite based 2d game.I have problem with my game looping.In the looping when I run the animation at the same time I have to receive the user input and all the other things running at the same time.How can this be done in a single loop??
I can simply be done in sequence. You can receive the user's input, update the sprite positions, and draw the sprites. When it is executed it will seem to execute at the same time.
The length of the animation doesn't matter, you don't render the whole animation each loop, you render 1 frame (or whatever) of the animation each loop.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement