Move
moveReposition the player in a specified direction for a short duration, rotating to face that way to align the next shot.
Instructions
Move in one direction for a short duration. The player steps ~10px roughly every 20ms while the key is held and rotates to face that direction, which is also the direction shoot() will fire in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holdMs | No | How long to hold the direction, in milliseconds. Default 150. | |
| direction | Yes |