gma.door¶
Provides a character object
Package
gma/entities/door
Inheritance chain
Tags¶
shape, door
Properties¶
Methods¶
Inherited from gma.shapes.rectangle
setPointsAndEdges
, setCentre
, setBottomLeft
, xOf
, yOf
, toString
, collided__deathtouch
- collided (where, focus, focusSide, focusVector)
Looks for door tag along with what super.collided does
Overrides
gma.shapes.rectangle.collided
Parameters
where
Side of this object that was collided with
focus
object
Thing we collided with
focusSide
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
Side of this object that was collided with
focus
object
Thing we collided with
focusSide
Side of the focus object that was collided with
focusVector
[x,y]
Amount focus is trying to move