diff options
author | Victor Gamper <victor@wenzeslaus.de> | 2020-02-04 17:43:56 +0100 |
---|---|---|
committer | Victor Gamper <victor@wenzeslaus.de> | 2020-02-04 17:43:56 +0100 |
commit | fa68923c6a941d8d55a3f06210e3483417c119c7 (patch) | |
tree | 0d317ac33ff6028856fa436433a5cba688f40ab9 /catch.h | |
parent | 28eaf649d1b359c34b57a344de8c1ec279292fd6 (diff) | |
download | c-catch-fa68923c6a941d8d55a3f06210e3483417c119c7.tar.gz c-catch-fa68923c6a941d8d55a3f06210e3483417c119c7.zip |
Fixed timings after I confused milli- and microsecondsr2
Diffstat (limited to 'catch.h')
-rw-r--r-- | catch.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -27,9 +27,9 @@ #define CHARGEBAR_POS_X 10 #define CHARGEBAR_POS_Y 10 -#define MAXIMUM_JUMP_FORCE 3 +#define MAXIMUM_JUMP_FORCE 9 -#define BIRD_COUNT 3 +#define BIRD_COUNT 5 #define BIRD_TYPE_NONE 0 #define BIRD_TYPE_PIDGIN 1 #define BIRD_TYPE_DEAD_PIDGIN 2 @@ -37,10 +37,10 @@ #define STATE_MAIN_MENU 1 #define STATE_GAME 2 #define STATE_GAME_OVER 3 -#define GAME_TIME 10 +#define GAME_TIME 60 -#define TICK_SPEED 100 -#define TICKS_PER_SECOND 10000 / TICK_SPEED +#define TICK_SPEED 20 +#define TICKS_PER_SECOND 1000 / TICK_SPEED // cat and bird structures struct Cat { @@ -58,6 +58,7 @@ struct Bird { // function predefines extern void gameRoutine(); extern bool checkCollision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2); +extern int getRandomInt(int limit); // BitmapFontRenderer.c extern void Font_Init(); |