Sailboat Simulator in QBasic
Posted: Mon Mar 26, 2012 6:39 am
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
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