From ac02199694ffef81a00a8ea47420e88ef0a35f67 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Mon, 16 Mar 2026 17:47:57 +0300 Subject: More work on systems - Will be done soon (I think) - Added first entity --- src/game.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/game.c') 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() { -- cgit v1.2.3