summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h
new file mode 100644
index 0000000..4aa377b
--- /dev/null
+++ b/src/game.h
@@ -0,0 +1,19 @@
+#ifndef GAME_H_
+#define GAME_H_
+/*
+ * Defines the data needed for the game scene
+ * the data for the game is stored as a global variable
+ * of type struct game defined in game.c
+ */
+#include "entity.h"
+#include "constants.h"
+
+struct game {
+ struct entity entities[MAX_ENTITY_COUNT];
+};
+
+void update_game(float dt);
+void draw_game();
+void init_game();
+
+#endif