new BHell_Mover_Point()
Point movement class. Points in the player's general direction, then proceeds straight (even if the player moves away).
Extends
Methods
initialize(x, y)
Initializes the movement's angle.
Parameters:
Name | Type | Description |
---|---|---|
x |
Initial x coordinate. |
|
y |
Initial y coordinate. |
- Overrides:
- Source:
move(oldX, oldY, speed) → {Array}
Moves in a straight line, with the angle determined during initialisation.
Parameters:
Name | Type | Description |
---|---|---|
oldX |
||
oldY |
||
speed |
- Overrides:
- Source:
Returns:
- Type
- Array