SaydAziz / ApocalypseTrain

A 4 player Co-Op Survival Top Down Shooter
1 stars 0 forks source link

Refactor damage system to use component pattern #92

Closed chopov1 closed 1 month ago

chopov1 commented 1 month ago

TODO: Refactor damage system to use component pattern

Solution: Remove IDamagable, create DamagableComponent. Actors can check if something has a Damageable component to deal damage or read health values like the health bar

Extras: Healthbar component is not plug n play no extra steps needed

health var is repnotify so should update when players join midgame