From d61dcdcc384249ec7ea60c9cc18aab9df1f80577 Mon Sep 17 00:00:00 2001 From: quou Date: Thu, 4 May 2023 14:10:41 +1000 Subject: Add shooting. --- world.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'world.h') diff --git a/world.h b/world.h index 9871e9b..3127f37 100644 --- a/world.h +++ b/world.h @@ -2,10 +2,9 @@ #define world_h #include "components.h" +#include "config.h" #include "player.h" -#define max_entities 256 - typedef int Entity; typedef struct World World; @@ -15,9 +14,10 @@ struct World { unsigned char bitmask[max_entities]; - CSprite sprites [max_entities]; - CPosition positions[max_entities]; - CAnimated animateds[max_entities]; + CSprite sprites [max_entities]; + CPosition positions [max_entities]; + CAnimated animateds [max_entities]; + CBullet bullets [max_entities]; Player player; }; -- cgit v1.2.3-54-g00ecf