diff options
Diffstat (limited to 'dungeon/src/lib.rs')
| -rw-r--r-- | dungeon/src/lib.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dungeon/src/lib.rs b/dungeon/src/lib.rs index 66faec3..84fc339 100644 --- a/dungeon/src/lib.rs +++ b/dungeon/src/lib.rs @@ -52,7 +52,10 @@ impl Dungeon { } impl Default for Dungeon { - fn default() -> Self { - Self::new() - } + fn default() -> Self { + let floor = Floor::default(); + let player = Entity::player(floor.player_start()); + + Self { player, floor } + } } |