global tilemap (ish)
This commit is contained in:
+5
-1
@@ -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,
|
||||
));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user