powenyao / SpellCrafter

A game based on spell customization. Players will be given a series of challenges and must figure out the appropriate spell to overcome the challenge. The challenge may be solved in various ways similar to Zachatronic style games. Players can optimize in different ways based on their own personal preferences.
0 stars 0 forks source link

Basic enemy to test spells #9

Closed VinayGupta23 closed 1 year ago

VinayGupta23 commented 1 year ago

Enemy should support: HP, element created from, handle spawn/death

powenyao commented 1 year ago

A basic version is now pushed as "PF_Target_Base" and its variant "PF_Target_Cube" The work is done in the script ShootingTarget.cs which implements the interface IDamageReceiver. In the inspector, you can select its starting element. After being hit by something that implements the interface IDamageDealer, it will take damage and destroy itself if too much damage.