Refactors worldmap gen, now uses a master list of maps for backtracking

This commit is contained in:
Llywelwyn 2023-08-13 08:53:33 +01:00
parent 557b7095b9
commit 25befa9343
7 changed files with 119 additions and 48 deletions

View file

@ -21,6 +21,7 @@ pub enum TileType {
Bridge,
// Stairs (changes floor)
DownStair,
UpStair,
}
pub fn tile_walkable(tt: TileType) -> bool {
@ -35,7 +36,8 @@ pub fn tile_walkable(tt: TileType) -> bool {
| TileType::Sand
| TileType::ShallowWater
| TileType::Bridge
| TileType::DownStair => true,
| TileType::DownStair
| TileType::UpStair => true,
_ => false,
}
}