summaryrefslogtreecommitdiff
path: root/catch.h
diff options
context:
space:
mode:
authorVictor Gamper <victor@wenzeslaus.de>2020-02-03 20:52:50 +0100
committerVictor Gamper <victor@wenzeslaus.de>2020-02-03 20:52:50 +0100
commit28eaf649d1b359c34b57a344de8c1ec279292fd6 (patch)
treeac3dd5229b92928a339f64f0710c9a7ea017c9c2 /catch.h
parent562df1c63ab343aedd0249a0af391541c3890899 (diff)
downloadc-catch-r1.tar.gz
c-catch-r1.zip
Added windows compatibilityr1
Diffstat (limited to 'catch.h')
-rw-r--r--catch.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/catch.h b/catch.h
index 1283a3b..936e6b2 100644
--- a/catch.h
+++ b/catch.h
@@ -4,7 +4,12 @@
* Created on: 25.01.2020
* Author: victor
*/
+
+#ifdef WIN32
+#include <SDL.h>
+#else
#include <SDL/SDL.h>
+#endif
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
@@ -34,7 +39,7 @@
#define STATE_GAME_OVER 3
#define GAME_TIME 10
-#define TICK_SPEED 50
+#define TICK_SPEED 100
#define TICKS_PER_SECOND 10000 / TICK_SPEED
// cat and bird structures