maze walls
This commit is contained in:
@@ -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),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user