aboutsummaryrefslogtreecommitdiff
path: root/world.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 10:39:19 +1000
committerquou <quou@disroot.org>2023-05-06 10:39:19 +1000
commit91aef268319a77ee8f5a082ca89264bf2671e212 (patch)
tree7deb9a4a9e928d4b78f7c3398e7d9c97a4649140 /world.h
parent2ab411c4b8855d11d48454a93262e8eae3ba7fc7 (diff)
Map rendering and camera movement.
Diffstat (limited to 'world.h')
-rw-r--r--world.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/world.h b/world.h
index 923dc90..ee2dc1a 100644
--- a/world.h
+++ b/world.h
@@ -3,6 +3,7 @@
#include "components.h"
#include "config.h"
+#include "map.h"
#include "player.h"
typedef int Entity;
@@ -23,7 +24,10 @@ struct World {
CEnemy enemies [max_entities];
CCollider colliders [max_entities];
+ int cam_x, cam_y;
+
Player player;
+ Map map;
};
void init_world(World* world);