add score
All checks were successful
Rust / rustfmt (push) Successful in 19s
Rust / clippy (push) Successful in 1m3s
Rust / build (push) Successful in 2m15s

This commit is contained in:
luckyturtledev 2024-07-07 12:02:48 +02:00
parent ff743e97b8
commit dadc5d59db
3 changed files with 26 additions and 4 deletions

View file

@ -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)