


| UI | Game Updates |
|---|---|
| Controller Input | Move characters |
| Refresh Screen | Update world state |
| Controller Input | Wait... |
| Refresh Screen | Move characters |
| Controller Input | Update world state |
| Refresh Screen | Wait... |
| ... | ... |
public void run()
{
while (! _gameOver)
{
updateWorld(); // move player, creatures, projectiles, etc.
checkGameState(); // check for game over, goal achieved, etc
delay(); // maintain a consistent FPS
}
}

