diff options
| author | BoredGuy <osome3717@gmail.com> | 2026-03-16 17:47:57 +0300 |
|---|---|---|
| committer | BoredGuy <osome3717@gmail.com> | 2026-03-16 17:47:57 +0300 |
| commit | ac02199694ffef81a00a8ea47420e88ef0a35f67 (patch) | |
| tree | ab8be37dd6960954d7baa54bb1273980063c66ba /src/game.c | |
| parent | 2c2be83a370318ca69824538ed3e61784295a772 (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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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() { |
