room-creation (#15)
Some checks failed
Rust / rustfmt (push) Successful in 25s
Rust / clippy (push) Failing after 2m29s
Rust / build (push) Successful in 3m29s

Co-authored-by: Dominic <git@msrd0.de>
Co-authored-by: Fredi <fredrik.konrad@rwth-aachen.de>
Reviewed-on: #15
Co-authored-by: Glaeder <niklas@vousten.dev>
Co-committed-by: Glaeder <niklas@vousten.dev>
This commit is contained in:
Glaeder 2024-07-07 14:13:52 +00:00 committed by Glaeder
parent fa990bfadb
commit a6d9e088ef
8 changed files with 195 additions and 59 deletions

View file

@ -66,6 +66,9 @@ impl Default for Ghost {
}
#[repr(i32)]
pub enum ZLayer {
HumanLayer = -8,
MagneticLayer = -5,
ElectricLayer = -2,
MapMax = -1,
Human = 0,
Ghost = 1
@ -86,8 +89,10 @@ impl Sub<i32> for ZLayer {
}
}
pub fn setup(_state: &mut State, ctx: &mut EngineContext<'_>) {
pub fn setup(state: &mut State, ctx: &mut EngineContext<'_>) {
Assets::load(ctx);
//house::setup(state, ctx);
}
pub fn update(state: &mut State, engine: &mut EngineContext<'_>) {