Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Basic Idea of Game Architecture

By: a guest on Jan 23rd, 2013  |  syntax: C  |  size: 0.23 KB  |  views: 136  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function gameLoop() {
  2.         if (gameState == "IN_MENU") {
  3.                 renderMenu();
  4.                 processInput_Menu();
  5.                 update_Menu();
  6.         }
  7.  
  8.         if (gameState == "IN_PLAY") {
  9.                 renderGameEntities(levelNumber);
  10.                 processInput_Game();
  11.                 update_Game();
  12.         }
  13. }