Anonymous user
Launch rocket with countdown and acceleration in stdout: Difference between revisions
Launch rocket with countdown and acceleration in stdout (view source)
Revision as of 16:42, 7 August 2019
, 4 years ago→{{header|zkl}}: tweak
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Add a Perl 6 example) |
m (→{{header|zkl}}: tweak) |
||
Line 262:
fcn cursor2Col(n){ print("\e[%dG".fmt(n)) }
fcn
tall,tall := rocket.counts(), tall[tall.find("\n")+1];
cls(); print(rocket); cursorUp(tall);
Line 273:
// liftoff
ms:=1.0; // 1 sec
println(flame); Atomic.sleep(ms);
ms=(ms - 0.04).max(0); // 40 milliseconds faster than last time
}
}
{{out}}
<pre>
|