-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (77 loc) · 3.81 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
<head>
<title>Sliding Robots</title>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="src/styles/app.css">
</head>
<body>
<div id="win_screen_overlay">
<div id="win_screen_overlay_text">
<label>You Win!</label>
<label>Press space to continue.</label>
</div>
</div>
<div id="app" style="display:none;">
<div class="header" style="visibility:hidden">
<div style="color: yellow">
<label>Puzzle: </label>
<label id="puzzleLabel"></label>
</div>
<div style="color: lightcoral">
<label>Number of Moves: </label>
<label id="numberOfMovesLabel">0</label>
</div>
<div style="color: lightgreen">
<label>Min. number of moves: </label>
<label id="minimumNumberOfMovesLabel"></label>
</div>
</div>
<div class="header" style="visibility:hidden">
<div id="robot-control-box">
<span>Selected:</span>
<img id="red-robot-control" src="assets/images/robot-1-red/front.svg" class="selected"/>
<img id="green-robot-control" src="assets/images/robot-2-green/front.svg" class="unselected"/>
<img id="blue-robot-control" src="assets/images/robot-3-blue/front.svg" class="unselected"/>
<img id="yellow-robot-control" src="assets/images/robot-4-yellow/front.svg" class="unselected"/>
</div>
<div class="button-bar">
<div id="restartButton" class="button">(R)estart</div>
<div id="newPuzzleButton" class="button">N(e)w Puzzle</div>
<div id="muteButton" class="button">(M)ute</div>
</div>
</div>
<div id="game-board"></div>
<p style="vertical-align: middle">
<b>Instructions:</b> Move the matching-colored Robot to the Goal Square.
</p>
<p>
Use the number keys to select a robot and the arrow keys or wasd to move.
</p>
</div>
<div id="static-assets" style="display:none;">
<img id="red-robot-front" src="assets/images/robot-1-red/front.svg"/>
<img id="red-robot-back" src="assets/images/robot-1-red/back.svg"/>
<img id="red-robot-left" src="assets/images/robot-1-red/left.svg"/>
<img id="red-robot-right" src="assets/images/robot-1-red/right.svg"/>
<img id="green-robot-front" src="assets/images/robot-2-green/front.svg"/>
<img id="green-robot-back" src="assets/images/robot-2-green/back.svg"/>
<img id="green-robot-left" src="assets/images/robot-2-green/left.svg"/>
<img id="green-robot-right" src="assets/images/robot-2-green/right.svg"/>
<img id="blue-robot-front" src="assets/images/robot-3-blue/front.svg"/>
<img id="blue-robot-back" src="assets/images/robot-3-blue/back.svg"/>
<img id="blue-robot-left" src="assets/images/robot-3-blue/left.svg"/>
<img id="blue-robot-right" src="assets/images/robot-3-blue/right.svg"/>
<img id="yellow-robot-front" src="assets/images/robot-4-yellow/front.svg"/>
<img id="yellow-robot-back" src="assets/images/robot-4-yellow/back.svg"/>
<img id="yellow-robot-left" src="assets/images/robot-4-yellow/left.svg"/>
<img id="yellow-robot-right" src="assets/images/robot-4-yellow/right.svg"/>
<img id="background-tile" src="assets/images/background-tile.png"/>
<audio id="music-background" src="assets/sounds/Cleansing_Rain_v1.0.mp3" type="audio/mpeg" autostart="0" loop="true"></audio>
<audio id="sound-robot-beep" src="assets/sounds/robot-beep.wav" type="audio/wav" autostart="0"></audio>
<audio id="sound-tick" src="assets/sounds/tick.wav" type="audio/wav" autostart="0"></audio>
<audio id="sound-thud" src="assets/sounds/thud.wav" type="audio/wav" autostart="0"></audio>
<audio id="sound-win" src="assets/sounds/win.wav" type="audio/wav" autostart="0"></audio>
</div>
<script src="src/main.js" type="module"></script>
</body>
</html>