diff options
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/game.h b/src/game.h new file mode 100644 index 0000000..2d563f0 --- /dev/null +++ b/src/game.h @@ -0,0 +1,19 @@ +#pragma once +#include "entity.h" + +enum { MAX_ENTITIES = 128 }; + +typedef struct Game { + unsigned long uuid; + int queue_next_scene; + int queue_restart_scene; + Entity entities[MAX_ENTITIES]; +} Game; + +void game_init(Game *this); +void game_update(Game *this); +void game_draw(Game *this); +void game_restart_scene(Game *this); +Entity *game_create_entity(Game *this); +int game_entity_count(Game *this, unsigned int type); +Entity *game_get_entity(Game *this, unsigned int type); |