Class: BHell_Mover_Base

BHell.BHell_Mover_Base()

new BHell_Mover_Base()

Mover base class. Handles complex movements for other objects (mostly enemies).

Source:

Methods

initialize()

Mover_Base constructor.

Source:

move(oldX, oldY, speed) → {Array}

Determines the new coordinates of the owner. The base class simply moves downwards.

Parameters:
Name Type Description
oldX

Old x coordinate.

oldY

Old y coordinate.

speed

Movement speed (in pixels per frame).

Source:
Returns:

New coordinates ret[0]: x axis, ret[1]: y axis.

Type
Array