new LogicDirectionalMovement()
This component changes the Motion of an entity according to its current speed and heading. It accepts directional messages that can stand alone, or come from a mapped controller, in which case it checks the pressed
value of the message before changing its course.
Fires:
Listens to Events:
- platypus.Entity#event:accelerate
- platypus.Entity#event:component-added
- platypus.Entity#event:face
- platypus.Entity#event:handle-logic
- platypus.Entity#event:stop
- platypus.Entity#event:go-down
- platypus.Entity#event:go-south
- platypus.Entity#event:go-down-left
- platypus.Entity#event:go-southwest
- platypus.Entity#event:go-left
- platypus.Entity#event:go-west
- platypus.Entity#event:go-up-left
- platypus.Entity#event:go-northwest
- platypus.Entity#event:go-up
- platypus.Entity#event:go-north
- platypus.Entity#event:go-up-right
- platypus.Entity#event:go-northeast
- platypus.Entity#event:go-right
- platypus.Entity#event:go-east
- platypus.Entity#event:go-down-right
- platypus.Entity#event:go-southeast