Elevator simulation: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(2 intermediate revisions by 2 users not shown)
Line 3:
;Task:
<br>To see how it works watch the next video
<br>[https://youtu.be/I1Jt53q5O-c EvelatorElevator GameSimulation in Ring - video]
<br>[https://files.fm/down.php?i=kbm8s7ypz&n=Images.zip Necessary image files - download]
<br>Please if you can attach a video file how your sample works.
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 EvelatorElevator GameSimulation 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 ecmascriptlang="wren">import "dome" for Window, Platform, Process
import "graphics" for Canvas, Color, Font
import "audio" for AudioEngine
Line 791:
}
 
var Game = Elevator.new()</langsyntaxhighlight>
9,485

edits