Adding a map creation plugin #57

Merged
CoCo_Sol merged 39 commits from map-generation into main 2024-02-21 20:10:03 +00:00
Showing only changes of commit 3ebe60d6cd - Show all commits

View file

@ -73,7 +73,7 @@ fn get_type(position: (f32, f32), noise: &Perlin) -> Tile {
} }
} }
/// Despawns the tiles if the event : [MapGenerationEvent] is received. /// Despawns the tiles if the event : [StartMapGeneration] is received.
fn delete_map( fn delete_map(
mut commands: Commands, mut commands: Commands,
query: Query<Entity, With<Tile>>, query: Query<Entity, With<Tile>>,