1
0
Fork 0

Install a GalacticJet(TM) supercharger kit on the UFO to have a better look to the moon

This commit is contained in:
Eatdirt 2020-11-16 23:55:04 +01:00 committed by James Turner
parent b005ac0b5a
commit f8fd14b257

View file

@ -12,7 +12,7 @@ controls.gearDown = func(x) gear_key_down = x != 0;
# maximum speed -----------------------------------------------------------------------------------
var maxspeed = props.globals.getNode("engines/engine/speed-max-mps");
var speed = [10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000];
var speed = [10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 500000, 1000000];
var current = 7;
@ -26,6 +26,9 @@ controls.flapsDown = func(x) {
var s = speed[current];
maxspeed.setDoubleValue(s);
if (s >= 1000)
gui.popupTip("Max. Speed " ~ s/1000.0 ~ " km/s");
else
gui.popupTip("Max. Speed " ~ s ~ " m/s");
}