aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-04 14:10:41 +1000
committerquou <quou@disroot.org>2023-05-04 14:10:50 +1000
commitd61dcdcc384249ec7ea60c9cc18aab9df1f80577 (patch)
tree563e985e6a1f480461177f2c341d70ce5dd1498d /world.h
parentc4ac81cffcf925963acb0c02584ab22626427a73 (diff)
Add shooting.
Diffstat (limited to 'world.h')
-rw-r--r--world.h10
1 files changed, 5 insertions, 5 deletions
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;
};