diff options
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 24 |
1 files changed, 24 insertions, 0 deletions
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 <stdio.h> +#include <string.h> +#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)); +} |
