equal
deleted
inserted
replaced
7 #include <ClanLib/display.h> |
7 #include <ClanLib/display.h> |
8 |
8 |
9 // This is a temporary way to declare different constants. Maybe we |
9 // This is a temporary way to declare different constants. Maybe we |
10 // should do somekind of resource manager? Do we have time? |
10 // should do somekind of resource manager? Do we have time? |
11 |
11 |
12 // Mathematical constants |
12 /** |
|
13 * The value of pi used in physics/graphics calculations |
|
14 */ |
13 const float KG_PI = 3.14159265; |
15 const float KG_PI = 3.14159265; |
14 |
16 |
15 // Physics simulation |
17 // Physics simulation |
16 // Physics resolution |
18 // Physics resolution |
17 const uint16_t MAP_WIDTH = 1000; |
19 const uint16_t MAP_WIDTH = 1000; |
19 const float MAP_SCALE = 1; // One "pixel" in "real" units |
21 const float MAP_SCALE = 1; // One "pixel" in "real" units |
20 |
22 |
21 // Simulation |
23 // Simulation |
22 const uint16_t PHYSICS_TICK_MS = 10; |
24 const uint16_t PHYSICS_TICK_MS = 10; |
23 |
25 |
24 // Constants affecting physics |
26 /** |
|
27 * The force of gravity on objects, exerted on the Y axis |
|
28 */ |
25 const float MAP_GRAVITY = 1500.0; |
29 const float MAP_GRAVITY = 1500.0; |
26 |
30 |
27 // Player properties |
31 // Player properties |
28 const float PLAYER_MASS = 10.0; |
32 const float PLAYER_MASS = 10.0; |
29 const float PLAYER_MOVE_FORCE = 1100.0; |
33 const float PLAYER_MOVE_FORCE = 1100.0; |