You can now go down stairs to new levels, but when you do you become stairs or a random monster.
This commit is contained in:
parent
c14efee9ea
commit
2825faf038
7 changed files with 100 additions and 49 deletions
|
@ -7,13 +7,14 @@
|
|||
#include <memory>
|
||||
#include "spatialmap.hpp"
|
||||
|
||||
using std::shared_ptr;
|
||||
|
||||
struct GameLevel {
|
||||
size_t index;
|
||||
std::shared_ptr<Map> map;
|
||||
std::shared_ptr<DinkyECS::World> world;
|
||||
std::shared_ptr<lighting::LightRender> lights;
|
||||
std::shared_ptr<SpatialMap> collision;
|
||||
shared_ptr<Map> map;
|
||||
shared_ptr<DinkyECS::World> world;
|
||||
shared_ptr<lighting::LightRender> lights;
|
||||
shared_ptr<SpatialMap> collision;
|
||||
};
|
||||
|
||||
class LevelManager {
|
||||
|
@ -23,7 +24,7 @@ class LevelManager {
|
|||
|
||||
LevelManager();
|
||||
|
||||
size_t create_level();
|
||||
size_t create_level(shared_ptr<DinkyECS::World> prev_world = nullptr);
|
||||
GameLevel &next();
|
||||
GameLevel &previous();
|
||||
GameLevel ¤t();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue