WIP on engine upgrade

This commit is contained in:
2025-10-04 11:58:45 -05:00
parent 7bd88c702f
commit 6e425e8eb9
3 changed files with 14 additions and 14 deletions

View File

@@ -89,10 +89,10 @@ pub(crate) fn wrap_entities(
/// | Bullet & Bullet | Nothing. Bullets won't collide with each other (and probably can't under normal gameplay conditions) |
/// | Bullet & Ship | Nothing. The player shouldn't be able to shoot themselves (and the Flying Saucer hasn't been impl.'d, so it's bullets don't count) |
pub fn collision_listener(
mut collisions: EventReader<CollisionEvent>,
mut ship_writer: EventWriter<messages::ShipDestroy>,
mut asteroid_writer: EventWriter<messages::AsteroidDestroy>,
mut bullet_writer: EventWriter<messages::BulletDestroy>,
mut collisions: BufferedReader<CollisionEvent>,
mut ship_writer: MessageWriter<messages::ShipDestroy>,
mut asteroid_writer: MessageWriter<messages::AsteroidDestroy>,
mut bullet_writer: MessageWriter<messages::BulletDestroy>,
player: Single<Entity, With<Ship>>,
bullets: Query<&Bullet>,
rocks: Query<&Asteroid>,