-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·225 lines (192 loc) · 5.05 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<html>
<head>
<title>Alchemist: The Game</title>
</head>
<!-- Style sheet for game -->
<link rel="stylesheet" type="text/css" href="alchemy.css">
<body>
<center>
<!-- Header -->
<div id="header"></div>
<div id="savegame">Save Game</div>
<!-- Display the score and the level -->
<h3><font color=#FFFFFF>
<div class="gamescorediv">
<p id="gamescore">
Score: 0
</p>
</div>
<div class="gameleveldiv">
<p id="gamelevel">
Level: 6
</p>
</div>
<div class="gamerankdiv">
<p id="gamerank">
Rank: Greenhorn
</p>
</div>
</font></h3>
<div id="clickmessage">
You have yet to click the grid.
</div>
<!-- This is the game board -->
<div id="gameboard">
<table id="grid"> <!-- Fine. I'll do a table. Happy? -->
</table>
<!-- End of the grid -->
<!-- The following is additional game items -->
<div id="gameinfo">
<div id="nextitem">
<img src="images/lead.png" id="nextitemimg" width=60 height=60>
</div>
<div id="dross">
</div>
</div>
</div>
<script type="text/javascript" src="gameboard.js">
</script>
<script language="javascript">
setupDross();
</script>
<!-- End of the additional items and gameboard -->
<!-- Start of the gamestart popup -->
<div id="abc">
<div id="popup_start">
<div id="clearstorage">
Click here to clear local storage.<br>(Highscores and saved games)
</div>
<div class="wiggleroom">
<div id="nameinput">
Enter your name: <br>
<input type="text" id="name" maxlength="20">
</div>
</div>
<div class="wiggleroom">
<div id="debug" class="button">Debug</div>
</div>
<div class="wiggleroom">
<button id="beginner" class="button">Beginner</button>
</div>
<div class="wiggleroom">
<button id="intermediate" class="button">Intermediate</button>
</div>
<div class="wiggleroom">
<button id="advanced" class="button">Advanced</button>
</div>
<div class="wiggleroom">
<button id="custom" class="button">Trust Me, I'm an Alchemist</button>
</div>
<div class="wiggleroom" id="loadgamediv">
<button id="loadgame" class="button">Load a Saved Game</button>
</div>
<div id="tutorialbut"><a id="clicktut">Take me to the tutorial!</a></div>
</div>
</div>
<!-- End of the gamestart popup -->
<!-- Start of the level popup -->
<div id="abc_levels">
<div id="popup_levels">
Please select a level:
<div class="wiggleroom">
<select id="levelselect">
<!--<option>Please select a level:</option>-->
</select>
</div>
<script language="javascript" >
draw_popup_levels();
</script>
<div class="wiggleroom">
<button id="OK" class="button">OK</button>
</div>
</div>
</div>
<!-- End of the level popup -->
<!-- Start of Starting Animation -->
<div id="titleanimation">
(Click to skip intro.)
<div id="animationtxt">
Alchemist
</div>
</div>
<!-- End of Starting Animation -->
<!-- Start of debug pane -->
<div id="debuginfo">
<textarea id="debugtxt" value="You have yet to click a grid tile.">
</textarea>
</div>
<!-- End of debug pane -->
<div id="abc_endgame">
<div id="endgame">
<div class="wiggleroom">
<div id="endgametitle">
Game Over!
</div>
</div>
<div id="highscores">
<div class="wiggleroom">
<div id="scoreboard"></div>
<div class="smalltxt">
</div>
</div>
</div>
<div class="wiggleroom"> <button id="newgamebutton" class="button">New Game</button></div>
</div>
</div>
<!-- Endgame Popup -->
<!-- End of Endgame popup -->
<div id="sounds">
<audio id="tick" controls>
<source src="sounds/tick.mp3" type="audio/mpeg">
</audio>
<audio id="bomb" controls>
<source src="sounds/bomb.mp3" type="audio/mpeg">
</audio>
<audio id="magic" controls>
<source src="sounds/magic.mp3" type="audio/mpeg">
</audio>
<audio id="waste" controls>
<source src="sounds/waste.mp3" type="audio/mpeg">
</audio>
<audio id="fail" controls>
<source src="sounds/fail.mp3" type="audio/mpeg">
</audio>
<audio id="intro" controls>
<source src="sounds/intro.mp3" type="audio/mpeg">
</audio>
</div>
<div id="tutorialdiv">
<div id="clickmsg">Click to continue...</div>
<div id="tut1" class="tutorial">
<img src="tutorial/tut1.jpg" class="tutpic" id="tut1img">
</div>
<div id="tut2" class="tutorial">
<img src="tutorial/tut2.png" class="tutpic" id="tut2img">
</div>
<div id="tut3" class="tutorial">
<img src="tutorial/tut3.png" class="tutpic" id="tut3img">
</div>
<div id="tut4" class="tutorial">
<img src="tutorial/tut4.png" class="tutpic" id="tut4img">
</div>
<div id="tut5" class="tutorial">
<img src="tutorial/tut5.png" class="tutpic" id="tut5img">
</div>
<div id="tut6" class="tutorial">
<img src="tutorial/tut6.png" class="tutpic" id="tut6img">
</div>
<div id="tut7" class="tutorial">
<img src="tutorial/tut7.png" class="tutpic" id="tut7img">
</div>
</div>
<div id="tutprompt">
Do you want the tutorial first? <p>
<button id="yes" class="button">Yes</button> <button id="no" class="button">No</button>
</div>
</center>
<!-- Game JS file -->
<script type="text/javascript" src="model.js"></script>
</body>
</html>