Levels are now expanded out as you travel down and the stairs are only placed at the end of the level instead of randomly.
This commit is contained in:
parent
82216b8307
commit
59a6882b70
11 changed files with 57 additions and 10 deletions
|
@ -17,6 +17,11 @@ struct GameLevel {
|
|||
shared_ptr<SpatialMap> collision;
|
||||
};
|
||||
|
||||
struct LevelScaling {
|
||||
int map_width=40;
|
||||
int map_height=50;
|
||||
};
|
||||
|
||||
class LevelManager {
|
||||
public:
|
||||
std::vector<GameLevel> $levels;
|
||||
|
@ -30,4 +35,5 @@ class LevelManager {
|
|||
GameLevel ¤t();
|
||||
size_t current_index() { return $current_level; }
|
||||
GameLevel &get(size_t index);
|
||||
LevelScaling scale_level();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue