Elevator simulation: Difference between revisions

m
syntax highlighting fixup automation
m (renamed youtube links)
m (syntax highlighting fixup automation)
Line 10:
{{libheader|Phix/online}}
You can run this online [http://phix.x10.mx/p2js/ElevatorSimulation.htm here].
<!--<langsyntaxhighlight Phixlang="phix">(phixonline)-->
<span style="color: #000080;font-style:italic;">--
-- demo\rosetta\ElevatorSimulation.exw
Line 219:
<span style="color: #008080;">end</span> <span style="color: #008080;">procedure</span>
<span style="color: #000000;">main</span><span style="color: #0000FF;">()</span>
<!--</langsyntaxhighlight>-->
 
=={{header|Ring}}==
<br>[https://youtu.be/I1Jt53q5O-c Elevator Simulation in Ring - video]<br><br>
<langsyntaxhighlight lang="ring">
# Project : Elevator Game
# Date : 21/08/2021-02:26:57
Line 565:
win.close()
app.quit()
</syntaxhighlight>
</lang>
 
=={{header|Wren}}==
Line 573:
{{libheader|Go-fonts}}
It's not currently possible to run a DOME application online in a browser but the following is designed to look and work more or less like the Ring entry. However, the user interface is not as fancy as I don't have ready made images of elevators etc. available.
<langsyntaxhighlight lang="ecmascript">import "dome" for Window, Platform, Process
import "graphics" for Canvas, Color, Font
import "audio" for AudioEngine
Line 791:
}
 
var Game = Elevator.new()</langsyntaxhighlight>
10,327

edits