roof and no red boxes
This commit is contained in:
@@ -116,12 +116,11 @@ fn spawn_level(
|
||||
Transform::from_xyz(-500.0, 0.0, -500.0),
|
||||
));
|
||||
// huge roof
|
||||
// commands.spawn((
|
||||
// RigidBody::Fixed,
|
||||
// Collider::cuboid(1000.0, 0.1, 1000.0),
|
||||
// Transform::from_xyz(-500.0, 3.0, -500.0),
|
||||
// ));
|
||||
// let map = GameMap::test();
|
||||
commands.spawn((
|
||||
RigidBody::Fixed,
|
||||
Collider::cuboid(1000.0, 0.1, 1000.0),
|
||||
Transform::from_xyz(-500.0, 3.0, -500.0),
|
||||
));
|
||||
|
||||
let levels = create_levels(3);
|
||||
|
||||
@@ -343,12 +342,6 @@ fn spawn_level(
|
||||
});
|
||||
}
|
||||
}
|
||||
let (x, z) = level.end_node;
|
||||
commands.spawn((
|
||||
Mesh3d(meshes.add(Cuboid::new(1.0, 20.0, 1.0))),
|
||||
MeshMaterial3d(materials.add(Color::srgb_u8(255, 0, 0))),
|
||||
Transform::from_xyz(2.0 * x as f32, 0.5, -2.0 * z as f32),
|
||||
));
|
||||
}
|
||||
commands.insert_resource(GameLevels { levels });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user