Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Add DeathOnContact component #68

Closed Noah2610 closed 4 years ago

Noah2610 commented 4 years ago

Component that makes the entity die on collision with a specific collision tag.

Replace player BulletHitSystem with this.

Noah2610 commented 4 years ago

Bullets won't delete themselves on any collision anymore. Instead, use the DeathOnContact component to make it die on certain collisions.

components: (
    bullet: (),
    death_on_contact: (
        collides_with: ["Solid", "Player"],
    ),
),