diff options
Diffstat (limited to 'src/consts.h')
-rw-r--r-- | src/consts.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/consts.h b/src/consts.h index a6c9985..581018d 100644 --- a/src/consts.h +++ b/src/consts.h | |||
@@ -14,7 +14,13 @@ const int FONT_COLS = 16; | |||
14 | const int FRAMES_PER_SECOND = 60; | 14 | const int FRAMES_PER_SECOND = 60; |
15 | const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND; | 15 | const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND; |
16 | 16 | ||
17 | #define JUMP_VELOCITY(h, l) (-2 * (h) / (l)) | 17 | #define CALC_VELOCITY(h, l) (-2 * (h) / (l)) |
18 | #define JUMP_GRAVITY(h, l) (2 * ((h) / (l)) / (l)) | 18 | #define CALC_GRAVITY(h, l) (2 * ((h) / (l)) / (l)) |
19 | |||
20 | const double NORMAL_GRAVITY = CALC_GRAVITY(TILE_HEIGHT*3.5, 0.233); | ||
21 | const double JUMP_GRAVITY = CALC_GRAVITY(TILE_HEIGHT*4.5, 0.3); | ||
22 | const double JUMP_VELOCITY = CALC_VELOCITY(TILE_HEIGHT*4.5, 0.3); | ||
23 | |||
24 | const double WALK_SPEED = 90; | ||
19 | 25 | ||
20 | #endif | 26 | #endif |