Class: Robot

Robot

new Robot(x, y, level)

Class that defines the attributes of a robot 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 robot is done moving
Source:

updateMovementAnimation(deltax, deltay)

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