Add a renderer system with temp assets #60

Closed
CoCo_Sol wants to merge 40 commits from renderer into main
Showing only changes of commit 744d9b646e - Show all commits

View file

@ -52,7 +52,6 @@ fn generate_map(
if let (Some(perlin), Some(spiral)) = (noise.as_ref(), map_iterator.as_mut()) {
if let Some(position) = spiral.next() {
let pixel_position = position.to_pixel_coordinates((0.1, 0.1));
commands.spawn((get_type_tile(pixel_position, perlin), position));
} else {
end_map_event.send(EndMapGenerationEvent);
@ -76,7 +75,7 @@ fn get_type_tile(position: (f32, f32), noise: &Perlin) -> Tile {
fn delete_map(
mut commands: Commands,
query: Query<Entity, With<Tile>>,
mut event: EventReader<EndMapGenerationEvent>,
mut event: EventReader<MapGenerationEvent>,
) {
for _ in event.read() {
for entity in query.iter() {