Added gitignore and WIP Grid and player
This commit is contained in:
parent
c957799a81
commit
3904a7c824
5 changed files with 105 additions and 18 deletions
|
@ -2,19 +2,19 @@ use comfy::*;
|
|||
|
||||
use crate::{
|
||||
activities::{house, overworld, Activity},
|
||||
State
|
||||
State,
|
||||
};
|
||||
|
||||
pub fn update(state: &mut State, engine: &mut EngineContext) {
|
||||
match state.activity {
|
||||
Activity::House => house::update(state, engine),
|
||||
Activity::Overworld => overworld::update(state, engine)
|
||||
Activity::Overworld => overworld::update(state, engine),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn draw(state: &State, engine: &EngineContext) {
|
||||
match state.activity {
|
||||
Activity::House => house::draw(state, engine),
|
||||
Activity::Overworld => overworld::draw(state, engine)
|
||||
Activity::Overworld => overworld::draw(state, engine),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue