A downloadable game for Windows

It's a sailing game! The sail boat is simulated using lift and drag equations, with made up coefficient, I'm surprised how well it turns out to simulate sailing. The game jam was the perfect excuse to code this up, which I've been wanting to do for awhile now.

Source @: https://github.com/Mozartenhimer/SailScreenshot

Goal

Go 50 m upwind, with the wind coming from the right of the screen.

Controls

Arrow keys

  • UP: Let the sail out
  • DOWN: Pull the sail in
  • LEFT: Move the rudder to the left, to go left.
  • RIGHT: Move the rudder to the right, to go right.

Camera

  • NUMBER 1 & 2 will zoom in and out.

Game state controls:

  • SPACE: Advance 1 frame at a time (pauses too).
  • TAB: Pause/unpause.
  • ENTER: Show Debugging information.
  • R: Reset the game.
  • When paused, WASD will move the camera around

Physics Caveats:

The lift and drag of the sail & keel are accounted for, however not in the moments. The rudder does not produced any drag, but it does produce a moment, otherwise it wouldn't work. The fidelity and realism would be improved if the sail did produce it's own moment, and it would make starting off easier. Ha! Normal and Axial force coefficients of all foils are just made up completely by me. Uses First order time stepping. Things get really bad in on a slow computer at the minimum tick rate of 200Hz when you're really speeding. The sail is procedurally animating according to the lift and drag on the sail, but the shape of it is art, not science.

Download

Download
Windows 64-bit 125 kB
Download
Windows 32-bit 112 kB

Install instructions

It just runs. Apologies for not being able to sign it.

Comments

Log in with itch.io to leave a comment.

Niiice!  I'm on mobile, but even on a PC, I would dig into the code before to even install the game!!!


I wold love to some configurations on the boat, like square sails, more sails,  maybe oars. Drag in the rudder... adjust the rudder and keel size...  this is the kind of project that makes the mind sail out there...


love it!!