Room Creating: Place Kitchen Furniture #11

Merged
msrd0 merged 19 commits from room-creation-placing-furniture into main 2024-07-07 11:54:43 +00:00
Showing only changes of commit c13b96d88b - Show all commits

View file

@ -42,11 +42,11 @@ pub fn update(state: &mut crate::State, ctx: &mut comfy::EngineContext<'_>) {
let house = state.house_mut(); let house = state.house_mut();
house.player.update(&house.grid); house.player.update(&house.grid);
if house.player.is_moving_to_right_room(&house.room) { if house.player.is_moving_to_right_room(&house.room) {
house.room = Room::new(ctx); house.room = Room::new(ctx);
house.player.reset_on_room(&house.room, true); house.player.reset_on_room(&house.room, true);
} else if house.player.is_moving_to_left_room(&house.room) { } else if house.player.is_moving_to_left_room(&house.room) {
house.room = Room::new(ctx); house.room = Room::new(ctx);
house.player.reset_on_room(&house.room, false); house.player.reset_on_room(&house.room, false);
} }
} }