aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-05 09:25:39 +1000
committerquou <quou@disroot.org>2023-05-05 09:25:39 +1000
commit280552fa4750b5dac9243782f9c0a7e0b7eea6f8 (patch)
tree6385dc740cc965dad7dc628e8b10738724ec0a42 /world.h
parent0a083f5a9a747083bbc3a1f0689e76ac5fc3a3b9 (diff)
Add a basic enemy.
Diffstat (limited to 'world.h')
-rw-r--r--world.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/world.h b/world.h
index d9995ab..9709337 100644
--- a/world.h
+++ b/world.h
@@ -13,13 +13,14 @@ struct World {
int entity_count;
int recycle_bin_count;
- unsigned char bitmask[max_entities];
+ unsigned short bitmask[max_entities];
Entity recycle_bin[max_entities];
CSprite sprites [max_entities];
CPosition positions [max_entities];
CAnimated animateds [max_entities];
CBullet bullets [max_entities];
+ CEnemy enemies [max_entities];
Player player;
};