Room Creating: Place Kitchen Furniture (#11)
Some checks failed
Rust / rustfmt (push) Successful in 24s
Rust / clippy (push) Failing after 2m27s
Rust / build (push) Successful in 3m8s

Co-authored-by: Glaeder <niklas@vousten.dev>
Co-authored-by: Fredi <fredrik.konrad@rwth-aachen.de>
Reviewed-on: #11
Co-authored-by: Dominic <git@msrd0.de>
Co-committed-by: Dominic <git@msrd0.de>
This commit is contained in:
Dominic 2024-07-07 11:54:42 +00:00 committed by msrd0
parent 1275b92a5b
commit 33b301a410
54 changed files with 569 additions and 46 deletions

View file

@ -1,5 +1,6 @@
use crate::{
activities::{house, overworld, Activity},
assets::Assets,
State
};
use comfy::{EngineContext, Vec2};
@ -85,6 +86,10 @@ impl Sub<i32> for ZLayer {
}
}
pub fn setup(_state: &mut State, ctx: &mut EngineContext<'_>) {
Assets::load(ctx);
}
pub fn update(state: &mut State, engine: &mut EngineContext<'_>) {
state.score += engine.delta * 10.0;
match state.activity {