From 199a5e6e9ddb13af0bb557b6ebbb2c4b8f4ce873 Mon Sep 17 00:00:00 2001 From: quou Date: Wed, 3 May 2023 07:32:34 +1000 Subject: Basic player movement. --- world.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'world.h') diff --git a/world.h b/world.h index 7f19520..7dbcb4d 100644 --- a/world.h +++ b/world.h @@ -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); -- cgit v1.2.3-54-g00ecf