gma.door

Provides a character object

Package

gma/entities/door

Inheritance chain

gma.shapes.rectangle

Tags

shape, door

Methods

collided (where, focus, focusSide, focusVector)

Looks for door tag along with what super.collided does

Overrides gma.shapes.rectangle.collided

Parameters

where

gma.constant

Side of this object that was collided with

focus

object

Thing we collided with

focusSide

gma.constant

Side of the focus object that was collided with

focusVector

[x,y]

Amount focus is trying to move

collided__door (where, focus, focusSide, focusVector)

Collision function for hitting a door

Parameters

where

gma.constant

Side of this object that was collided with

focus

object

Thing we collided with

focusSide

gma.constant

Side of the focus object that was collided with

focusVector

[x,y]

Amount focus is trying to move