Wiki Page Content

Most game programs carry out the following simple stages:

  1. get an input(s) (it could be user input through mouse/keyboard/controller or some other external inputs)
  2. update a status of the game
  3. update the output of the game according to the newly updated game status.

So, if you were to write a game code it might look like:

while (true) {
    processInputs();
    updateGameStatus();
    draw();
}

Wanted Become a Game Programmer/Mian Loop (last edited 2009-06-05 00:40:15 by masa)