global tilemap (ish)

This commit is contained in:
StephenAdamson
2024-12-30 22:18:20 +00:00
parent a4342c9aa0
commit 73dcbd4102
3 changed files with 139 additions and 105 deletions
+5 -1
View File
@@ -10,6 +10,7 @@ use rand::prelude::*;
pub struct ZIndex(pub f32);
pub fn setup_level(mut commands: Commands, asset_server: Res<AssetServer>) {
println!("setup_level");
setup_tilemap(&mut commands, &asset_server);
for x in -10..10 {
@@ -164,7 +165,10 @@ fn setup_tilemap(commands: &mut Commands, asset_server: &Res<AssetServer>) {
commands.spawn(FixtureTilePrefab::rock_wall(fixture_position, asset_server));
}
"bedrock" => {
commands.spawn(FixtureTilePrefab::bedrock_wall(fixture_position, asset_server));
commands.spawn(FixtureTilePrefab::bedrock_wall(
fixture_position,
asset_server,
));
}
_ => {}
}