English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to find a very simple fligtht sim that will input/output pure text ONLY..what sites can you suggest? in vb 6.0 only.language: C...

2007-10-01 01:31:39 · 3 answers · asked by allure 2 in Computers & Internet Programming & Design

my life is on the line here...im not gonna pass this subject without the source code guys and its not just a simple assignment..im a total begginer and i got no idea what to do exactly

2007-10-01 03:54:16 · update #1

3 answers

Make your own...

You will need to use a timer to periodically fire to update the screens values . The timer interval shouble be set for 1000 milliseconds (1 sec) to start.

Then make a vittual joy stick using key press and ley up events to tell the program what direction you want to travel

Press D for down sets a module level variable to down. The timer fires and checks the module level variable for what direction to go then calls a series of update finctions which compute new values for display

So to control pitch you need to have a control that displays 0 for level flight (positive = nose up climbing).
If the D is pressed then you need to subtract a value from the pitch to indicate the nose of the plan is being lowered. (And U for Up) You can change these later to other keys but for now keep it simple.

You will then have to update altitude based upon the speed of the plane and the angle of pitch. Use a value in a speed display and altitude display which is initialized at start to a value like 10000 feet and 200Mph. These values will be updated everytime the timer fires and a control is being pressed

This is an interesting proble as one control affects the result of others. Start small and simple makeing one control work then add functionality and expand the controls as you get code working. Don't try to do it all at one time and it will be easier to do.

2007-10-01 02:16:46 · answer #1 · answered by MarkG 7 · 0 0

1

2016-05-02 03:25:42 · answer #2 · answered by Randi 3 · 0 0

Firstly, if this is an assignment - do it yourself. If you're having trouble writing it then talk to your tutor - it's their job to help you out.

Secondly, are you sure you know what you're talking about? You say "vb 6.0 only", and then immediately follow it with "language: C" - which is it? VB or C? I would imagine the VB would be useless for a text-based app (the V stands for "visual"...), so I'm assuming you mean C, but it's hard to tell!

2007-10-01 01:53:36 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers