Fork me on GitHub
View source

package com.haxepunk

class Mask


extended by Hitbox

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

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.