Provides a character object
Package gma/entities/door Inheritance chain gma.shapes.rectangle
shape, door
Inherited from gma.shapes.rectangle
setBottomLeft, collided__deathtouch, setCentre, yOf, setPointsAndEdges, xOf, toString
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 |
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 |