Class: Dragon

Dragon

new Dragon(x, y, level)

Class that defines the attributes of a dragon Enemy
Parameters:
Name Type Description
x number Initial x position
y number Initial y position
level number Initial level
Source:

Methods

cleanUpMovement()

Function that is called when the dragon is done moving
Source:

updateMovementAnimation(deltax, deltay)

Updates the dragon's animation based on what direction it is moving
Parameters:
Name Type Description
deltax number Dragon's movement on the x-axis
deltay number Dragon's movement on the y-axis
Source: