Archive for April, 2013

Nerves of Steel released

Download

Nerves of Steel is an ATC (Air Traffic Control) simulator for PRIZM.

README:

Keys

F1: Turn left
F2: Turn right
F3: Alt-
F4: Alt+
F5: Speed-
F6: Speed+
Arrows: Select plane

Rules

All planes must reach their destination without leaving the airspace.

All planes must stay 1000ft and 3mi away from each other.

Exiting planes must leave airspace at more than 5000ft.

Landing planes must fly into airport’s airspace at less than 200mph and 1000ft. Airport ATC will take over at that point.

There is no winning state, just try to outlast your previous attempt.

Interface

The radar is located on the left of the screen. It updates every second. The selected plane is shown in white. A line is draw between each plane and its destination.

The data panel is on the right side of the screen. Notice that the top heading, alt, and speed values are the command values. The bottom ones are the actual values.

Credits

flyingfisch
TakeFlight Prod.

This file is licensed under GPLv3, included with program.

[BASIC] Dynamically arrange lists

You know the problem: You want to type

For 1-> A To 5
{0}->List A
Next

but you get a syntax error – so you have to think of another way, like

{0}->List 1
{0}->List 2
{0}->List 3
{0}->List 4
{0}->List 5

This is now no longer needed!

With a simple trick, you can avoid this!
Simply try this:

“1”->Str 1
{0}->List Str 1
You will see: it works!
So, let us continue thinking. We want to have a counter.
Ne0tux wrote a small and fast program that takes the variable ‘A’ and converts it to Str 1:

“”->Str 1
For 1->Y To 1+Intg log A
StrMid(“0123456789”,1+Int (10Frac (A/10^Y)),1)+Str 1->Str 1
Next


I think everyone could write the program at him/herself, but possibly not that optimized 😉 (If there’s something that can be optimized, please tell me.)

Now you can write
For 1->A To 5
Prog “~NUM2STR”
{0->List Str 1
Next

Note: Don’t forget to save the variable Y because it’ll be erased during the progress.