-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.js
393 lines (288 loc) · 44.2 KB
/
images.js
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
var imgEnemy_Basic = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAABaUlEQVRoQ+2ZTRLCIAyFy7KrnscZj+HGS3gAD+ABvIQbj+GM5+mqSxypZSpQIJA4No1LoYEv7yX0RzVMfooJRyMg/6akKLIVRTQxqOckKmvp4UGD0u5NXAGBpp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oSKvuxutun9S7OtQGez2oJVAMYZjcdjLZaR+gOhDpPLGAMbDDJDuTnVoCmWOLFYj63hlvv5u0rJX9Wm3zrEA2CcUSxs378Wqn0f+OTOaIco2i3WUHsiko1jA8DCEQkX83vkIUbj93efrW5WGHlyGbsGRrQFJD8YLhaUhtbelalyeMCCCpTPGGQSCNS5K9AElhSQSMKEPO86T7JfqhM2NJ9vpojWEOMIM+yophGJa33+d+aIRoYQgwolvWGFjI04GiW9Q4BBRDLlqYx2xBA1EDQARiOvRRQWQAcgGm/iG9KhsASHHMyIZMXRTwQcqSyyWuXZdARkPWHTH41gQCBohACAQsAbByaAiBgCUAVg4NIRCwBMDKoSEEApYAWDk0hEDAEgArh4YQCFgCYOXQEAIBSwCsHBpCIGAJgJVDQwgELAGwcv4AW3X0ZUzHVw0AAAAASUVORK5CYIIA";
var imgBullet_Basic = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAeklEQVRYR2NkGGDAOMD2M4w6YDQERkOAohBYLPnlPygbxz7nIdscsjXCLIeVI+Q6YtQBQzMEQPG/97YqSjXirHqbrMRIcghgsxzmEnIcMeqAoRcCoPge0EQIS3CjJeFoCMAS44BVx9RqzpNcDlDLYpg5ow4YDYHREAAAvzpSISuYp5oAAAAASUVORK5CYIIA";
var imgBlackTransparentSrc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABbUlEQVR4Xu3VQQkAMBDEwK1/BXVbqIp55BSEhOXOtruOMXAKwrT4IAWxehQE61GQgmgGMJ5+SEEwAxhOCykIZgDDaSEFwQxgOC2kIJgBDKeFFAQzgOG0kIJgBjCcFlIQzACG00IKghnAcFpIQTADGE4LKQhmAMNpIQXBDGA4LaQgmAEMp4UUBDOA4bSQgmAGMJwWUhDMAIbTQgqCGcBwWkhBMAMYTgspCGYAw2khBcEMYDgtpCCYAQynhRQEM4DhtJCCYAYwnBZSEMwAhtNCCoIZwHBaSEE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gMinButtonSrc = "data:image/false;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAB6ElEQVR4Xu2YwWlCARQE/W2kEiH1B6zENswtBJIcBrMw6ngU3rp/5u/F49RHReBQtanMKSGylyAhCZERkNVpIY8i5HY+32Rdn6rOcbn8OoY/F5KQrf+EbPni9IRgZNuDhGz54vSEYGTbg4Rs+eL0hGBk24OEbPni9IRgZNuDhGz54vSEYGTbg4Rs+eL0hGBk24OEbPni9IRgZNuDhGz54vSEYGTbg4Rs+eL0hGBk24OEbPni9IRgZNuDhGz54vSEYGTbg4Rs+eL0hGBk24OEbPni9IRgZNuDhGz54vSEYGTbg4Rs+eL0hGBk24OEbPni9IRgZNuDhGz54vS7hBzXD/yDHfwkcHt7//oyIYI3JCECCd8rJCQhMgKyOi0kITICsjotJCEyArI6LSQhMgKyOi0kITICsjotJCEyArI6/7YQ2XM9RZ27/n5/CgKyh0hIQmQEZHVaSEJkBGR1WkhCZARkdVpIQmQEZHVaSEJkBGR1WkhCZARkdVpIQmQEZHVaSEJkBGR1WkhCZARkdVpIQmQEZHVaSEJkBGR1WkhCZARkdVpIQmQEZHVaSEJkBGR1WkhCZARkdVpIQmQEZHVaSEJkBGR1WkhCZARkdfBCZP1fps7xMk/6IA+aEJmohCRERkBWp4XIhHwC2fWNdLdCvYoAAAAASUVORK5CYIIA";
//Rotateable images.
var imgRocketLauncher_Basic = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAB3UlEQVRoQ+2ZwWrDMAyG3UMCoWynwWAvsvc/7kUGg51WSiA5dLibgytLlivLWxLUU2kSWZ/+X4mVHtxOPoedcDgDWZuSpginyHh0F+yc4dzGzs0U8SBfn7coj0/OGQhjAVOkpEfMWlyVkOOtrIXesaL11dfVDLgk37/P2ZpOL118XCUHlSDOuQuXPEX2C1WdR3WAGogApwFTCyJWAipUC1MDkoUAfbDknbNgDYwUhIQIAP38gLbF1J2uv1NAUhgJSBaCAkis1J1UYdRAfCVLIZYmJ2AkqqiAUBDBRiFxDNSfA232FyCorSBIAJj7txtHddPrT39E/YOB+HPuhUkUoQYiH3w4p02KqeGTgxCByMNAZShVxiO9QYBzDQoCd60h3PPAg+QgKBgK5GPEQbABzUDi7QX0PGUrUwQ4rNhaVIttqtmZ4Ww7t9+CKTOB2eID0XMWqVJQEKf1MPRrqWxRqDtYDoaCkDzVpSCkKlES5AZyTdv4UOhdDFZFMCV9EttSaPVrCEmPwPyq5/Z7d7pYgTRAsj3DqaIBoaXIYrPwhXvHteYXdIndGCW0nLAsox4wRLY/erimIo6bIlzhzFpchf7DWtiam/tXV1hY8WXNml2ckfBCAxEWrtllu1HkG/qEXkKeej0IAAAAAElFTkSuQmCC";
var imgRocket_Basic = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAABDklEQVRoQ+2UsQqCUBiFf6FaJGwLnFrcoqClF+g5erVeoTmCtvZaWxxCaIkWESQo7nAlyJYjB+JyWgTlHDzfdy2yQH5RIDtMQ/7NpIzICImAjhYJLFwrIzA6UlBGSGDhWhmB0ZGCMkICC9fKCIyOFJQREli4VkY8umo6fCW7u6X73IrVBLrm66wz0E4FbsRgNLfl5mrl+Gnxrfd1PceXZtyszJrnn/c9hDrtw+8DB/2I+nGyxTFpHfFrnLtfbQ+tBtEx8BB3tIIwEtQ3Av9XEoKdjhbhfeBKDYHRkYIyQgIL18oIjI4UlBESWLhWRmB0pKCMkMDCtTICoyMFZYQEFq6VERgdKSgjJLBwbTBG3veimTPnXcJeAAAAAElFTkSuQmCC";
//Explosion sheet
var default_explosion_sheet = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAyCAYAAADm1uYqAAAGvUlEQVR4Xu2dX44cNRDGdyKQloPkAcRrboECnCDXABQJIUWIa3AC0Ipb8IrIQw7CSqAM8s54tuUuu8r/ymX3lydEt9uur1w/l6s9vac7/IMCUAAKTKLAaZJxYphQAApA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MyGcanXwMXdNq6xsOsjae4sv+bebv/7XEQRNaZjlaoU8oNgNEDCqtDCNpUYsbYUQMKq0MI2lRixthRAwqrQwjaVGLG2FEDCqtDCNpUYsbTWPkDbf5SDM7/rw/AAAAAElFTkSuQmCC";
var image_selected_square = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAuklEQVRoQ+2asQqFMBAE9xD0/z9XQfKwjd3CoucbG6vdmJkLNqkhjeOU1kXq/K791Oi+iev7CyMvG8ebkW1RqcEzT9LtjJR6bGQ+2xh5evow8rSBeX2MYCREgP9ICKxdixEbXSiIkRBYuxYjNrpQECMhsHYtRmx0oSBGQmDtWozY6EJBjITA2rUYsdGFghgJgbVrMWKjCwUxEgJr12LERhcKYiQE1q7FiI0uFPwfI10v2HA76G3mPmPkB9AlaRv/NA93AAAAAElFTkSuQmCC";
var nuclear_turret = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAABqElEQVRoQ+2ZS4rDMAyG1U0hq4EeovfoZQZ6ooG5TO/RQxS6CsymxRkr2CJOZUuiE4+6q+OHPv+KJDs76OS364QDHOSvKemKuCJGO+Cu9WpjR4DHUp8BbCKliSIlCASzgDEBAYDHWJBs+G1XX1dzwtmV9nCerL3DV4bzEdt/8nYVG1QmCQqg8VQIhEEI+jxCie2QTjCpUIJ4FRDweaJQsz3NA9dU4AJoqtMKUnSlVgiiTrVd1QPigl2AmEFIVKlVxByiFeZfgqiEWm4wqM0vbEVC/VRKaqUMvmQ0py/J/Gvss/0sECwCl0CCYcPnLVts/D6ApG8AOV7WTbueJgfhg6SVLDVuCQKJKExNX3UQWo47SKyEqQuW1FNXJCzUhWvNOxaPrZIXGM8nnMBgokgKs/nwi4Wixtnj7QnRuuqVnk1YCTFZpJuiMTCZw9TWWVmK5/qutYu1QDiIlSqtakgUQU9UOaO8+zoofa02f0GXweCfLV+Z0qC36UvsGaanzwpZ+Z/KZfFtRCNqVeZRu+61tZadJcKZHUS4gerDXRH1LRVO6IoIN1B9+BNabMYzakKC0QAAAABJRU5ErkJgggAA";
var multilauncher = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACSUlEQVRoQ92ZOVLDMBSG5aSl4CzM+BAcKhThUBzCMzkLBW0wY2MLbW/Viy2cKoVk/Z/eKqlzB/l1B+FwJZAxgWsFFtWVikwHr0x7w5C6QoHQ4L1hWLokIBOQmWVG51CB3e9aFITXJAUxgaEghIvMDBoQ4Tpx6uBACBfIQKb5HFOqYyaFOH/Fy92f/vaV6cN+GCf9+i0dLyd92Xn/zuZWgkTaIfDMMlUQE4ItSKYbs6CHqYawBSlqplxxNIEAQDA/BYSBelGQ8XKSBD8aP8/XOEY+kZWlEGSW2wNEA9EciBaiKZAaiE1BSuk3DKoCCJWIopjcLNiFICKIaov0Hy9+V4bXG171CwWR2yYsnTA6XGWRFWAYBv/xvu/n/yBQBUhKUALbHATrr7gWCrpWtGkMm8SsIEbuVLAIaJXFIs2AuOs9c6dZfADl3s755hIgKeD6gbC1x1xM7lo7gaygyZlF71qHschxYsQ5V5N+2wn2ShBpii2NN6sj68f/fWVX7SpR2Zf0I+6xguIIy7I8WAmaRhWMvI6ozOEcddRNhIhhWgUhO/NCld/GtSiLAMrZlmnGIkjQsmDIQWYBLziPaI69JMh0sW1ySScA0bgZBWJ3bWpz96u6abS9yLYBAbMZRCi5KqWsOsdx6YGn4lkhW7MkwhxizUjGDz2R9hTkYRAQDFTFWGYOng7D8Q+HkMAwQXzMaEAEayBdA/08ze3qZj1SEBMIrkLm46wYZGuIwBNR9AxkyZLFSXtBUDBeFyf97g0BwaDpV+C+bQ39AQIUIEKu91lwAAAAAElFTkSuQmCC";
var imgSurrounderSrc = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA2klEQVRoQ+2aywrCMBBFbygogj/kzk935w8JolAiXQRKfUAwY2/kdJNdyeSeOVlMUpbyfZQ2g9Tzmm6jcu9FTPtPJGKG41Mix6t02knu67IdXvaIexFlf/NiSMQBv6pEtoOSDL7DRXl+eNU9ct57FDLdd8veJZE1CSOR0lj0SGMOsVZRHfdIY7SwFtZqjFT5HdbCWkFoYS2sFYQW1sJaQWhhLawVhBbWwlpBaGEtrBWEFtbCWkFofW0t18Fo9cTKYVb47jCrJlYk8oNHBx8T6fWBDa+D3JL7m0Qe7HvOOT05TSIAAAAASUVORK5CYII=";
//var images = [];
//images[] =
function TowerDefenseImages()
{
this.enemies = [];
this.towers = [];
this.bullets = [];
this.gridImages = [];
this.explosions = [];
this.onetimeimage = [];
//Game assets
this.imgBlackTransparent = null;
this.imgMinButton = null;
this.imgPlusButton = null;
this.imgSurrounder = null;
var imageCanvas = document.getElementById("canvasImageProvider");
if(imageCanvas != null)
{
imageCanvas.width = 50;
imageCanvas.height = 50;
var imageCtx = imageCanvas.getContext('2d');
}
function calculateImage(imagesrc, set)
{
var images = [];
var image = new Image();
image.onload = function(){
//image.src = imagesrc;
imageCtx.clearRect(0, 0, 50, 50);
imageCtx.save();
imageCtx.drawImage(image, 0, 0, 50, 50);
imageCtx.restore();
var saveImage = new Image();
saveImage.onload = function(){
if(DRAWMODE == "Canvas")
{
set(saveImage);
}
if(DRAWMODE == "WebGL")
{
var tex = mainCtx.createTexture();
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
// Fill the texture with a 1x1 blue pixel.
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, 1, 1, 0, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE,
new Uint8Array([0, 0, 255, 255]));
// let's assume all images are not a power of 2
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_S, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_T, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_MIN_FILTER, mainCtx.LINEAR);
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE, saveImage);
set(tex);
}
};
saveImage.src = imageCanvas.toDataURL();
};
image.src = imagesrc;
}
function calculate()
{
}
function setImageValue(gridImage)
{
var images = [];
var image = new Image();
image.onload = function(){
//image.src = imagesrc;
imageCtx.clearRect(0, 0, 50, 50);
imageCtx.save();
imageCtx.drawImage(image, 0, 0, 50, 50);
imageCtx.restore();
var saveImage = new Image();
saveImage.onload = function(){
if(typeof variable === 'undefined' || DRAWMODE == "Canvas")
{
gridImage.image = saveImage;
}
if(typeof variable !== 'undefined' && DRAWMODE == "WebGL")
{
var tex = mainCtx.createTexture();
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
// Fill the texture with a 1x1 blue pixel.
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, 1, 1, 0, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE,
new Uint8Array([0, 0, 255, 255]));
// let's assume all images are not a power of 2
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_S, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_T, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_MIN_FILTER, mainCtx.LINEAR);
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE, saveImage);
gridImage.image = tex;
}
//console.log("Load!");
};
saveImage.src = imageCanvas.toDataURL();
};
image.src = gridImage.imageb64;
}
function calculateSpriteAnimations(name, imagesrc, destination, drawheight = 50, drawwidth = 50)
{
var images = [];
var source_sheet = new Image();
source_sheet.onload = function(){
//console.log("Load");
//Sheet is vertical.
//var clipped = 0;
clipImage(0);
function clipImage(clipped)
{
if(clipped != (source_sheet.width / drawwidth))
{
clipped++;
imageCtx.clearRect(0, 0, 50, 50);
imageCtx.save();
imageCtx.drawImage(source_sheet, drawwidth * clipped ,0, 50,50,0, 0, drawwidth, drawheight);
imageCtx.restore();
var saveImage = new Image();
saveImage.onload = function(){
if(DRAWMODE == "Canvas")
{
images.push(saveImage);
}
if(DRAWMODE == "WebGL")
{
var tex = mainCtx.createTexture();
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
// Fill the texture with a 1x1 blue pixel.
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, 1, 1, 0, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE,
new Uint8Array([0, 0, 255, 255]));
// let's assume all images are not a power of 2
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_S, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_T, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_MIN_FILTER, mainCtx.LINEAR);
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE, saveImage);
images.push(tex);
}
clipImage(clipped);
};
saveImage.src = imageCanvas.toDataURL();
}
}
};
source_sheet.src = imagesrc;
var item = {
name : name,
images : images,
};
destination.push(item);
}
function calculateRotateImages(name, imagesrc, destination, drawheight = 50, drawwidth = 50)
{
var images = [];
var image = new Image();
image.onload = function(){
rotate(0);
function rotate(i)
{
imageCtx.clearRect(0, 0, 50, 50);
imageCtx.save();
imageCtx.translate(25, 25);
imageCtx.rotate(i * TO_RADIANS);
imageCtx.drawImage(image, -(drawheight / 2), -(drawwidth / 2), drawheight, drawheight);
imageCtx.restore();
var saveImage = new Image();
saveImage.onload = function(){
if(DRAWMODE == "Canvas")
{
images.push(saveImage);
}
if(DRAWMODE == "WebGL")
{
var tex = mainCtx.createTexture();
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
// Fill the texture with a 1x1 blue pixel.
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, 1, 1, 0, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE,
new Uint8Array([0, 0, 255, 255]));
// let's assume all images are not a power of 2
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_S, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_WRAP_T, mainCtx.CLAMP_TO_EDGE);
mainCtx.texParameteri(mainCtx.TEXTURE_2D, mainCtx.TEXTURE_MIN_FILTER, mainCtx.LINEAR);
mainCtx.bindTexture(mainCtx.TEXTURE_2D, tex);
mainCtx.texImage2D(mainCtx.TEXTURE_2D, 0, mainCtx.RGBA, mainCtx.RGBA, mainCtx.UNSIGNED_BYTE, saveImage);
images.push(tex);
}
if(images.length != 360)
{
i +=1
rotate(i);
}
};
saveImage.src = imageCanvas.toDataURL();
}
}
image.src = imagesrc;
var item = {
name : name,
images : images
};
destination.push(item);
}
this.setupAssets = function() {
function set1(value) {
twdImages.imgBlackTransparent = value;
}
function set2(value) {
twdImages.imgBlackTransparent = value;
}
function set3(value) {
twdImages.imgBlackTransparent = value;
}
function set4(value) {
twdImages.imgSurrounder = value;
}
calculateImage(imgBlackTransparentSrc, set1);
calculateImage(imgSurrounderSrc, set4);
};
this.setupBullets = function() {
calculateRotateImages("BasicBullet", imgBullet_Basic, this.bullets, 32 , 32);
calculateRotateImages("Rocket", imgRocket_Basic, this.bullets, 50 , 50);
calculateRotateImages("NuclearGrenade", nuclear_bullet, this.bullets, 50 , 50);
};
this.setupExplosions = function () {
calculateSpriteAnimations("Explosion1", default_explosion_sheet, this.explosions, 50, 50);
calculateSpriteAnimations("Explosion2", nuclear_explision_sheet, this.explosions, 50, 50);
}
this.setupTowers = function() {
calculateRotateImages("BasicTower", imgTurret_Basic, this.towers);
this.addTower(imgTurret_Basic, 0, 25);
calculateRotateImages("RocketLauncher", imgRocketLauncher_Basic, this.towers);
this.addTower(imgRocketLauncher_Basic, 1, 100);
calculateRotateImages("NuclearLauncher", nuclear_turret, this.towers);
this.addTower(nuclear_turret, 2, 100);
calculateRotateImages("MultiRocketLauncher", multilauncher, this.towers);
this.addTower(multilauncher, 3, 100);
};
this.addTower = function (src, index, moneys){
var div = document.getElementById('turrets');
var towerTemplate = '<div style="width:50px;float:left;margin:5px;" onclick="twdEventHandlers.selectImage(this)" cost="'+ moneys + '" index="'+ index + '"><img src="' + src + '" style="backgrond:red;" width="50" height="50"><div width="50"><div style="display: table;margin: 0 auto;">'+moneys+'<img src ="./images/money.png" style="vertical-align: middle;margin-left:3px;" width="15" height="15"></div></div></div>';
div.innerHTML += towerTemplate;
};
this.appendTurretToMenu = function () {
};
this.setupEnemies = function() {
calculateRotateImages("BasicEnemy", imgEnemy_Basic, this.enemies);
};
this.setupGridImages = function () {
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADD0lEQVRoQ+VaO04DMRDNikgghYoDID4i14CengKJkiIVFSfgEBQpkSjpaKgoOAWIjygoqUiBFBTk3Xgznh37jXeD2DhUsOu1/ebz5nlM1jlbm3Qa/JyOjht8Pft02LtuNE+WPJCst55baDL6ClqKe6S/t5uPf3x6Fr/rdlfy5+Pxj/O+jkfMHu3+/B453CwWun2HQHybs893treC4MxLCQg1JjLsEgCR/CB4SZPsPo/RJaJCS9hHVLKX7j3YKENOA0SyiQFHQy4GiLSP5QQiWZZ6hFvZ54l5sRadP8ojCIihXkq7mtywc8aElrSPxIEYVrD1g/4umGLwfVIpblqtQT0meoSyE6hrskeSAUJMSmUAyhHkCeMBLk20OVK/stsVuHeYbKlbRzhomOwgzHCyLyQQpVCk1jQeoUlLhSJXwDy0qFKueASQDPeo4xEUhx2F1grJeFpneM3hQIK5ibRWMkAQ6/wna6G94ToCZuBaS6JXjVSBrAX2kR4Q5/xLzsK5IQJsRj3CE9gaEZ3jfUfd0gkKBpt5JEKWcPqlf2tZCxVEpCj89LvwQO76RYOOdEtirBGSKJok92otRTi5B6tkgEgtU581FJUd8b26QRftEQFI3dDysRYCJ7FWI4liF0wGSF43QKvUgg5VdkvFL69v+XDTx/L1hP+ksrfBI6gQB2V8m0KrERCpFemE2RxYi1pS6qLADrwn7F3RON1odv85u3egdxDCnUkTrSWeECNaQG5BpPSbCpCmoeVr92ikyvDooTAwk0rmEbo1M2PkMzu5NojJkdYAQawlnem5aNRYX6r0sGVKPwo2HzQyXsFamkOUFghshpCJ4g5WiwDEd9Tlz3nyhUKL3+oaqWKbEzyfkERB9QU3H9rSMlXnCB8o3Y8oQksj2bU54p0LdRoRa6FNos58VDhFKPBKHSk3CiapqOOphQY3+04OhP7jwbDb+cdFsaSwXowCTxNIbgFT0ZlMoHLaiEnOWj7LSWFmQuty9QpFaPlelEyer/FFj3pZd6C5JJVCy9KsY4DIfJC2lAyQX6WyKWyx8Tl1AAAAAElFTkSuQmCC", image: null});
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADCklEQVRoQ+1ZO04DQQydCCSQoKKkQHwEp6Cgp6NEoqSg4gScgANQUCJR0NPDNUB8xAFSkQIJFOQhs3Fm7LE9myjZDak2m+zsPPv5+TMdd77cd3U+hxvO3X/4FTorq67f+/TXp73jatW93R1//fr27q6Wbuq8jX22Mz9ADjdc56HrLRGsrTHp2deJ+/7+Sf56vXKb3MOeDD/6ewdrf18HHq8eBBYAAx661Z5MHoHFE0CIWpfrF+7p+SXZKKZWALe4uOCujh6TjZLvwCui9+Hb8wnEDVyauHpgGhzgYHGKWtiKFM0k2lI09DQbCXZho9RL8OalTeR+T0BhCnHXaMF2AsGBJgadQCeg1vbWZpU/4AKoBvfDdY5mmEKqa00eyYGyUisoWKxuWWpxqoWTcTuBcMGeEQGrR0qoNZIvUBnE55HWAGH0kc3oUBze7bOqylkfHojzjEV+qZJJl9ljT6EgA2pxAczdByDwGw74GEhWqYgarOVAosIsplbcd+QopM3206EW2p1VtcKjErU4A+hqLe7pMcrvdIFk+MF5BCwOrS18QqmCg1tUrZxR40bLWv1SMjyb1BLK+OYAkSSGABp7pFTBiopGth8ZAxBqCQ04bbeYqFYYRGiq32pzCo80AoglRuI8gWUXrsV+RKNa1n4krNlsIMwcKYDLyW+dotGvT1CZLSZNMUK4OwekVhmvoVaxas0jEM2ADttFK79sMWkZ0EnBjpWqtmplYpPah2lA1xwghZmdUieKWrgijod1JmpRasZSSzkHLq1+Y5upO0TG2Dy1Gg0E6zJ1qGOQ33GqFtfe4u2wU5SSITZeeGaAjJQHQs+uKdNzOuKP4XKnvebzEUm1DNSKvQPf8QlW6RRFlxD/gQwtINGMOuGFp015hDD4MNgLz9Px7BfGP9IBKOf0Cghxhq4hSguBMI2MZI3SfsSU2aVNJAM6JiGWniHieIhVC77jeBJjRJq5cR2i9oRX0+qG0WkcPxMBoikDKA9bB3TqU93oZVKloTvoyXB0YtWvIi5UtZZ2nVkB8guyozw+rwRwFwAAAABJRU5ErkJgggAA", image: null});
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAC1klEQVRoQ+VaS07DMBB1RCWQyooDVHwE52DfG7BnzXFYsETiBuw5B4iPOAAruisqGlPTiTPfOIUmzSqkie03nvfmY6pwtbcIBdfl7KLg69WnN+O7onGq7QEynYTq4SNaazH7bFgN78hotBOOjw7jO49Pz7/vwnO44LeX17d4P59/hfQc7vMdqcb7YXF+8DPG/Xt93ukk/g3rSmty7QgMngP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R2QGJOK0TyBqoHkziiIHXovxOwtGugGSa8n0ERVZDa4VlmSKhpU9yJ7m8DgjQSNkEZzrDxHMheg0h8vu1yWtPQOJSsslp6trmSovWUAVH6dfkLUYg5ARVK4CCngcIGZLUNkde89FrMYZQVSjQW2tpV+UAEZ6jwOECWbVY8EkgSSUu2lF1j+MbDi9MdIopkUkrdWC2AuQsIQW7o4UR0/hW+4Wbs/CUdclC6nf4DoIxgia2SmDrZTr6LsgY8xZqGnUei0X7ZQ3Km+iGCGK3GRG012XFxcDhNInSo1rhnnHZtkpTzG38ttqZff2QaxT87mKQS0yZt9ArFyNkoHFDCPZ8Nh7kx960eNaPlhLtWBKZSWb+6/ugawVLjo4jfXSFincZKQbIJo+YXthNZByb8XES6AW6Qs6q+ETrwmK6g6+hxtHy3B287kMdujxewGC0h0FtOGbXM/mE6ZfBK7J9WAPVnTmqI40MRQd8ttAoLSQwRte16VV46E/mmk6ByIkIGcI5o8BsNMNygudu4+spYCzhjBzVNhF1moA5BuGpDZdvUudkAAAAABJRU5ErkJgggAA", image: null});
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACVUlEQVRoQ+1aoVIDMRDNmQ4zVNWAqqpvPwGF6cfwRwj+AYPiBxB1iGJQ1DCIA4EpkzST2esl2bdp5uhse6rlNsm+fW93k5TG3F1sjYKnOQMBWGwux85qezPZWT++A6PiJnSu5vlzN+93G4whRsIkZGBsOWtX5PRyaoJzHrT9Th3lIqAUyHIal0Dq79aaRpNhjIvqIe8hRvYXcBL6J6dTa+sDIoqyVE5emi6BaTInPodKR6ocV3Ca2cPP8TbE+U7U63tfvjNJdAaSCs749te9ajcjY1ZYHbJjnL19ImPWLxMzuLSOF8jcmPGVj/KTjxoW6GpWlhHbr3LbnGa28skOyqCad4KJMGlpAbL4+HLlty2UTTZRffkM0tyM4jK1dhlFYNI61j5CwGHSUg2EoVqQp1VMe9KKVDCss3utBx1XBoo0RBq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PN5v+gY7k27dYS68ey0NcjAuslFTLhqTsoGoqHP9X0rnUSvufMfKfS2VLo3hjZ761hOLNtFSD7vLs7tLZ/fscBY0qxMIMGIK1HrTTNxyrGdxsCQlDUxMmSiQ48tBsgPuYHEBSsT+RMAAAAASUVORK5CYIIA", image: null});
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACT0lEQVRoQ+1ZO1bDMBBcNzzew1UaOje4oEvBBVLR+BZcgNPRUHEEuAIVNFShoXGeHGPWQvuTHJPIpExkWbMzO7vaFHB/3kIGn+IfyJGxODBSXJTQfm7TjtdUUDx9dHu0mxXAw2vafoan8wMCTTWKoGOoi2wqSziq3juGn6jvp2QES24At1mNJKSVk0a+YgAJ0KK0Tg6IgUX9Uhc9gHgD6J/HpkGxqqoj9d3eieBFj2HulXkCCSZaU0H99swHeN3/bGSsvP3qHtw+niUTOGIkGyBdLXEfVJEduKvr+Sq0hpoQkzZGNBLSrPFPuwYoL9NklicQSVrB5HQMoCSfMoE1MvteI9uvxrWEN84BbjlA/sy1jAaQzIiTTVRBw7nl5RmnVOp9ywEiSssQTYsLkWsJJn8YYW5vXK9lktYEoGVp5QKEu4bWN/19JMQ3E2W/fkzCHvE+8arrzn5SQLhEHIBYG0LreoUbyDniNgm08ZgRU6thLGgKDPslxL7jOpILEGqmxOaIOpT8QhPbga2Cld13sNhkN2FMzKe8gfhzYI4RTW3QXMi07OlcK6S9Qw4fEuWEjyt2v2LTqA0l1RW4743zsNBWJBA8eRcHdHhnLspUOzNBM5k/EBzkQ9eRYAIbmlF31vBcy/v/zwfCOpWQwFThS+qUswVCGdAvaSmTc4jyez9t59ypZzJ2dCrar3gfSbHfiGejC+IygWgkl1rNpavuiGVvEDGl/eK8ic0HfWXPBgiCHN1raWQWkey6qy6xcVBayC6jZr8xIJhn4u33yIDsAOFH4VsPYGAqAAAAAElFTkSuQmCC", image: null});
this.gridImages.push({imageb64: "data:image/png;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Sy2qDO2VYrrqUPr1Aa4GyC1jmYjdHA3qDQAAAABJRU5ErkJgggAA", image: null});
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADc0lEQVRoQ+VavY7UQAyeUPFzBVoQolqJk/h5CnQVQmwFL0LPQx0VCF114ilASCBRISRWVxyigkWei2e/OPZ4Jps9kZDmsonHk8/+7PF4rmle3d6EEMLmaBGa0zXdhs3P8/g3XqtlCG++bu9DiHIkT1e8l/KKjKY3zZebW8zR3DjQ55sNkPDyavRIRNpaOXlg65feHcmzJy35jgwJs2eFtpK5ky70PuhpGAiD0WiWU4If0aNZOxECUunbGjIZppROQOt5AmFP9VxNAe9Qw6NZKX0typZTa7XsZC0cqCppwSGdzIwC2dDSJSnX05WJ12ikFCOzAeIgzr0+e/oovv5z7TBc+fVZvaeHi9dvVTU0nsbSxeNvvvuwlV0tw9nv6/E3PWev/njyOOnsBHtnFoiL9fNnO8Dcfhx/7E7KjMH/ARBAvqtH0IifvnyPPx/ePU900oxMcvfv3Ymv8N7ypu2RqQFJtZZVKIYQch6h4MRA9eIAkwFal59//HZR+rA3OAF4evWVHUBhRvGCtIQCng6PZpjZENw8gVjW0qjFQYsU4MDkYNZownOM7b3kEau8oNJ7zKxlGQuzGcnImLBii/XND0hvVYdNkPSIzFRIIY1ynjWHJACZzZpw8iDuEOXuDavUHLXG5noNKJx7RkDaPTtZwtq87CvYc5RD+sqFU1uA3RKFwFG5LOslrQ6yaGalao9GXmx1qQUe0RRPDwg24gSiXNbKWXVxdNzQ+/Xpi4uEkrk860tG0G9cjDtbXavvNC0ghrW0ojGXcjXL4qptlS1D46i3sl921pLGqKGWGstqp1G0JfeRfscHYqzsiFoDkuuW0NjaFV9Sq5a+5jqCLRcv44zxfii12ADzA2K1KClr5TZINd6wyo4aHVKWPemWKFagW+U6g6Z2j2cAj041aXveQCTNatJvSTaT5YVGLfIGeZWukm2v6pFpA6koGncJTrm30Cw+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PgsgeBcq41xpkpcm4OiqSmyc7lWbvcagHMlIin7Nu0QiwGipfGcPWgeDPYgqXscNnEcln/IY4VigKS43zgi4x1gm12f5DBi95s1smuBD0BAhZGrAUB/qhIJfaQ9y1i1X65uJRUqnhRI8FpwsIIPWfB7OPTBLpQrKGjxhStgSJr05dKoVBoX6xrH09z5XgwkZbGhjxYQJY8F//ARd+Md33woBggljbba0KrqnDa1/QjXb/QuytZSfYsAV/DAViiPonkwPDE+PwljxYFWotzbw+/NayJURaWmVjFABAuW6IVjA05JqNTGUl7ltI+Pq6njbvJSTXz5pa2djOPVsHcLgjEFROq+1iwCeQQxq65kuNKZ2wAAAABJRU5ErkJgggAA", image: null});
this.gridImages.push({imageb64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADYUlEQVRoQ+1au4pUQRDt1kRxAxlFjBYUfIR+gMhGIm6kP2Luz/gJRrvKRoOZf6AICkYiOGzgI3OkeqYu5/at6qrum8w03mjgVj9O1elTVbcnhheX1sF4Vs+eWibV7z99+R7u3fyZxn38dhDu3LqhzrF4fRrC8eHm/cnXwS5eOQjrX5s5Yp9ABNSEthQR8mzJm5qbL/z5HP5evu2KZIqI9NB+txEaRYRCRQ+Fi3//ePzItVhuRBslytBjAZWcgUA1auGa/QCJL6+nw86HRnK/RC3yGD1Ij1aaWSGvptZoQjgvOZASvwmMh07W5vE9AkGlUqnVDRD2PHn86tsPAy5vHrFyA0bSUi2kaU4tFCXeZFwtn5sJsUSDms3V0GlCLSU1/AeSexUpYKnWHJEQlQsT4lxq7QyQ8zcP0hnJywXOE5SdubizSgrrAEvZn9eW8hLbu+T3/auHCUipjODc4AGkJUpeoyXPqAkRPBO7ATL3jLRKas04LSKjfqQFiKVO3k3W0Oza2bs0rVYTNiXEnQRiqZZHqbjvIDFge0nBPA6QopSXTFJNqB52b9hr8ghtQJvXUsZcgnOa9QMEqVVKSpo3a5OgVwjQrkitreHosHvp1LIZGjMHdFWt1Q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p6mfrBycgLFAIoZCzSdP7kaeifkqURqlQkEoUqlFo4TMF2O0WN6YafkxPwyduTKqNpTgcTSR3LhcV6rGCB0+0bG/vwxWwc6HBCl+1AtwP9bC4icsXcSCGdEkn1g99u2KxbjCNp5NWl83tsKpgAA4rJbjUIazSgQv9cSyN15ILlJY6jRh4yzkX3ybTgU1SNsZJdCf4xGqFBtBcR6HS6NLwaIqOL9FcMljilZLF5DKsi4eWl6wmXqrNei2qEumHqnEJ7njEn2Wp0E8h2FlRYcuVo/RkN5AZHJtfDiknCpQvuyAwBSB8HdPuuC5cjeNSAatdqqRWIchkStRoOuGCBcp1HzWjQe5JSwoUa/cHpmhzZiSExkh56r1EnhhJACJYzVerzUmbiseSzX4vrATiNSitI5IHY3Enq/odTIHccaPNv7Jc0HXLw4z9VWJah5MNygkzZcbAd1F4hH91osSY3mbsnYUpcTNSn79S3sy7s0Ckl7OZbGQ5pCqsVCgQjndDGHPbk047QSf6xQDBBmO0IMPeWITbIXKTMI7qLYYMi0WnK6KG5fpONrX+OOAq3pJcQ79Vihe0BGx1o0wwzp/eamH9r/80pdNHuIncRmt5rw+H2j1EVH5wNU9qpNbJiw00C4XEvaxdRmXWjMiWrQ2XqECf0hxi59HKMJGlqEUWp5c61igFCUvmMFKWn8zu9P8FzbF+csq5ufOZ1uDL/Xkr6DmusZLtfCdAr9OggLB//RTrKc9P33yzH5XJhwG16ZQoB8AkDYWczDQZIpAAAAAElFTkSuQmCC", image: null});
//this.gridImages.push({imageb64: "", image: null});
for(var i = 0; i < this.gridImages.length; i++)
{
//console.log("Hoera");
setImageValue(this.gridImages[i]);
}
};
}