author | nireco |
Wed, 03 Dec 2008 14:25:23 +0000 | |
changeset 182 | 84675387ca74 |
parent 160 | ba0b6f421a3c |
permissions | -rw-r--r-- |
155 | 1 |
#ifndef CONFIG_HH |
2 |
#define CONFIG_HH |
|
3 |
||
4 |
#include <ClanLib/display.h> |
|
5 |
||
6 |
// This is a temporary way to declare different constants. Maybe we |
|
7 |
// should do somekind of resource manager? Do we have time? |
|
8 |
||
9 |
// Mathematical constants |
|
10 |
const float KG_PI = 3.14159265; |
|
11 |
||
12 |
// Physics simulation |
|
13 |
// Physics resolution |
|
14 |
const uint16_t MAP_WIDTH = 800; |
|
15 |
const uint16_t MAP_HEIGHT = 600; |
|
16 |
const float MAP_SCALE = 1; // One "pixel" in "real" units |
|
17 |
// Simulation |
|
18 |
const uint16_t PHYSICS_TICK_MS = 10; |
|
19 |
||
20 |
// Constants affecting physics |
|
21 |
const float MAP_GRAVITY = 1200.0; |
|
182
84675387ca74
PhyWo draw, Shot speed, Shot.show_target, Shot is now drawn with const shape...
nireco
parents:
160
diff
changeset
|
22 |
const float PLAYER_COLLISION_ELASTICITY = 0.3; // TODO: This could be |
155 | 23 |
// different for different |
24 |
// objects |
|
25 |
||
26 |
// Player properties |
|
27 |
const float PLAYER_MASS = 10.0; |
|
28 |
const float PLAYER_MOVE_FORCE = 5000.0; |
|
29 |
const float PLAYER_MIN_SPEED = 30.0; |
|
30 |
const float PLAYER_JUMP_MIN_DISTANCE = 5.0; |
|
31 |
const float PLAYER_AIM_MIN = -KG_PI/4; |
|
32 |
const float PLAYER_AIM_MAX = KG_PI/2; |
|
33 |
const float PLAYER_INITIAL_X = 400.0; |
|
34 |
const float PLAYER_INITIAL_Y = 300.0; |
|
35 |
const float CROSSHAIR_ANGLE_SPEED = PI/40; |
|
36 |
||
160 | 37 |
const float PLAYER_MAX_SPEED = 70; |
38 |
||
155 | 39 |
// Graphical properties |
40 |
const CL_Color COLOR_EMPTY(86, 41, 0); |
|
41 |
const CL_Color COLOR_DIRT(144, 82, 23); |
|
42 |
const CL_Color COLOR_ROCK(132, 136, 135); |
|
43 |
||
44 |
#endif |