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. | |
|
|
Gravity for entities. Engine subtracts this from vertical entity's velocity every game update (NOT second). |
|
|
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). |
|
|
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. |
|
|
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. |
1.2.17