Liberty BASIC Community Forum
« Flight Simulator For Liberty Basic »

Welcome Guest. Please Login or Register.
Aug 1st, 2015, 06:46am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Flight Simulator For Liberty Basic  (Read 7294 times)
Steelweaver52
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 350
xx Flight Simulator For Liberty Basic
« Thread started on: Oct 5th, 2008, 11:36pm »

User Image

Friends:

I've written a flight simulator for Liberty Basic. I call it FlightSim. The scenery and the aircraft itself are all rendered in wire model graphics. The zip file is rather large (4MB+), owing to the size of the wav files used to produce engine sounds. The zip archive is downloadable at this link:

http://nally.wikispaces.com/file/view/fs.zip

FlightSim runs just fine in Just Basic, also.

FlightSim is likely not one of those games that you can learn without reading the help file. But if you want to take off without reading the help documents, here is the way to do it:

(1) Start the program from the LB or JB environment.
(2) Press the "Start" button to start the simulation.
(3) Press the PageUp key nine times, which will set the throttle to level 10.
(4) Press the cursorDown key twice, which will set the aircraft's pitch to +6 degrees.
(5) Wait until the speed of the aircraft reaches 100mph, at which time it will lift off.

Once you have taken off and reached an altitude of several hundred feet, you can start flying level by pressing the cursorUp key twice, which should reduce the aircraft pitch to zero degrees. I usually like to cruise at throttle level 7, and pitch of zero degrees. To bank the aircraft, press cursorLeft and cursorRight. (But really, you do need to read the help documents!)

FlightSim features:


  • Wire model graphics
  • Five virtual cities, with eight runways
  • Engine sounds
  • Eight flight instruments
  • Eight pilot views out of the cockpit
  • Eight views from virtual "spotter aircraft"
  • Four views from tower cameras
  • Five navigation beacons
  • Scriptable scenery using fsObjectScript
  • Inability to crash
  • Open source license


In the course of development and testing, I've probably flown FlightSim for about 15 hours or so. Perhaps more.

I'll gladly answer questions about the operation of the program, but post them in Game and Graphic Programming since this board is for announcements.

---Tom Nally

Edit: I forgot to add FlightSim's tagline the first time through: FlightSim is easy to fly, but hard to fly well.
« Last Edit: Oct 6th, 2008, 09:33am by Steelweaver52 » User IP Logged

Dan Teel
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 1013
xx Re: Flight Simulator For Liberty Basic
« Reply #1 on: Oct 6th, 2008, 07:19am »

Whats the cursorDown key?

Edit: Nm, just went through source so its the arrow keys.
« Last Edit: Oct 6th, 2008, 07:20am by Dan Teel » User IP Logged

ZPtr.net
CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2588
xx Re: Flight Simulator For Liberty Basic
« Reply #2 on: Oct 7th, 2008, 10:09am »

That is insanely great! Steve Jobs eat your heart out! smiley

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Alyce Watson
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM

Gender: Female
Posts: 14607
xx Re: Flight Simulator For Liberty Basic
« Reply #3 on: Oct 7th, 2008, 10:54am »

on Oct 7th, 2008, 10:09am, CarlGundel wrote:
That is insanely great! Steve Jobs eat your heart out! smiley

-Carl


Yeah. What he said, dude!
User IP Logged

Alyce
Liberty BASIC Workshop - a complete IDE for Liberty BASIC


Alyce's Restaurant
for Liberty BASIC code, tools and references
CarlGundel
Administrator
ImageImageImageImageImage


member is offline

Avatar

author of Liberty BASIC


Homepage PM


Posts: 2588
xx Re: Flight Simulator For Liberty Basic
« Reply #4 on: Oct 8th, 2008, 12:23pm »

Contest idea. Extend Tom's Flight Sim. shocked

-Carl
User IP Logged

author of Liberty BASIC
http://www.libertybasic.com
Stefan Pendl
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Computers are like babies, you must teach them what you like them to do ...


Homepage PM

Gender: Male
Posts: 5241
xx Re: Flight Simulator For Liberty Basic
« Reply #5 on: Oct 9th, 2008, 3:40pm »

Tom,
this is extraordinary, reminds me of the early FS on the C64 grin

BTW, would you mind announcing at the LB Yahoo! group too huh
User IP Logged

Stefan

Make sure to read and follow the Forum Guidelines

Liberty BASIC Pro 4.04, Windows 7 Home Premium x64 SP1, AMD Turion X2 RM-70 2GHz, 4GB RAM
Steelweaver52
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 350
xx Re: Flight Simulator For Liberty Basic
« Reply #6 on: Oct 9th, 2008, 6:47pm »

on Oct 9th, 2008, 3:40pm, Stefan Pendl wrote:
Tom,
this is extraordinary, reminds me of the early FS on the C64 grin

BTW, would you mind announcing at the LB Yahoo! group too huh


Stefan, I used to play SubLogic's Flight Simulator on the C-64, too. Bruce Artwick, SubLogic's founder, attended the University of Illinois in Champaign and wrote his first flight Simulators for 8-bit computers as a graduate thesis. (UIUC is my alma mater also, but I was there before Artwick.) Later, Microsoft bought SubLogic's Flight Simulator and renamed it Microsoft Flight Simulator.

But yes, I'll schlepp on over to the Yahoo Group. I'll copy my original announcement.

---Nally
User IP Logged

Joseph
Board Moderator

member is offline

Avatar

Hello, World!


Homepage PM

Gender: Male
Posts: 824
xx Re: Flight Simulator For Liberty Basic
« Reply #7 on: Oct 9th, 2008, 9:18pm »

This is a really cool! shocked I can tell you must have put a ton of work into it.

I managed to get off the ground. grin But since I'm a horible at flying it once you're off the ground....a video would be cool! (See how the expert does it!) wink

Anyway, I love your programs and always anxiously await them. They always blow me away! (pun).

- Joseph
« Last Edit: Oct 9th, 2008, 9:18pm by Joseph » User IP Logged

Want to know more? I have a list of pretty much everything I've ever done. Joseph's Personal LB Page
Steelweaver52
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 350
xx Re: Flight Simulator For Liberty Basic
« Reply #8 on: Oct 9th, 2008, 10:01pm »

on Oct 9th, 2008, 9:18pm, Joseph wrote:
I managed to get off the ground. grin But since I'm a horible at flying it once you're off the ground....a video would be cool! (See how the expert does it!) wink

- Joseph


Hi, Joseph. Thanks for the kind words!

There is an area within the help file called "A Program for Skillbuilding". Reading that and following the links might be helpful.

If you can take off like you said, this might be a good path forward:

(1) Take off in the way that you've learned so far.
(2) Watch the altimeter instrument. When it reaches 300 feet or a little greater, then change the pitch of the airplane to zero. You will probably do this by tapping the cursorUp key once or twice. Every press of the cursorUp key will change the pitch by -3 degrees. At any rate, the goal is to get the pitch to zero degrees.
(3) Normally, I like to fly the aircraft at a throttle level of 7. I don't know why. To get to throttle level 7, tap the pageDown key. Watch the throttle indicator. It will show you the throttle level.
(4) To steer the aircraft to the left, tap the cursorLeft key ONE TIME. The aircraft will start to roll to the left at the rate of 1 degree per cycle of the game loop. Watch the bank indicator. When the aircraft reaches -10 degrees of bank, then tap the cursorRight key ONE TIME. This will set the rate of roll to zero, which means that the aircraft will "hold" at its current bank, which is -10 degrees (or 10 degrees left).
(5) After you've flown for a while in a circle to the left, tap the cursorRight key ONE TIME. The aircraft will start to "unbank", for lack of a better term at the moment. When the bank of the aircraft reaches zero, or nearly zero, then tap the cursorLEFT key ONE TIME. The object is to stop the roll of the aircraft so that it is banked neither to the left or right.

Well, maybe those instruction weren't too good after all. But the main idea is to navigate and steer the aircraft in small increments at first until you get the hang of it.

---Nally




User IP Logged

benjamin805
Senior Member
ImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 401
xx Re: Flight Simulator For Liberty Basic
« Reply #9 on: Oct 11th, 2008, 01:20am »

Hi Steely,

Program looks cool, you should think about helping NASA get to Mars, cause it seems that there is nothing you can't get done. grin or maybe help those guys with the atom smasher to get it working right. Just a thought.
User IP Logged

mooreathome65
Guest
xx Re: Flight Simulator For Liberty Basic
« Reply #10 on: Oct 11th, 2008, 08:37am »

Did anyone say:

WOW!

yet?
User IP Logged

Lewis Eason
Team Liberty BASIC


member is offline

Avatar




PM

Gender: Male
Posts: 346
xx Re: Flight Simulator For Liberty Basic
« Reply #11 on: Oct 18th, 2008, 12:20pm »

Tom

You did it again... well done cheesy

Lewis
User IP Logged

Mark
Full Member
ImageImageImage


member is offline

Avatar

Failing to prepare is preparing to fail. Trust me, it's happened before.


Homepage PM

Gender: Male
Posts: 205
xx Re: Flight Simulator For Liberty Basic
« Reply #12 on: Oct 26th, 2008, 10:25am »

Wow! you have 5000+ lines in the code! amazing! I would've never done that!

-Mark
User IP Logged

Visit my website at http://cabsvill.weebly.com.
Also see my photo album: http://www.iExploreChina.com.
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls