skycoin / cx-game

Game Prototype
7 stars 15 forks source link

Add Simple Floating Enemy #561

Closed ted537 closed 2 years ago

ted537 commented 2 years ago

Enemy floats by default. If enemy dash is ready, then do a dash. If the enemy is aggroed, the enemy moves toward the player (+/- 45 degrees) with a 20% chance. Otherwise, the enemy moves in a random direction. If the enemy is above the ground by 20 blocks, then this random direction must have no positive vertical component.

ted537 commented 2 years ago

Assuming that enemy should be aggro'ed when near player