Sailboat Simulator in QBasic

Announce and discuss the progress of your various programming-related projects...programs, games, websites, tutorials, libraries...anything!

Moderators: Pete, Mods

Post Reply
aleatorylamp
Newbie
Posts: 3
Joined: Thu Nov 03, 2011 2:23 pm

Sailboat Simulator in QBasic

Post by aleatorylamp »

Hello again!

Here is a little QBasic sailing boat simulation that I thought may perhaps be of interest to a few.

The programme takes advantage of the great mathematical capabilities of Qbasic to implement trigonometrical calculations for the formulae involved in sailing: wind angle of incidence, boom angle, true and apparent wind, sail-push vector and heading - all sines and cosines, and also arctangents for the bearings to the buoys on the race-course, also for the AI yacht to find its way round. The graphics are top-view animated line drawings, showing the yachts, the four buoys, and the instruments and waypoints.
There is a menu from which the player can select one of 2 race-courses, 1 to 5 laps, and 5 degrees of AI opponent abilities (their yachts have different names and colours), as well as detailed sailing instructions.

Here is the new link:
http://www.fileswap.com/dl/o1b5dLgeS/SAILBOAT.BAS.html

Any comments and/or suggestions will be welcome!

Cheers,
Aleatory Lamp
aleatorylamp
Newbie
Posts: 3
Joined: Thu Nov 03, 2011 2:23 pm

QB64 Version of the Sailing Simulator

Post by aleatorylamp »

Hi everyone, again!

I have also made a QB64 version of the sailing simulator programme.
The only difference from the QBasic 1.1 version is a _Delay.036 slow-down instruction, otherwise the boats will race round like gnats.
By the way, yacht speed speed is tuned to the ultra-modern Soto-40 One Design Class 40ft Yacht.

The corresponding .BAS file is available at this link:
http://www.fileswap.com/dl/GPA26yHwEd/SAILQB64.BAS.html

...and the QB64 .exe stand-alone file at this link:
http://www.fileswap.com/dl/mGW0sAWBz1/SAILQB64.exe.html

I hope you enjoy it.
Cheers,
Aleatorylamp.
Post Reply