From 91aef268319a77ee8f5a082ca89264bf2671e212 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 6 May 2023 10:39:19 +1000 Subject: Map rendering and camera movement. --- world.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'world.h') 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); -- cgit v1.2.3-54-g00ecf