Refactors worldmap gen, now uses a master list of maps for backtracking
This commit is contained in:
parent
557b7095b9
commit
25befa9343
7 changed files with 119 additions and 48 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue