From 9e24aa042e9fb9de34f7b445778518fcb67e24aa Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Sun, 15 Mar 2026 17:08:36 +0300 Subject: Some Updates --- src/game.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/game.c (limited to 'src/game.c') 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 +#include +#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)); +} -- cgit v1.2.3