maze walls

This commit is contained in:
AmadeusWM
2025-04-06 01:41:20 +02:00
parent de69318f51
commit 0f6b416ae4
7 changed files with 78 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ mod level_instantiation;
mod main_menu;
mod player;
mod util;
mod debugging;
fn main() {
App::new()
@@ -21,6 +22,7 @@ fn main() {
RapierPhysicsPlugin::<NoUserData>::default(),
RapierDebugRenderPlugin::default(),
player::plugin,
debugging::plugin
))
.init_state::<GameState>()
.add_systems(OnEnter(GameState::Playing), setup)
@@ -55,7 +57,7 @@ fn setup(
commands.spawn((
Mesh3d(meshes.add(Cuboid::new(1.0, 1.0, 1.0))),
MeshMaterial3d(materials.add(Color::srgb_u8(124, 144, 255))),
Transform::from_xyz(3.0, 0.5, 0.0),
Transform::from_xyz(-3.0, 0.5, 0.0),
RigidBody::Fixed,
Collider::cuboid(0.5, 0.5, 0.5),
));