summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 6af6ab8..ee4dee9 100644
--- a/src/game.c
+++ b/src/game.c
@@ -5,7 +5,13 @@
struct game game;
void update_game(float dt) {
-
+ for (int i = 0; i < MAX_ENTITY_COUNT; i++) {
+ struct entity* current = &game.entities[i];
+ if (!entity_active(current))
+ continue;
+
+ update_entity(current, dt);
+ }
}
void draw_game() {