From 7efaa52afcc7e509f2d96af4acdd387a205ce157 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Thu, 20 Jan 2022 08:21:53 +0100 Subject: rework parsing and level mangment. commit often --- src/gameplay.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gameplay.hpp') diff --git a/src/gameplay.hpp b/src/gameplay.hpp index f82121d..be07491 100644 --- a/src/gameplay.hpp +++ b/src/gameplay.hpp @@ -10,6 +10,7 @@ #define GAMEPLAY_H_ #include "entity.hpp" +#include "map.hpp" #include "terrain.hpp" #include "window.hpp" @@ -60,6 +61,7 @@ class Game { std::string next; // next level std::string current; // next level std::string background; // next level + Level* level; int frameWidth; int frameHeight; @@ -74,7 +76,7 @@ class Game { Game(std::string const& path); ~Game(); - void start(); + Level* parse(std::string const& path); void draw(); int tick(); int getKeys(); -- cgit v1.2.3