Could you add an option to stop ship from moving up and down?
This can be done by changing "
t.prototype.getDirection = function () {var e = Math.cos(this.rotation), t = Math.sin(this.rotation);"
to "
t.prototype.getDirection = function () {var e = Math.cos(this.rotation)*boatMovement, t = Math.sin(this.rotation)*boatMovement;"
and "(this.animationPhase = Math.sin(e * this.animationSpeed + this.animationOffset)), (this.animationPhaseAbs = Math.abs(this.animationPhase)"
to "
(this.animationPhase = Math.sin(e * this.animationSpeed + this.animationOffset)*boatMovement+this.animationOffset*boatMovement), (this.animationPhaseAbs = Math.abs(this.animationPhase)
(Where boatMovement is wether the movement is enabled or not. That might not be the best way to do it (it's not my code after all!), just want to provide an easy solution though.)
An option to remove the wave movement would also be nice.
Thanks, and love the game!