Merge branch 'main' into room-creation
This commit is contained in:
commit
c8e21d544a
20 changed files with 1214 additions and 21 deletions
|
@ -13,7 +13,7 @@ pub struct HouseState {
|
|||
player: Player
|
||||
}
|
||||
|
||||
pub fn draw(state: &crate::State, _engine: &comfy::EngineContext) {
|
||||
pub fn draw(state: &crate::State, _engine: &comfy::EngineContext<'_>) {
|
||||
//Draw House
|
||||
state.house.room.draw();
|
||||
|
||||
|
@ -24,6 +24,6 @@ pub fn draw(state: &crate::State, _engine: &comfy::EngineContext) {
|
|||
state.house.player.draw();
|
||||
}
|
||||
|
||||
pub fn update(state: &mut crate::State, _engine: &mut comfy::EngineContext) {
|
||||
pub fn update(state: &mut crate::State, _engine: &mut comfy::EngineContext<'_>) {
|
||||
state.house.player.update(&state.house.room.grid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue