-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
219 lines (214 loc) · 10.2 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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<link rel="icon"
type="image/png"
href="favicon.png">
<script type="text/javascript" >
var PLAYER=false;
var embeddedDat="__EMBED__";
</script>
<script src="FileSaver.js"></script>
<script src="rng.js"></script>
<script src="sfxr.js"></script>
<script src="pinball.js" > </script>
<link href="style.css" rel="stylesheet">
<title>
plingpling game maker
</title>
</head>
<body onload="init();" ondragstart="return false;" ondrop="return false;">
<center>
<table>
<table cellpadding="10">
<tr>
<td>
<ul>
<li>
levels:
</li>
<li>
<a class="layerItem selectedItem" id="layerItem1" href="#" onclick="setLevel(1);return false;">
<canvas id="thumbnail1" width="25" height="28" style="border:2px solid gray; background-color:black;margin-top:5px;"></canvas>
1</a>
</li>
<li>
<a class="layerItem" id="layerItem2" href="#" onclick="setLevel(2);return false;">
<canvas id="thumbnail2" width="25" height="28" style="border:2px solid gray; background-color:black;margin-top:5px;"></canvas>
2</a>
</li>
<li>
<a class="layerItem" id="layerItem3" href="#" onclick="setLevel(3);return false;">
<canvas id="thumbnail3" width="25" height="28" style="border:2px solid gray; background-color:black;margin-top:5px;"></canvas>
3</a>
</li>
<li>
<a class="layerItem" id="layerItem4" href="#" onclick="setLevel(4);return false;">
<canvas id="thumbnail4" width="25" height="28" style="border:2px solid gray; background-color:black;margin-top:5px;"></canvas>
4</a>
</li>
<li>
<a class="layerItem" id="layerItem5" href="#" onclick="setLevel(5);return false;">
<canvas id="thumbnail5" width="25" height="28" style="border:2px solid gray; background-color:black;margin-top:5px;"></canvas>
5</a>
</li>
<li>
<a class="layerItem" id="layerItem6" href="#" onclick="setLevel(6);return false;">
<canvas id="thumbnail6" width="25" height="28" style="border:2px solid gray; background-color:black;margin-top:5px;"></canvas>
6</a>
</li>
</ul>
</td>
<td valign="top">
<table>
<tr>
<td>
<table>
<tr>
<td>
<center>
<input title="Enter your game's title here" width="640" style="border:2px solid gray;" onkeydown="event.stopPropagation();" value="game title" id="titleInput" oninput="titleChange(this.value)" />
<input title="Enter a link here" width="640" style="border:2px solid gray;" onkeydown="event.stopPropagation();" value="www.plingpling.org" id="linkInput" oninput="linkChange(this.value)" />
<br/>
<canvas id="mainCanvas" width="500" height="560" style="border:2px solid gray; background-color:black;"></canvas>
<br />
<input title="Enter the message the player should see when they win the game here" width="800" style="border:2px solid gray;" onkeydown="event.stopPropagation();" value="game win message" id="winText" oninput="winTextChange(this.value)" />
</center>
</td>
<td valign="top">
<a href="#" onclick="shareClick();return false;">⊚ share</a><br />
<div id="shareLink"></div>
<a href="#" onclick="exportClick();return false;">⊡ export</a><br />
<a href="#" onclick="document.getElementById('my_file').click();return false;">⊡ import</a><br />
<input type="file" accept=".html" id="my_file" style="display: none;" />
<a href="help.html" target="_blank" title="blah">? help</a>
<br />
<br/>
<table style="width:100%;">
<tr>
<td style="text-align:center;width:20px;"><a title="select color palette" href="#" onclick="cyclePalette(-1);return false;"><</a></td>
<td id="colorOffsetChoice"></td>
<td style="text-align:center;width:20px;"><a title="select color palette" href="#" onclick="cyclePalette(+1);return false;">></a></td>
</tr>
</table>
<table border=1>
<tr>
<td>
<a href="#" onclick="selectTool('eraser',eraserCol);return false;"><div class="unselected" id="color_0"></div></a>
</td>
<td colspan=2>
eraser
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('wall',wallCol);return false;"><div class="selected" id="color_2"></div> </a>
</td>
<td colspan=2>
wall
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('bumper',bumperCol);return false;"><div class="unselected" id="color_3"></div></a>
</td>
<td colspan=2>
bumper
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('flipper',flipperCol);return false;"><div class="unselected" id="color_4"></div></a>
</td>
<td colspan=2>
flipper
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('ballSpawn',ballSpawnCol);return false;"><div class="unselected" id="color_15" style="text-align:center; background-color:'black';"><img src="spawnicon.png"></div></a>
</td>
<td colspan=2>
ball spawn
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('exitPoint',exitCol);return false;"><div class="unselected" id="color_6" style="text-align:center; background-color:'black';"><img src='exiticon.png'></div></a>
</td>
<td colspan=2>
exit point
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('spring',springCol);return false;"><div class="unselected" id="color_12"></div></a>
</td>
<td colspan=2>
spring
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('leftFlipperPivot',leftFlipperPivotCol);return false;"><div class="unselected" id="color_5"></div></a>
</td>
<td colspan=2>
↺ flipper pivot
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('rightFlipperPivot',rightFlipperPivotCol);return false;"><div class="unselected" id="color_8"></div></a>
</td>
<td colspan=2>
↻ flipper pivot
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('target',targetCol);return false;"><div class="unselected" id="color_10"></div></a>
</td>
<td colspan=2>
target
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('connection',connectionCol);return false;"><div class="unselected" id="color_9"></div></a>
</td>
<td colspan=2>
connection
</td>
</tr>
<tr>
<td>
<a href="#" onclick="selectTool('togglableWall',togglableWallCol);return false;"><div class="unselected" id="color_11"></div></a>
</td>
<td colspan=2>
toggleable wall
</td>
</tr>
<tr>
<td>
<a href="#" onclick="clearPalette();return false;" style=" text-decoration: none;"><div class="unselected" style="text-align:center;">X</div></a>
</td>
<td colspan=2>
clear canvas
</td>
</tr>
</table>
<p>
<a href="#" onclick="clickPlay();return false;">▶ Play</a>
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</body>
</html>