ASU-CodeDevils / CD-GameDev

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

feat: add health and damage system #9

Closed joshuawalker3 closed 1 month ago

joshuawalker3 commented 1 month 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