Fork me on GitHub
View source

package haxepunk

class Mask


extended by Hitbox

Base class for Entity collision masks. Do not use this directly, instead use the classes in haxepunk.masks.

Static variables

static read only drawContext : DrawContext

Variables

list : Masklist

The parent Masklist of the mask.

parent : Entity

The parent Entity of this mask.

Functions

View source

collide (mask : Mask) : Bool

Checks for collision with another Mask.


Parameters:
mask   

The other Mask to check against.


Returns:

If the Masks overlap.