Class: module:Dot

module:Dot(x, y, dir, speed)

new module:Dot(x, y, dir, speed)

Parameters:
Name Type Description
x number
y number
dir number 0~360
speed number
Source:

Methods

move()

Atualiza sua posição
Source:

update(canvasWidth, canvasHeight) → {Array.<Number>}

Atualiza posição e estado proprios
Parameters:
Name Type Description
canvasWidth Number
canvasHeight Number
Source:
Returns:
Type
Array.<Number>