Elevator simulation: Difference between revisions
Content added Content deleted
m (renamed youtube links) |
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
||
Line 10: | Line 10: | ||
{{libheader|Phix/online}} |
{{libheader|Phix/online}} |
||
You can run this online [http://phix.x10.mx/p2js/ElevatorSimulation.htm here]. |
You can run this online [http://phix.x10.mx/p2js/ElevatorSimulation.htm here]. |
||
<!--< |
<!--<syntaxhighlight lang="phix">(phixonline)--> |
||
<span style="color: #000080;font-style:italic;">-- |
<span style="color: #000080;font-style:italic;">-- |
||
-- demo\rosetta\ElevatorSimulation.exw |
-- demo\rosetta\ElevatorSimulation.exw |
||
Line 219: | Line 219: | ||
<span style="color: #008080;">end</span> <span style="color: #008080;">procedure</span> |
<span style="color: #008080;">end</span> <span style="color: #008080;">procedure</span> |
||
<span style="color: #000000;">main</span><span style="color: #0000FF;">()</span> |
<span style="color: #000000;">main</span><span style="color: #0000FF;">()</span> |
||
<!--</ |
<!--</syntaxhighlight>--> |
||
=={{header|Ring}}== |
=={{header|Ring}}== |
||
<br>[https://youtu.be/I1Jt53q5O-c Elevator Simulation in Ring - video]<br><br> |
<br>[https://youtu.be/I1Jt53q5O-c Elevator Simulation in Ring - video]<br><br> |
||
< |
<syntaxhighlight lang="ring"> |
||
# Project : Elevator Game |
# Project : Elevator Game |
||
# Date : 21/08/2021-02:26:57 |
# Date : 21/08/2021-02:26:57 |
||
Line 565: | Line 565: | ||
win.close() |
win.close() |
||
app.quit() |
app.quit() |
||
</syntaxhighlight> |
|||
</lang> |
|||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
Line 573: | Line 573: | ||
{{libheader|Go-fonts}} |
{{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. |
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. |
||
< |
<syntaxhighlight lang="ecmascript">import "dome" for Window, Platform, Process |
||
import "graphics" for Canvas, Color, Font |
import "graphics" for Canvas, Color, Font |
||
import "audio" for AudioEngine |
import "audio" for AudioEngine |
||
Line 791: | Line 791: | ||
} |
} |
||
var Game = Elevator.new()</ |
var Game = Elevator.new()</syntaxhighlight> |