Documentation

Everything you need to create a game with FRAG

Documentation is still very much a work in progress. Please understand there may be rapid changes to this section of the website.

Documentation Progress: 5%

The Concept

Initialize. Update. Render. Shutdown.


Almost every game is constructed around a game loop, which serves a number of purposes.

Generally, a game loop is initiated and will run continuously until gameplay terminates. During each iteration of the game loop, a number of tasks are carried out. Tasks which are commonly executed during a single loop iteration include:

  • Processing user input
  • Updating game state
  • Rendering the game

Many games exhibit the pattern of implementing initialization, update, render and shutdown procedures, which can form the basis for a game loop.

FRAG follows this implementation pattern, and exposes a game loop which the user can easily hook into.