Projectile hits enemy.

In the game engine:

- CollisionSystem detects collision of two entities,
- emits a CollisionEvent over the EventBus,
- DamageSystem is subscribed to these events,
- checks who collided,
- and reduces the health of the enemy in the ECS.

Wonderful !

#GameEngine
Post image

Comments