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:
Zed A. Shaw 2025-01-28 13:36:50 -05:00
parent 82216b8307
commit 59a6882b70
11 changed files with 57 additions and 10 deletions

View file

@ -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 &current();
size_t current_index() { return $current_level; }
GameLevel &get(size_t index);
LevelScaling scale_level();
};