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 9e9eec3914 - Show all commits

View file

@ -85,9 +85,9 @@ fn get_type(position: Vec2, noise: &Perlin) -> Tile {
fn delete_map(
mut commands: Commands,
query: Query<Entity, With<Tile>>,
mut event: EventReader<StartMapGeneration>,
mut start_generation_events: EventReader<StartMapGeneration>,
) {
for _ in event.read() {
for _ in start_generation_events.read() {
for entity in query.iter() {
commands.entity(entity).despawn_recursive();
}