diff options
author | quou <quou@disroot.org> | 2023-05-04 14:10:41 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-04 14:10:50 +1000 |
commit | d61dcdcc384249ec7ea60c9cc18aab9df1f80577 (patch) | |
tree | 563e985e6a1f480461177f2c341d70ce5dd1498d /world.h | |
parent | c4ac81cffcf925963acb0c02584ab22626427a73 (diff) |
Add shooting.
Diffstat (limited to 'world.h')
-rw-r--r-- | world.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; }; |