Collectable

class Collectable extends Sprite

a basic collectable helper class for immovable object (e.g. a coin)

Constructor


new Collectable(x: number, y: number, settings: object) → {}
Parameters:
Name Type Description
x number

the x coordinates of the collectable

y number

the y coordinates of the collectable

settings object

See Sprite

Summary


Properties inherited from Rect

number
bottom
number
centerX
number
centerY
number
height
number
left
number
right
number
top
string
type = "Rectangle"
number
width

Properties inherited from Polygon

Array<Vector2d>
points

Powered by webdoc!