diff options
Diffstat (limited to 'world.h')
-rw-r--r-- | world.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -2,19 +2,24 @@ #define world_h #include "components.h" +#include "player.h" #define max_entities 256 typedef int Entity; -typedef struct { +typedef struct World World; + +struct World { int entity_count; unsigned char bitmask[max_entities]; CSprite sprites[max_entities]; CPosition positions[max_entities]; -} World; + + Player player; +}; void init_world(World* world); Entity new_entity(World* world); |