Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

gcon Namespace Reference


Detailed Description

Global engine constants namespace.


Variables

const int UPDATE_FREQ = 10
 Game updates frequency.

const float GRAVITY = 0.6f
 Gravity for entities.

const int WORLD_X = 1024
 World size in X direction.

const int WORLD_Y = 1024
 World size in Y direction.


Variable Documentation

const float gcon::GRAVITY = 0.6f
 

Gravity for entities.

Engine subtracts this from vertical entity's velocity every game update (NOT second).

const int gcon::UPDATE_FREQ = 10
 

Game updates frequency.

Game logic happens at a fixed rate per second. Rendering takes all the time that is left from the logic (so the longer your logic, the less FPS you get).

const int gcon::WORLD_X = 1024
 

World size in X direction.

Must be a power of 2. All world-related X coordinates must be in range [0..WORLD_X) - WORLD_X is already not a valid coordinate.

const int gcon::WORLD_Y = 1024
 

World size in Y direction.

Must be a power of 2. All world-related Y coordinates must be in range [0..WORLD_Y) - WORLD_Y is already not a valid coordinate.


Generated on Thu Dec 5 17:27:58 2002 for LT Game Jam Session by doxygen1.2.17