summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorBoredGuy <osome3717@gmail.com>2026-03-16 17:47:57 +0300
committerBoredGuy <osome3717@gmail.com>2026-03-16 17:47:57 +0300
commitac02199694ffef81a00a8ea47420e88ef0a35f67 (patch)
treeab8be37dd6960954d7baa54bb1273980063c66ba /src/game.c
parent2c2be83a370318ca69824538ed3e61784295a772 (diff)
More work on systems
- Will be done soon (I think) - Added first entity
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() {