Skip to content

Commit

Permalink
gamedef as json, next creation in UI, delivery position, empty function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xitog committed Jul 9, 2024
1 parent 938dfb5 commit 1e9d82f
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 112 deletions.
88 changes: 44 additions & 44 deletions rts/rts.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,67 +28,67 @@
<body onload="start();">
<canvas id="screen" width="640" height="480">Your browser must support canvas to play.</canvas>
<!-- Menu -->
<img class="shadow" id="Move" src="graphics/gui/order-move-plain-arrow-by-Delapouite-CC-BY-3.0.png">
<img class="shadow" id="Attack" src="graphics/gui/order-attack-select-by-sbed-CC-BY-3.0.png">
<img class="shadow" id="CreateSoldier" src="graphics/gui/creating-robot-golem-by-Lorc-CC-BY-3.0.png">
<img class="shadow" id="CreateScout" src="graphics/gui/creating-battle-mech-by-Delapouite-CC-BY-3.0.png">
<img class="shadow" id="CreateBuilder" src="graphics/gui/creating-mono-wheel-robot-by-Delapouite-CC-BY-3.0.png">
<img class="shadow" id="Move" src="graphics/gui/order-move-plain-arrow-by-Delapouite-CC-BY-3.0.png" alt="mov">
<img class="shadow" id="Attack" src="graphics/gui/order-attack-select-by-sbed-CC-BY-3.0.png" alt="att">
<img class="shadow" id="CreateSoldier" src="graphics/gui/creating-robot-golem-by-Lorc-CC-BY-3.0.png" alt="csol">
<img class="shadow" id="CreateScout" src="graphics/gui/creating-battle-mech-by-Delapouite-CC-BY-3.0.png" alt="csco">
<img class="shadow" id="CreateBuilder" src="graphics/gui/creating-mono-wheel-robot-by-Delapouite-CC-BY-3.0.png" alt="cbui">
<!-- Buildings -->
<img class="shadow" id="barrack" src="graphics/buildings/barrack.png">
<img class="shadow" id="barrack_selected" src="graphics/buildings/barrack_selected.png">
<img class="shadow" id="factory" src="graphics/buildings/factory.png">
<img class="shadow" id="factory_selected" src="graphics/buildings/factory_selected.png">
<img class="shadow" id="generator" src="graphics/buildings/generator.png">
<img class="shadow" id="generator_selected" src="graphics/buildings/generator_selected.png">
<img class="shadow" id="barrack" src="graphics/buildings/barrack.png" alt="bar">
<img class="shadow" id="barrack_selected" src="graphics/buildings/barrack_selected.png" alt="sbar">
<img class="shadow" id="factory" src="graphics/buildings/factory.png" alt="fac">
<img class="shadow" id="factory_selected" src="graphics/buildings/factory_selected.png" alt="sfac">
<img class="shadow" id="generator" src="graphics/buildings/generator.png" alt="gen">
<img class="shadow" id="generator_selected" src="graphics/buildings/generator_selected.png" alt="sgen">
<!-- Water to Earth transitions W E | N E S W -->
<!-- One Border -->
<img class="shadow" id="0100010000" src="graphics/textures/0100010000.bmp">
<img class="shadow" id="0100100000" src="graphics/textures/0100100000.bmp">
<img class="shadow" id="0101000000" src="graphics/textures/0101000000.bmp">
<img class="shadow" id="0110000000" src="graphics/textures/0110000000.bmp">
<img class="shadow" id="0100010000" src="graphics/textures/0100010000.bmp" alt="s1">
<img class="shadow" id="0100100000" src="graphics/textures/0100100000.bmp" alt="s2">
<img class="shadow" id="0101000000" src="graphics/textures/0101000000.bmp" alt="s3">
<img class="shadow" id="0110000000" src="graphics/textures/0110000000.bmp" alt="s4">
<!-- Two Borders -->
<img class="shadow" id="0111000000" src="graphics/textures/0111000000.bmp">
<img class="shadow" id="0101100000" src="graphics/textures/0101100000.bmp">
<img class="shadow" id="0100110000" src="graphics/textures/0100110000.bmp">
<img class="shadow" id="0110010000" src="graphics/textures/0110010000.bmp">
<img class="shadow" id="0111000000" src="graphics/textures/0111000000.bmp" alt="s5">
<img class="shadow" id="0101100000" src="graphics/textures/0101100000.bmp" alt="s6">
<img class="shadow" id="0100110000" src="graphics/textures/0100110000.bmp" alt="s7">
<img class="shadow" id="0110010000" src="graphics/textures/0110010000.bmp" alt="s8">
<!-- Corners -->
<img class="shadow" id="0100001000" src="graphics/textures/0100001000.bmp">
<img class="shadow" id="0100000100" src="graphics/textures/0100000100.bmp">
<img class="shadow" id="0100000010" src="graphics/textures/0100000010.bmp">
<img class="shadow" id="0100000001" src="graphics/textures/0100000001.bmp">
<img class="shadow" id="0100001000" src="graphics/textures/0100001000.bmp" alt="s9">
<img class="shadow" id="0100000100" src="graphics/textures/0100000100.bmp" alt="s10">
<img class="shadow" id="0100000010" src="graphics/textures/0100000010.bmp" alt="s11">
<img class="shadow" id="0100000001" src="graphics/textures/0100000001.bmp" alt="s12">
<!-- 2 Corners -->
<img class="shadow" id="0100001010" src="graphics/textures/0100001010.bmp">
<img class="shadow" id="0100000101" src="graphics/textures/0100000101.bmp">
<img class="shadow" id="0100001010" src="graphics/textures/0100001010.bmp" alt="s13">
<img class="shadow" id="0100000101" src="graphics/textures/0100000101.bmp" alt="s14">
<!-- Earth to Grass transitions W E | N E S W -->
<!-- One Border -->
<img class="shadow" id="1200010000" src="graphics/textures/1200010000.bmp">
<img class="shadow" id="1200100000" src="graphics/textures/1200100000.bmp">
<img class="shadow" id="1201000000" src="graphics/textures/1201000000.bmp">
<img class="shadow" id="1210000000" src="graphics/textures/1210000000.bmp">
<img class="shadow" id="1200010000" src="graphics/textures/1200010000.bmp" alt="s15">
<img class="shadow" id="1200100000" src="graphics/textures/1200100000.bmp" alt="s16">
<img class="shadow" id="1201000000" src="graphics/textures/1201000000.bmp" alt="s17">
<img class="shadow" id="1210000000" src="graphics/textures/1210000000.bmp" alt="s18">
<!-- Two Borders -->
<img class="shadow" id="1211000000" src="graphics/textures/1211000000.bmp">
<img class="shadow" id="1201100000" src="graphics/textures/1201100000.bmp">
<img class="shadow" id="1200110000" src="graphics/textures/1200110000.bmp">
<img class="shadow" id="1210010000" src="graphics/textures/1210010000.bmp">
<img class="shadow" id="1211000000" src="graphics/textures/1211000000.bmp" alt="s19">
<img class="shadow" id="1201100000" src="graphics/textures/1201100000.bmp" alt="s20">
<img class="shadow" id="1200110000" src="graphics/textures/1200110000.bmp" alt="s21">
<img class="shadow" id="1210010000" src="graphics/textures/1210010000.bmp" alt="s22">
<!-- Corners -->
<img class="shadow" id="1200001000" src="graphics/textures/1200001000.bmp">
<img class="shadow" id="1200000100" src="graphics/textures/1200000100.bmp">
<img class="shadow" id="1200000010" src="graphics/textures/1200000010.bmp">
<img class="shadow" id="1200000001" src="graphics/textures/1200000001.bmp">
<img class="shadow" id="1200001000" src="graphics/textures/1200001000.bmp" alt="s23">
<img class="shadow" id="1200000100" src="graphics/textures/1200000100.bmp" alt="s24">
<img class="shadow" id="1200000010" src="graphics/textures/1200000010.bmp" alt="s25">
<img class="shadow" id="1200000001" src="graphics/textures/1200000001.bmp" alt="s26">
<!-- 2 Corners -->
<img class="shadow" id="1200001010" src="graphics/textures/1200001010.bmp">
<img class="shadow" id="1200000101" src="graphics/textures/1200000101.bmp">
<img class="shadow" id="1200001010" src="graphics/textures/1200001010.bmp" alt="s27">
<img class="shadow" id="1200000101" src="graphics/textures/1200000101.bmp" alt="s28">
<!-- Basic textures -->
<img class="shadow" id="0000000000" src="graphics/textures/0000000000.bmp">
<img class="shadow" id="1000000000" src="graphics/textures/1000000000.bmp">
<img class="shadow" id="2000000000" src="graphics/textures/2000000000.bmp">
<img class="shadow" id="3000000000" src="graphics/textures/3000000000.bmp">
<img class="shadow" id="0000000000" src="graphics/textures/0000000000.bmp" alt="s29">
<img class="shadow" id="1000000000" src="graphics/textures/1000000000.bmp" alt="s30">
<img class="shadow" id="2000000000" src="graphics/textures/2000000000.bmp" alt="s31">
<img class="shadow" id="3000000000" src="graphics/textures/3000000000.bmp" alt="s32">
<!-- Load Core -->
<script src="rts.js"></script>
<!-- Load Maps -->
<script src="maps/E1M1.js"></script>
<script src="maps/E1M2.js"></script>
<!-- Load Game Data -->
<script src="game.js"></script>
<script type="module" src="rts.mjs"></script>
</body>
</html>
Loading

0 comments on commit 1e9d82f

Please sign in to comment.