summary refs log tree commit diff stats
path: root/src/consts.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-06-26 19:59:28 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-06-26 19:59:28 -0400
commit428c401f9c1053f7e13ffe641758dfb72791d8dc (patch)
tree3b7c74e0346db3d08319e309c37e975e19395d74 /src/consts.h
parent55c8a14a7e2b2dadf0def3e09f970818164366f5 (diff)
downloadtherapy-428c401f9c1053f7e13ffe641758dfb72791d8dc.tar.gz
therapy-428c401f9c1053f7e13ffe641758dfb72791d8dc.tar.bz2
therapy-428c401f9c1053f7e13ffe641758dfb72791d8dc.zip
Player now moves
Diffstat (limited to 'src/consts.h')
-rw-r--r--src/consts.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/consts.h b/src/consts.h index 804c761..4595719 100644 --- a/src/consts.h +++ b/src/consts.h
@@ -11,4 +11,7 @@ const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT - 1;
11const int FRAMES_PER_SECOND = 60; 11const int FRAMES_PER_SECOND = 60;
12const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND; 12const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND;
13 13
14#define JUMP_VELOCITY(h, l) (-2 * (h) / (l))
15#define JUMP_GRAVITY(h, l) (2 * ((h) / (l)) / (l))
16
14#endif 17#endif