cap4053-cheeky-pixels / EmbodyGame

Embody is a dungeon crawler inspired by the Binding of Isaac that lets you possess dead enemies.
MIT License
6 stars 2 forks source link

Create boss #44

Closed Jazy5552 closed 5 years ago

Jazy5552 commented 5 years ago

Create a boss for the game. Boss mechanics are still up for discussion and suggestions can be added to this issue. Add boss health to the HUD.

Behavior checklist:

Jazy5552 commented 5 years ago

Draft for boss

Once boss is awake...

What should it do?

Well, first fly towards the player?
Start ranged attacks?

How about this: give the boss a certain radius within which it can attack with ranged.
If the player is within that radius, then simply throw fireballs.
If not, then start moving towards the player ("fly").

If, however, the player is within melee range, then start stabbing with pitchfork.

Don't stab and fireball at the same time... so maybe just have a flag called "attacking"
that gets flipped to true if you're fireballing or stabbing. Both attacks will loop their
animations. 

Be sure to put attack animations on loop!

What if player enters melee range, and exits?

OnTriggerExit for melee: attacking = false
OnTriggerStay for ranged: if ! attacking, then SetTrigger("AttackRanged") and spawn fireballs
AleksandrHovhannisyan commented 5 years ago

61