diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-20 08:21:53 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-20 08:21:53 +0100 |
commit | 7efaa52afcc7e509f2d96af4acdd387a205ce157 (patch) | |
tree | 942d04c82b3f8c547f8008de2deba359864f2ddb /src/gameplay.hpp | |
parent | buff shotty & audio is now working I guess ???? ? (diff) | |
download | threshold-7efaa52afcc7e509f2d96af4acdd387a205ce157.tar.gz threshold-7efaa52afcc7e509f2d96af4acdd387a205ce157.tar.bz2 threshold-7efaa52afcc7e509f2d96af4acdd387a205ce157.tar.xz threshold-7efaa52afcc7e509f2d96af4acdd387a205ce157.tar.zst threshold-7efaa52afcc7e509f2d96af4acdd387a205ce157.zip |
rework parsing and level mangment. commit often
Diffstat (limited to 'src/gameplay.hpp')
-rw-r--r-- | src/gameplay.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |