Game loop

Game loop

The main game loop handles three major tasks:

  1. Get user input

  2. Update the game state

  3. Render

while(true) {
    processInput()
    update()
    render()
}

Last updated