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 b77061fed2 - Show all commits

View file

@ -65,7 +65,7 @@ fn generate_map(
// If the map is generated, we send [EndMapGeneration] and set the local
CoCo_Sol marked this conversation as resolved
Review

This should be in the get_type function and the value shouldn't be hard coded

This should be in the get_type function and the value shouldn't be hard coded
// variables to None.
if let Some(position) = spiral.next() {
commands.spawn((get_type_tile(position, noise), position as TilePosition));
commands.spawn((get_tile_type(position, noise), position as TilePosition));
} else {
end_generation_writer.send(EndMapGeneration);
*local_noise = None;