JeremyLeland / SectorC37

A top-down space shooting game
0 stars 0 forks source link

Player “slides” if shift key held #22

Closed JeremyLeland closed 2 years ago

JeremyLeland commented 2 years ago

Player should “slide” if shift key is held. That is, they should maintain their speed and direction even if they turn to face another direction. This effectively allows for “strafing”.

when shift is released, ship should not immediately snap to new direction at default speed. The ship dx/dy should smoothly transition from old speed to new.

Maybe have damping and acceleration to bring dx/dy closer to goal, like we do with angle and goalAngle?

JeremyLeland commented 2 years ago

Make it Control, maybe? Shift makes more sense for afterburner.