equal
deleted
inserted
replaced
17 // Simulation |
17 // Simulation |
18 const uint16_t PHYSICS_TICK_MS = 10; |
18 const uint16_t PHYSICS_TICK_MS = 10; |
19 |
19 |
20 // Constants affecting physics |
20 // Constants affecting physics |
21 const float MAP_GRAVITY = 1200.0; |
21 const float MAP_GRAVITY = 1200.0; |
22 const float PLAYER_COLLISION_ELASTICITY = 0.3; // TODO: This could be |
|
23 // different for different |
|
24 // objects |
|
25 |
22 |
26 // Player properties |
23 // Player properties |
27 const float PLAYER_MASS = 10.0; |
24 const float PLAYER_MASS = 10.0; |
28 const float PLAYER_MOVE_FORCE = 5000.0; |
25 const float PLAYER_MOVE_FORCE = 5000.0; |
29 const float PLAYER_MIN_SPEED = 30.0; |
26 const float PLAYER_MIN_SPEED = 30.0; |
33 const float PLAYER_INITIAL_X = 400.0; |
30 const float PLAYER_INITIAL_X = 400.0; |
34 const float PLAYER_INITIAL_Y = 300.0; |
31 const float PLAYER_INITIAL_Y = 300.0; |
35 const float CROSSHAIR_ANGLE_SPEED = PI/40; |
32 const float CROSSHAIR_ANGLE_SPEED = PI/40; |
36 |
33 |
37 const float PLAYER_MAX_SPEED = 70; |
34 const float PLAYER_MAX_SPEED = 70; |
|
35 const float PLAYER_WALK_SPEED = 65; |
|
36 |
|
37 const float PLAYER_COLLISION_ELASTICITY = 0.3; // TODO: This could be |
|
38 // different for different |
|
39 // objects |
38 |
40 |
39 // Graphical properties |
41 // Graphical properties |
40 const CL_Color COLOR_EMPTY(86, 41, 0); |
42 const CL_Color COLOR_EMPTY(86, 41, 0); |
41 const CL_Color COLOR_DIRT(144, 82, 23); |
43 const CL_Color COLOR_DIRT(144, 82, 23); |
42 const CL_Color COLOR_ROCK(132, 136, 135); |
44 const CL_Color COLOR_ROCK(132, 136, 135); |