roof and no red boxes

This commit is contained in:
LorrensP-2158466
2025-04-06 23:18:08 +02:00
parent 8c5081b2dc
commit 3ca0db21b4
2 changed files with 13 additions and 24 deletions

View File

@@ -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 });
}