ASU-CodeDevils / CD-GameDev

A game made in Rust.
1 stars 0 forks source link

feat: add health and damage system #9

Closed joshuawalker3 closed 4 days ago

joshuawalker3 commented 5 days ago

Add health and damage system under HealthAndDamagePlugin. Entities with a Health component can take damage via entities with a DamageApplied component and can replenish health via entities with HealApplied component

Objective

Fixes #1 To implement a health and damage system that gives entities health, enables the removal of HP from entities, and can query for `Dead' entities

Solution

New components

New systems

Testing