Fork me on GitHub
View source

package haxepunk

class Cursor


extends Entity

Constructor

View source

new (image : ImageType) : Void

Constructor.


Parameters:
graphic   

Graphic to assign to the Entity.

mask   

Mask to assign to the Entity.

Functions

View source

hide () : Void

Hides the custom cursor

View source

render (camera : Camera) : Void

View source

show () : Void

Shows the custom cursor

View source

update () : Void

Updates the entitiy coordinates to match the cursor.