summaryrefslogtreecommitdiff
path: root/catch.h
diff options
context:
space:
mode:
authorVictor Gamper <victor@wenzeslaus.de>2020-02-08 12:32:26 +0100
committerVictor Gamper <victor@wenzeslaus.de>2020-02-08 12:32:26 +0100
commite63f3e9f71f7b0b01982f3e468b84a0eddfa45cd (patch)
tree8eb49328d63fdb4fc5bd9f54f4c030febe28ade3 /catch.h
parentfa68923c6a941d8d55a3f06210e3483417c119c7 (diff)
downloadc-catch-e63f3e9f71f7b0b01982f3e468b84a0eddfa45cd.tar.gz
c-catch-e63f3e9f71f7b0b01982f3e468b84a0eddfa45cd.zip
added an fps counter
Diffstat (limited to 'catch.h')
-rw-r--r--catch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/catch.h b/catch.h
index 1f2dd36..73d9710 100644
--- a/catch.h
+++ b/catch.h
@@ -12,6 +12,7 @@
#endif
#include <stdbool.h>
#include <unistd.h>
+#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
@@ -39,7 +40,7 @@
#define STATE_GAME_OVER 3
#define GAME_TIME 60
-#define TICK_SPEED 20
+#define TICK_SPEED 18
#define TICKS_PER_SECOND 1000 / TICK_SPEED
// cat and bird structures