add score
This commit is contained in:
parent
ff743e97b8
commit
dadc5d59db
3 changed files with 26 additions and 4 deletions
|
@ -86,6 +86,7 @@ impl Sub<i32> for ZLayer {
|
|||
}
|
||||
|
||||
pub fn update(state: &mut State, engine: &mut EngineContext<'_>) {
|
||||
state.score += engine.delta * 10.0;
|
||||
match state.activity {
|
||||
Activity::House => house::update(state, engine),
|
||||
Activity::Overworld => overworld::update(state, engine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue