Skip to content

Latest commit

 

History

History
55 lines (28 loc) · 745 Bytes

extensions.md

File metadata and controls

55 lines (28 loc) · 745 Bytes

Extensions

Bonfire have many functions util added to components via extensions

GameComponent

  • seeComponent

  • seeComponentType

  • showDamage

  • simpleAttackRangeByAngle

  • simpleAttackRangeByDirection

  • simpleAttackMeleeByDirection

  • simpleAttackMeleeByAngle

  • getComponentDirectionFromMe

Attackable

  • drawDefaultLifeBar

Movement

  • followComponent

  • positionsItselfAndKeepDistance

Enemy

  • seePlayer

  • seeAndMoveToPlayer

  • simpleAttackMelee

  • simpleAttackRange

  • seeAndMoveToAttackRange

  • getAngleFomPlayer

  • getInverseAngleFomPlayer

Player

  • seeEnemy

  • simpleAttackMelee

  • simpleAttackRange