summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2026-03-15 17:08:36 +0300
committerBoredGuy <osome3717@gmail.com>2026-03-15 17:08:36 +0300
commit9e24aa042e9fb9de34f7b445778518fcb67e24aa (patch)
treeeb71468111da570dad7e1117e04a25aeba08e29c /src/game.c
parent0ed3bb4569ded185237c6d530285382e6c2b6200 (diff)
Some Updates
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
new file mode 100644
index 0000000..6af6ab8
--- /dev/null
+++ b/src/game.c
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include <string.h>
+#include "game.h"
+
+struct game game;
+
+void update_game(float dt) {
+
+}
+
+void draw_game() {
+ for (int i = 0; i < MAX_ENTITY_COUNT; i++) {
+ const struct entity* current = &game.entities[i];
+ //Skip inactive entities
+ if (!entity_active(current))
+ continue;
+
+ draw_entity(current);
+ }
+}
+
+void init_game() {
+ memset(&game, 0, sizeof(struct game));
+}