minimal-web-templates – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /*jslint browser: true, undef: true, eqeqeq: true, nomen: true, white: true */
2 /*global window: false, document: false */
3  
4 /*
5 * fix looped audio
6 * add fruits + levels
7 * fix what happens when a ghost is eaten (should go back to base)
8 * do proper ghost mechanics (blinky/wimpy etc)
9 */
10  
11 var NONE = 4,
12 UP = 3,
13 LEFT = 2,
14 DOWN = 1,
15 RIGHT = 11,
16 WAITING = 5,
17 PAUSE = 6,
18 PLAYING = 7,
19 COUNTDOWN = 8,
20 EATEN_PAUSE = 9,
21 DYING = 10,
22 Pacman = {};
23  
24 Pacman.FPS = 30;
25  
26 Pacman.Ghost = function (game, map, colour) {
27  
28 var position = null,
29 direction = null,
30 eatable = null,
31 eaten = null,
32 due = null;
33  
34 function getNewCoord(dir, current) {
35  
36 var speed = isVunerable() ? 1 : isHidden() ? 4 : 2,
37 xSpeed = (dir === LEFT && -speed || dir === RIGHT && speed || 0),
38 ySpeed = (dir === DOWN && speed || dir === UP && -speed || 0);
39  
40 return {
41 "x": addBounded(current.x, xSpeed),
42 "y": addBounded(current.y, ySpeed)
43 };
44 };
45  
46 /* Collision detection(walls) is done when a ghost lands on an
47 * exact block, make sure they dont skip over it
48 */
49 function addBounded(x1, x2) {
50 var rem = x1 % 10,
51 result = rem + x2;
52 if (rem !== 0 && result > 10) {
53 return x1 + (10 - rem);
54 } else if(rem > 0 && result < 0) {
55 return x1 - rem;
56 }
57 return x1 + x2;
58 };
59  
60 function isVunerable() {
61 return eatable !== null;
62 };
63  
64 function isDangerous() {
65 return eaten === null;
66 };
67  
68 function isHidden() {
69 return eatable === null && eaten !== null;
70 };
71  
72 function getRandomDirection() {
73 var moves = (direction === LEFT || direction === RIGHT)
74 ? [UP, DOWN] : [LEFT, RIGHT];
75 return moves[Math.floor(Math.random() * 2)];
76 };
77  
78 function reset() {
79 eaten = null;
80 eatable = null;
81 position = {"x": 90, "y": 80};
82 direction = getRandomDirection();
83 due = getRandomDirection();
84 };
85  
86 function onWholeSquare(x) {
87 return x % 10 === 0;
88 };
89  
90 function oppositeDirection(dir) {
91 return dir === LEFT && RIGHT ||
92 dir === RIGHT && LEFT ||
93 dir === UP && DOWN || UP;
94 };
95  
96 function makeEatable() {
97 direction = oppositeDirection(direction);
98 eatable = game.getTick();
99 };
100  
101 function eat() {
102 eatable = null;
103 eaten = game.getTick();
104 };
105  
106 function pointToCoord(x) {
107 return Math.round(x / 10);
108 };
109  
110 function nextSquare(x, dir) {
111 var rem = x % 10;
112 if (rem === 0) {
113 return x;
114 } else if (dir === RIGHT || dir === DOWN) {
115 return x + (10 - rem);
116 } else {
117 return x - rem;
118 }
119 };
120  
121 function onGridSquare(pos) {
122 return onWholeSquare(pos.y) && onWholeSquare(pos.x);
123 };
124  
125 function secondsAgo(tick) {
126 return (game.getTick() - tick) / Pacman.FPS;
127 };
128  
129 function getColour() {
130 if (eatable) {
131 if (secondsAgo(eatable) > 5) {
132 return game.getTick() % 20 > 10 ? "#FFFFFF" : "#0000BB";
133 } else {
134 return "#0000BB";
135 }
136 } else if(eaten) {
137 return "#222";
138 }
139 return colour;
140 };
141  
142 function draw(ctx) {
143  
144 var s = map.blockSize,
145 top = (position.y/10) * s,
146 left = (position.x/10) * s;
147  
148 if (eatable && secondsAgo(eatable) > 8) {
149 eatable = null;
150 }
151  
152 if (eaten && secondsAgo(eaten) > 3) {
153 eaten = null;
154 }
155  
156 var tl = left + s;
157 var base = top + s - 3;
158 var inc = s / 10;
159  
160 var high = game.getTick() % 10 > 5 ? 3 : -3;
161 var low = game.getTick() % 10 > 5 ? -3 : 3;
162  
163 ctx.fillStyle = getColour();
164 ctx.beginPath();
165  
166 ctx.moveTo(left, base);
167  
168 ctx.quadraticCurveTo(left, top, left + (s/2), top);
169 ctx.quadraticCurveTo(left + s, top, left+s, base);
170  
171 // Wavy things at the bottom
172 ctx.quadraticCurveTo(tl-(inc*1), base+high, tl - (inc * 2), base);
173 ctx.quadraticCurveTo(tl-(inc*3), base+low, tl - (inc * 4), base);
174 ctx.quadraticCurveTo(tl-(inc*5), base+high, tl - (inc * 6), base);
175 ctx.quadraticCurveTo(tl-(inc*7), base+low, tl - (inc * 8), base);
176 ctx.quadraticCurveTo(tl-(inc*9), base+high, tl - (inc * 10), base);
177  
178 ctx.closePath();
179 ctx.fill();
180  
181 ctx.beginPath();
182 ctx.fillStyle = "#FFF";
183 ctx.arc(left + 6,top + 6, s / 6, 0, 300, false);
184 ctx.arc((left + s) - 6,top + 6, s / 6, 0, 300, false);
185 ctx.closePath();
186 ctx.fill();
187  
188 var f = s / 12;
189 var off = {};
190 off[RIGHT] = [f, 0];
191 off[LEFT] = [-f, 0];
192 off[UP] = [0, -f];
193 off[DOWN] = [0, f];
194  
195 ctx.beginPath();
196 ctx.fillStyle = "#000";
197 ctx.arc(left+6+off[direction][0], top+6+off[direction][1],
198 s / 15, 0, 300, false);
199 ctx.arc((left+s)-6+off[direction][0], top+6+off[direction][1],
200 s / 15, 0, 300, false);
201 ctx.closePath();
202 ctx.fill();
203  
204 };
205  
206 function pane(pos) {
207  
208 if (pos.y === 100 && pos.x >= 190 && direction === RIGHT) {
209 return {"y": 100, "x": -10};
210 }
211  
212 if (pos.y === 100 && pos.x <= -10 && direction === LEFT) {
213 <= -10 && direction === LEFT) { return position = {"y": 100, "x": 190};
214 <= -10 && direction === LEFT) { }
215  
216 <= -10 && direction === LEFT) { return false;
217 <= -10 && direction === LEFT) { };
218  
219 <= -10 && direction === LEFT) { function move(ctx) {
220  
221 <= -10 && direction === LEFT) { var oldPos = position,
222 <= -10 && direction === LEFT) { onGrid = onGridSquare(position),
223 <= -10 && direction === LEFT) { npos = null;
224  
225 <= -10 && direction === LEFT) { if (due !== direction) {
226  
227 <= -10 && direction === LEFT) { npos = getNewCoord(due, position);
228  
229 <= -10 && direction === LEFT) { if (onGrid &&
230 <= -10 && direction === LEFT) { map.isFloorSpace({
231 <= -10 && direction === LEFT) { "y":pointToCoord(nextSquare(npos.y, due)),
232 <= -10 && direction === LEFT) { "x":pointToCoord(nextSquare(npos.x, due))})) {
233 <= -10 && direction === LEFT) { direction = due;
234 <= -10 && direction === LEFT) { } else {
235 <= -10 && direction === LEFT) { npos = null;
236 <= -10 && direction === LEFT) { }
237 <= -10 && direction === LEFT) { }
238  
239 <= -10 && direction === LEFT) { if (npos === null) {
240 <= -10 && direction === LEFT) { npos = getNewCoord(direction, position);
241 <= -10 && direction === LEFT) { }
242  
243 <= -10 && direction === LEFT) { if (onGrid &&
244 <= -10 && direction === LEFT) { map.isWallSpace({
245 <= -10 && direction === LEFT) { "y" : pointToCoord(nextSquare(npos.y, direction)),
246 <= -10 && direction === LEFT) { "x" : pointToCoord(nextSquare(npos.x, direction))
247 <= -10 && direction === LEFT) { })) {
248  
249 <= -10 && direction === LEFT) { due = getRandomDirection();
250 <= -10 && direction === LEFT) { return move(ctx);
251 <= -10 && direction === LEFT) { }
252  
253 <= -10 && direction === LEFT) { position = npos;
254  
255 <= -10 && direction === LEFT) { var tmp = pane(position);
256 <= -10 && direction === LEFT) { if (tmp) {
257 <= -10 && direction === LEFT) { position = tmp;
258 <= -10 && direction === LEFT) { }
259  
260 <= -10 && direction === LEFT) { due = getRandomDirection();
261  
262 <= -10 && direction === LEFT) { return {
263 <= -10 && direction === LEFT) { "new" : position,
264 <= -10 && direction === LEFT) { "old" : oldPos
265 <= -10 && direction === LEFT) { };
266 <= -10 && direction === LEFT) { };
267  
268 <= -10 && direction === LEFT) { return {
269 <= -10 && direction === LEFT) { "eat" : eat,
270 <= -10 && direction === LEFT) { "isVunerable" : isVunerable,
271 <= -10 && direction === LEFT) { "isDangerous" : isDangerous,
272 <= -10 && direction === LEFT) { "makeEatable" : makeEatable,
273 <= -10 && direction === LEFT) { "reset" : reset,
274 <= -10 && direction === LEFT) { "move" : move,
275 <= -10 && direction === LEFT) { "draw" : draw
276 <= -10 && direction === LEFT) { };
277 <= -10 && direction === LEFT) {};
278  
279 <= -10 && direction === LEFT) {Pacman.User = function (game, map) {
280  
281 <= -10 && direction === LEFT) { var position = null,
282 <= -10 && direction === LEFT) { direction = null,
283 <= -10 && direction === LEFT) { eaten = null,
284 <= -10 && direction === LEFT) { due = null,
285 <= -10 && direction === LEFT) { lives = null,
286 <= -10 && direction === LEFT) { score = 5,
287 <= -10 && direction === LEFT) { keyMap = {};
288  
289 <= -10 && direction === LEFT) { keyMap[KEY.ARROW_LEFT] = LEFT;
290 <= -10 && direction === LEFT) { keyMap[KEY.ARROW_UP] = UP;
291 <= -10 && direction === LEFT) { keyMap[KEY.ARROW_RIGHT] = RIGHT;
292 <= -10 && direction === LEFT) { keyMap[KEY.ARROW_DOWN] = DOWN;
293  
294 <= -10 && direction === LEFT) { function addScore(nScore) {
295 <= -10 && direction === LEFT) { score += nScore;
296 <= -10 && direction === LEFT) { if (score >= 10000 && score - nScore < 10000) {
297 <= -10 && direction === LEFT) {< 10000) { lives += 1;
298 <= -10 && direction === LEFT) {< 10000) { }
299 <= -10 && direction === LEFT) {< 10000) { };
300  
301 <= -10 && direction === LEFT) {< 10000) { function theScore() {
302 <= -10 && direction === LEFT) {< 10000) { return score;
303 <= -10 && direction === LEFT) {< 10000) { };
304  
305 <= -10 && direction === LEFT) {< 10000) { function loseLife() {
306 <= -10 && direction === LEFT) {< 10000) { lives -= 1;
307 <= -10 && direction === LEFT) {< 10000) { };
308  
309 <= -10 && direction === LEFT) {< 10000) { function getLives() {
310 <= -10 && direction === LEFT) {< 10000) { return lives;
311 <= -10 && direction === LEFT) {< 10000) { };
312  
313 <= -10 && direction === LEFT) {< 10000) { function initUser() {
314 <= -10 && direction === LEFT) {< 10000) { score = 0;
315 <= -10 && direction === LEFT) {< 10000) { lives = 3;
316 <= -10 && direction === LEFT) {< 10000) { newLevel();
317 <= -10 && direction === LEFT) {< 10000) { }
318  
319 <= -10 && direction === LEFT) {< 10000) { function newLevel() {
320 <= -10 && direction === LEFT) {< 10000) { resetPosition();
321 <= -10 && direction === LEFT) {< 10000) { eaten = 0;
322 <= -10 && direction === LEFT) {< 10000) { };
323  
324 <= -10 && direction === LEFT) {< 10000) { function resetPosition() {
325 <= -10 && direction === LEFT) {< 10000) { position = {"x": 90, "y": 120};
326 <= -10 && direction === LEFT) {< 10000) { direction = LEFT;
327 <= -10 && direction === LEFT) {< 10000) { due = LEFT;
328 <= -10 && direction === LEFT) {< 10000) { };
329  
330 <= -10 && direction === LEFT) {< 10000) { function reset() {
331 <= -10 && direction === LEFT) {< 10000) { initUser();
332 <= -10 && direction === LEFT) {< 10000) { resetPosition();
333 <= -10 && direction === LEFT) {< 10000) { };
334  
335 <= -10 && direction === LEFT) {< 10000) { function keyDown(e) {
336 <= -10 && direction === LEFT) {< 10000) { if (typeof keyMap[e.keyCode] !== "undefined") {
337 <= -10 && direction === LEFT) {< 10000) { due = keyMap[e.keyCode];
338 <= -10 && direction === LEFT) {< 10000) { e.preventDefault();
339 <= -10 && direction === LEFT) {< 10000) { e.stopPropagation();
340 <= -10 && direction === LEFT) {< 10000) { return false;
341 <= -10 && direction === LEFT) {< 10000) { }
342 <= -10 && direction === LEFT) {< 10000) { return true;
343 <= -10 && direction === LEFT) {< 10000) { };
344  
345 <= -10 && direction === LEFT) {< 10000) { function getNewCoord(dir, current) {
346 <= -10 && direction === LEFT) {< 10000) { return {
347 <= -10 && direction === LEFT) {< 10000) { "x": current.x + (dir === LEFT && -2 || dir === RIGHT && 2 || 0),
348 <= -10 && direction === LEFT) {< 10000) { "y": current.y + (dir === DOWN && 2 || dir === UP && -2 || 0)
349 <= -10 && direction === LEFT) {< 10000) { };
350 <= -10 && direction === LEFT) {< 10000) { };
351  
352 <= -10 && direction === LEFT) {< 10000) { function onWholeSquare(x) {
353 <= -10 && direction === LEFT) {< 10000) { return x % 10 === 0;
354 <= -10 && direction === LEFT) {< 10000) { };
355  
356 <= -10 && direction === LEFT) {< 10000) { function pointToCoord(x) {
357 <= -10 && direction === LEFT) {< 10000) { return Math.round(x/10);
358 <= -10 && direction === LEFT) {< 10000) { };
359  
360 <= -10 && direction === LEFT) {< 10000) { function nextSquare(x, dir) {
361 <= -10 && direction === LEFT) {< 10000) { var rem = x % 10;
362 <= -10 && direction === LEFT) {< 10000) { if (rem === 0) {
363 <= -10 && direction === LEFT) {< 10000) { return x;
364 <= -10 && direction === LEFT) {< 10000) { } else if (dir === RIGHT || dir === DOWN) {
365 <= -10 && direction === LEFT) {< 10000) { return x + (10 - rem);
366 <= -10 && direction === LEFT) {< 10000) { } else {
367 <= -10 && direction === LEFT) {< 10000) { return x - rem;
368 <= -10 && direction === LEFT) {< 10000) { }
369 <= -10 && direction === LEFT) {< 10000) { };
370  
371 <= -10 && direction === LEFT) {< 10000) { function next(pos, dir) {
372 <= -10 && direction === LEFT) {< 10000) { return {
373 <= -10 && direction === LEFT) {< 10000) { "y" : pointToCoord(nextSquare(pos.y, dir)),
374 <= -10 && direction === LEFT) {< 10000) { "x" : pointToCoord(nextSquare(pos.x, dir)),
375 <= -10 && direction === LEFT) {< 10000) { };
376 <= -10 && direction === LEFT) {< 10000) { };
377  
378 <= -10 && direction === LEFT) {< 10000) { function onGridSquare(pos) {
379 <= -10 && direction === LEFT) {< 10000) { return onWholeSquare(pos.y) && onWholeSquare(pos.x);
380 <= -10 && direction === LEFT) {< 10000) { };
381  
382 <= -10 && direction === LEFT) {< 10000) { function isOnSamePlane(due, dir) {
383 <= -10 && direction === LEFT) {< 10000) { return ((due === LEFT || due === RIGHT) &&
384 <= -10 && direction === LEFT) {< 10000) { (dir === LEFT || dir === RIGHT)) ||
385 <= -10 && direction === LEFT) {< 10000) { ((due === UP || due === DOWN) &&
386 <= -10 && direction === LEFT) {< 10000) { (dir === UP || dir === DOWN));
387 <= -10 && direction === LEFT) {< 10000) { };
388  
389 <= -10 && direction === LEFT) {< 10000) { function move(ctx) {
390  
391 <= -10 && direction === LEFT) {< 10000) { var npos = null,
392 <= -10 && direction === LEFT) {< 10000) { nextWhole = null,
393 <= -10 && direction === LEFT) {< 10000) { oldPosition = position,
394 <= -10 && direction === LEFT) {< 10000) { block = null;
395  
396 <= -10 && direction === LEFT) {< 10000) { if (due !== direction) {
397 <= -10 && direction === LEFT) {< 10000) { npos = getNewCoord(due, position);
398  
399 <= -10 && direction === LEFT) {< 10000) { if (isOnSamePlane(due, direction) ||
400 <= -10 && direction === LEFT) {< 10000) { (onGridSquare(position) &&
401 <= -10 && direction === LEFT) {< 10000) { map.isFloorSpace(next(npos, due)))) {
402 <= -10 && direction === LEFT) {< 10000) { direction = due;
403 <= -10 && direction === LEFT) {< 10000) { } else {
404 <= -10 && direction === LEFT) {< 10000) { npos = null;
405 <= -10 && direction === LEFT) {< 10000) { }
406 <= -10 && direction === LEFT) {< 10000) { }
407  
408 <= -10 && direction === LEFT) {< 10000) { if (npos === null) {
409 <= -10 && direction === LEFT) {< 10000) { npos = getNewCoord(direction, position);
410 <= -10 && direction === LEFT) {< 10000) { }
411  
412 <= -10 && direction === LEFT) {< 10000) { if (onGridSquare(position) && map.isWallSpace(next(npos, direction))) {
413 <= -10 && direction === LEFT) {< 10000) { direction = NONE;
414 <= -10 && direction === LEFT) {< 10000) { }
415  
416 <= -10 && direction === LEFT) {< 10000) { if (direction === NONE) {
417 <= -10 && direction === LEFT) {< 10000) { return {"new" : position, "old" : position};
418 <= -10 && direction === LEFT) {< 10000) { }
419  
420 <= -10 && direction === LEFT) {< 10000) { if (npos.y === 100 && npos.x >= 190 && direction === RIGHT) {
421 <= -10 && direction === LEFT) {< 10000) { npos = {"y": 100, "x": -10};
422 <= -10 && direction === LEFT) {< 10000) { }
423  
424 <= -10 && direction === LEFT) {< 10000) { if (npos.y === 100 && npos.x <= -12 && direction === LEFT) {
425 <= -10 && direction === LEFT) {< 10000) { npos = {"y": 100, "x": 190};
426 <= -10 && direction === LEFT) {< 10000) { }
427  
428 <= -10 && direction === LEFT) {< 10000) { position = npos;
429 <= -10 && direction === LEFT) {< 10000) { nextWhole = next(position, direction);
430  
431 <= -10 && direction === LEFT) {< 10000) { block = map.block(nextWhole);
432  
433 <= -10 && direction === LEFT) {< 10000) { if ((isMidSquare(position.y) || isMidSquare(position.x)) &&
434 <= -10 && direction === LEFT) {< 10000) { block === Pacman.BISCUIT || block === Pacman.PILL) {
435  
436 <= -10 && direction === LEFT) {< 10000) { map.setBlock(nextWhole, Pacman.EMPTY);
437 <= -10 && direction === LEFT) {< 10000) { addScore((block === Pacman.BISCUIT) ? 10 : 50);
438 <= -10 && direction === LEFT) {< 10000) { eaten += 1;
439  
440 <= -10 && direction === LEFT) {< 10000) { if (eaten === 182) {
441 <= -10 && direction === LEFT) {< 10000) { game.completedLevel();
442 <= -10 && direction === LEFT) {< 10000) { }
443  
444 <= -10 && direction === LEFT) {< 10000) { if (block === Pacman.PILL) {
445 <= -10 && direction === LEFT) {< 10000) { game.eatenPill();
446 <= -10 && direction === LEFT) {< 10000) { }
447 <= -10 && direction === LEFT) {< 10000) { }
448  
449 <= -10 && direction === LEFT) {< 10000) { return {
450 <= -10 && direction === LEFT) {< 10000) { "new" : position,
451 <= -10 && direction === LEFT) {< 10000) { "old" : oldPosition
452 <= -10 && direction === LEFT) {< 10000) { };
453 <= -10 && direction === LEFT) {< 10000) { };
454  
455 <= -10 && direction === LEFT) {< 10000) { function isMidSquare(x) {
456 <= -10 && direction === LEFT) {< 10000) { var rem = x % 10;
457 <= -10 && direction === LEFT) {< 10000) { return rem > 3 || rem < 7;
458 <= -10 && direction === LEFT) {< 10000) { };
459  
460 <= -10 && direction === LEFT) {< 10000) { function calcAngle(dir, pos) {
461 <= -10 && direction === LEFT) {< 10000) { if (dir == RIGHT && (pos.x % 10 < 5)) {
462 <= -10 && direction === LEFT) {< 10000) { return {"start":0.25, "end":1.75, "direction": false};
463 <= -10 && direction === LEFT) {< 10000) { } else if (dir === DOWN && (pos.y % 10 < 5)) {
464 <= -10 && direction === LEFT) {< 10000) { return {"start":0.75, "end":2.25, "direction": false};
465 <= -10 && direction === LEFT) {< 10000) { } else if (dir === UP && (pos.y % 10 < 5)) {
466 <= -10 && direction === LEFT) {< 10000) { return {"start":1.25, "end":1.75, "direction": true};
467 <= -10 && direction === LEFT) {< 10000) { } else if (dir === LEFT && (pos.x % 10 < 5)) {
468 <= -10 && direction === LEFT) {< 10000) { return {"start":0.75, "end":1.25, "direction": true};
469 <= -10 && direction === LEFT) {< 10000) { }
470 <= -10 && direction === LEFT) {< 10000) { return {"start":0, "end":2, "direction": false};
471 <= -10 && direction === LEFT) {< 10000) { };
472  
473 <= -10 && direction === LEFT) {< 10000) { function drawDead(ctx, amount) {
474  
475 <= -10 && direction === LEFT) {< 10000) { var size = map.blockSize,
476 <= -10 && direction === LEFT) {< 10000) { half = size / 2;
477  
478 <= -10 && direction === LEFT) {< 10000) { if (amount >= 1) {
479 <= -10 && direction === LEFT) {< 10000) { return;
480 <= -10 && direction === LEFT) {< 10000) { }
481  
482 <= -10 && direction === LEFT) {< 10000) { ctx.fillStyle = "#FFFF00";
483 <= -10 && direction === LEFT) {< 10000) { ctx.beginPath();
484 <= -10 && direction === LEFT) {< 10000) { ctx.moveTo(((position.x/10) * size) + half,
485 <= -10 && direction === LEFT) {< 10000) { ((position.y/10) * size) + half);
486  
487 <= -10 && direction === LEFT) {< 10000) { ctx.arc(((position.x/10) * size) + half,
488 <= -10 && direction === LEFT) {< 10000) { ((position.y/10) * size) + half,
489 <= -10 && direction === LEFT) {< 10000) { half, 0, Math.PI * 2 * amount, true);
490  
491 <= -10 && direction === LEFT) {< 10000) { ctx.fill();
492 <= -10 && direction === LEFT) {< 10000) { };
493  
494 <= -10 && direction === LEFT) {< 10000) { function draw(ctx) {
495  
496 <= -10 && direction === LEFT) {< 10000) { var s = map.blockSize,
497 <= -10 && direction === LEFT) {< 10000) { angle = calcAngle(direction, position);
498  
499 <= -10 && direction === LEFT) {< 10000) { ctx.fillStyle = "#FFFF00";
500  
501 <= -10 && direction === LEFT) {< 10000) { ctx.beginPath();
502  
503 <= -10 && direction === LEFT) {< 10000) { ctx.moveTo(((position.x/10) * s) + s / 2,
504 <= -10 && direction === LEFT) {< 10000) { ((position.y/10) * s) + s / 2);
505  
506 <= -10 && direction === LEFT) {< 10000) { ctx.arc(((position.x/10) * s) + s / 2,
507 <= -10 && direction === LEFT) {< 10000) { ((position.y/10) * s) + s / 2,
508 <= -10 && direction === LEFT) {< 10000) { s / 2, Math.PI * angle.start,
509 <= -10 && direction === LEFT) {< 10000) { Math.PI * angle.end, angle.direction);
510  
511 <= -10 && direction === LEFT) {< 10000) { ctx.fill();
512 <= -10 && direction === LEFT) {< 10000) { };
513  
514 <= -10 && direction === LEFT) {< 10000) { initUser();
515  
516 <= -10 && direction === LEFT) {< 10000) { return {
517 <= -10 && direction === LEFT) {< 10000) { "draw" : draw,
518 <= -10 && direction === LEFT) {< 10000) { "drawDead" : drawDead,
519 <= -10 && direction === LEFT) {< 10000) { "loseLife" : loseLife,
520 <= -10 && direction === LEFT) {< 10000) { "getLives" : getLives,
521 <= -10 && direction === LEFT) {< 10000) { "score" : score,
522 <= -10 && direction === LEFT) {< 10000) { "addScore" : addScore,
523 <= -10 && direction === LEFT) {< 10000) { "theScore" : theScore,
524 <= -10 && direction === LEFT) {< 10000) { "keyDown" : keyDown,
525 <= -10 && direction === LEFT) {< 10000) { "move" : move,
526 <= -10 && direction === LEFT) {< 10000) { "newLevel" : newLevel,
527 <= -10 && direction === LEFT) {< 10000) { "reset" : reset,
528 <= -10 && direction === LEFT) {< 10000) { "resetPosition" : resetPosition
529 <= -10 && direction === LEFT) {< 10000) { };
530 <= -10 && direction === LEFT) {< 10000) { };
531  
532 <= -10 && direction === LEFT) {< 10000) { Pacman.Map = function (size) {
533  
534 <= -10 && direction === LEFT) {< 10000) { var height = null,
535 <= -10 && direction === LEFT) {< 10000) { width = null,
536 <= -10 && direction === LEFT) {< 10000) { blockSize = size,
537 <= -10 && direction === LEFT) {< 10000) { pillSize = 0,
538 <= -10 && direction === LEFT) {< 10000) { map = null;
539  
540 <= -10 && direction === LEFT) {< 10000) { function withinBounds(y, x) {
541 <= -10 && direction === LEFT) {< 10000) { return y >= 0 && y < height && x >= 0 && x < width;
542 <= -10 && direction === LEFT) {< 10000) { }
543  
544 <= -10 && direction === LEFT) {< 10000) { function isWall(pos) {
545 <= -10 && direction === LEFT) {< 10000) { return withinBounds(pos.y, pos.x) && map[pos.y][pos.x] === Pacman.WALL;
546 <= -10 && direction === LEFT) {< 10000) { }
547  
548 <= -10 && direction === LEFT) {< 10000) { function isFloorSpace(pos) {
549 <= -10 && direction === LEFT) {< 10000) { if (!withinBounds(pos.y, pos.x)) {
550 <= -10 && direction === LEFT) {< 10000) { return false;
551 <= -10 && direction === LEFT) {< 10000) { }
552 <= -10 && direction === LEFT) {< 10000) { var peice = map[pos.y][pos.x];
553 <= -10 && direction === LEFT) {< 10000) { return peice === Pacman.EMPTY ||
554 <= -10 && direction === LEFT) {< 10000) { peice === Pacman.BISCUIT ||
555 <= -10 && direction === LEFT) {< 10000) { peice === Pacman.PILL;
556 <= -10 && direction === LEFT) {< 10000) { }
557  
558 <= -10 && direction === LEFT) {< 10000) { function drawWall(ctx) {
559  
560 <= -10 && direction === LEFT) {< 10000) { var i, j, p, line;
561  
562 <= -10 && direction === LEFT) {< 10000) { ctx.strokeStyle = "#0000FF";
563 <= -10 && direction === LEFT) {< 10000) { ctx.lineWidth = 5;
564 <= -10 && direction === LEFT) {< 10000) { ctx.lineCap = "round";
565  
566 <= -10 && direction === LEFT) {< 10000) { for (i = 0; i < Pacman.WALLS.length; i += 1) {
567 <= -10 && direction === LEFT) {< 10000) { line = Pacman.WALLS[i];
568 <= -10 && direction === LEFT) {< 10000) { ctx.beginPath();
569  
570 <= -10 && direction === LEFT) {< 10000) { for (j = 0; j < line.length; j += 1) {
571  
572 <= -10 && direction === LEFT) {< 10000) { p = line[j];
573  
574 <= -10 && direction === LEFT) {< 10000) { if (p.move) {
575 <= -10 && direction === LEFT) {< 10000) { ctx.moveTo(p.move[0] * blockSize, p.move[1] * blockSize);
576 <= -10 && direction === LEFT) {< 10000) { } else if (p.line) {
577 <= -10 && direction === LEFT) {< 10000) { ctx.lineTo(p.line[0] * blockSize, p.line[1] * blockSize);
578 <= -10 && direction === LEFT) {< 10000) { } else if (p.curve) {
579 <= -10 && direction === LEFT) {< 10000) { ctx.quadraticCurveTo(p.curve[0] * blockSize,
580 <= -10 && direction === LEFT) {< 10000) { p.curve[1] * blockSize,
581 <= -10 && direction === LEFT) {< 10000) { p.curve[2] * blockSize,
582 <= -10 && direction === LEFT) {< 10000) { p.curve[3] * blockSize);
583 <= -10 && direction === LEFT) {< 10000) { }
584 <= -10 && direction === LEFT) {< 10000) { }
585 <= -10 && direction === LEFT) {< 10000) { ctx.stroke();
586 <= -10 && direction === LEFT) {< 10000) { }
587 <= -10 && direction === LEFT) {< 10000) { }
588  
589 <= -10 && direction === LEFT) {< 10000) { function reset() {
590 <= -10 && direction === LEFT) {< 10000) { map = Pacman.MAP.clone();
591 <= -10 && direction === LEFT) {< 10000) { height = map.length;
592 <= -10 && direction === LEFT) {< 10000) { width = map[0].length;
593 <= -10 && direction === LEFT) {< 10000) { };
594  
595 <= -10 && direction === LEFT) {< 10000) { function block(pos) {
596 <= -10 && direction === LEFT) {< 10000) { return map[pos.y][pos.x];
597 <= -10 && direction === LEFT) {< 10000) { };
598  
599 <= -10 && direction === LEFT) {< 10000) { function setBlock(pos, type) {
600 <= -10 && direction === LEFT) {< 10000) { map[pos.y][pos.x] = type;
601 <= -10 && direction === LEFT) {< 10000) { };
602  
603 <= -10 && direction === LEFT) {< 10000) { function drawPills(ctx) {
604  
605 <= -10 && direction === LEFT) {< 10000) { if (++pillSize > 30) {
606 <= -10 && direction === LEFT) {< 10000) { pillSize = 0;
607 <= -10 && direction === LEFT) {< 10000) { }
608  
609 <= -10 && direction === LEFT) {< 10000) { for (i = 0; i < height; i += 1) {
610 <= -10 && direction === LEFT) {< 10000) { for (j = 0; j < width; j += 1) {
611 <= -10 && direction === LEFT) {< 10000) { if (map[i][j] === Pacman.PILL) {
612 <= -10 && direction === LEFT) {< 10000) { ctx.beginPath();
613  
614 <= -10 && direction === LEFT) {< 10000) { ctx.fillStyle = "#000";
615 <= -10 && direction === LEFT) {< 10000) { ctx.fillRect((j * blockSize), (i * blockSize),
616 <= -10 && direction === LEFT) {< 10000) { blockSize, blockSize);
617  
618 <= -10 && direction === LEFT) {< 10000) { ctx.fillStyle = "#FFF";
619 <= -10 && direction === LEFT) {< 10000) { ctx.arc((j * blockSize) + blockSize / 2,
620 <= -10 && direction === LEFT) {< 10000) { (i * blockSize) + blockSize / 2,
621 <= -10 && direction === LEFT) {< 10000) { Math.abs(5 - (pillSize/3)),
622 <= -10 && direction === LEFT) {< 10000) { 0,
623 <= -10 && direction === LEFT) {< 10000) { Math.PI * 2, false);
624 <= -10 && direction === LEFT) {< 10000) { ctx.fill();
625 <= -10 && direction === LEFT) {< 10000) { ctx.closePath();
626 <= -10 && direction === LEFT) {< 10000) { }
627 <= -10 && direction === LEFT) {< 10000) { }
628 <= -10 && direction === LEFT) {< 10000) { }
629 <= -10 && direction === LEFT) {< 10000) { };
630  
631 <= -10 && direction === LEFT) {< 10000) { function draw(ctx) {
632  
633 <= -10 && direction === LEFT) {< 10000) { var i, j, size = blockSize;
634  
635 <= -10 && direction === LEFT) {< 10000) { ctx.fillStyle = "#000";
636 <= -10 && direction === LEFT) {< 10000) { ctx.fillRect(0, 0, width * size, height * size);
637  
638 <= -10 && direction === LEFT) {< 10000) { drawWall(ctx);
639  
640 <= -10 && direction === LEFT) {< 10000) { for (i = 0; i < height; i += 1) {
641 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) { for (j = 0; j < width; j += 1) {
642 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { drawBlock(i, j, ctx);
643 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { }
644 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { }
645 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { };
646  
647 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { function drawBlock(y, x, ctx) {
648  
649 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { var layout = map[y][x];
650  
651 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { if (layout === Pacman.PILL) {
652 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { return;
653 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { }
654  
655 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { ctx.beginPath();
656  
657 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { if (layout === Pacman.EMPTY || layout === Pacman.BLOCK ||
658 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { layout === Pacman.BISCUIT) {
659  
660 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { ctx.fillStyle = "#000";
661 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { ctx.fillRect((x * blockSize), (y * blockSize),
662 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { blockSize, blockSize);
663  
664 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { if (layout === Pacman.BISCUIT) {
665 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { ctx.fillStyle = "#FFF";
666 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { ctx.fillRect((x * blockSize) + (blockSize / 2.5),
667 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { (y * blockSize) + (blockSize / 2.5),
668 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { blockSize / 6, blockSize / 6);
669 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { }
670 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { }
671 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { ctx.closePath();
672 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { };
673  
674 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { reset();
675  
676 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { return {
677 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "draw" : draw,
678 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "drawBlock" : drawBlock,
679 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "drawPills" : drawPills,
680 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "block" : block,
681 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "setBlock" : setBlock,
682 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "reset" : reset,
683 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "isWallSpace" : isWall,
684 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "isFloorSpace" : isFloorSpace,
685 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "height" : height,
686 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "width" : width,
687 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { "blockSize" : blockSize
688 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { };
689 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {};
690  
691 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {Pacman.Audio = function(game) {
692  
693 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { var files = [],
694 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { endEvents = [],
695 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { progressEvents = [],
696 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { playing = [];
697  
698 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { function load(name, path, cb) {
699  
700 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { var f = files[name] = document.createElement("audio");
701  
702 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { progressEvents[name] = function(event) { progress(event, name, cb); };
703  
704 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { f.addEventListener("canplaythrough", progressEvents[name], true);
705 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { f.setAttribute("preload", "true");
706 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { f.setAttribute("autobuffer", "true");
707 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { f.setAttribute("src", path);
708 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { f.pause();
709 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { };
710  
711 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { function progress(event, name, callback) {
712 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { if (event.loaded === event.total && typeof callback === "function") {
713 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { callback();
714 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { files[name].removeEventListener("canplaythrough",
715 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { progressEvents[name], true);
716 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { }
717 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { };
718  
719 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { function disableSound() {
720 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) { for (var i = 0; i < playing.length; i++) {
721 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { files[playing[i]].pause();
722 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { files[playing[i]].currentTime = 0;
723 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { }
724 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { playing = [];
725 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { };
726  
727 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { function ended(name) {
728  
729 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { var i, tmp = [], found = false;
730  
731 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { files[name].removeEventListener("ended", endEvents[name], true);
732  
733 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) { for (i = 0; i < playing.length; i++) {
734 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { if (!found && playing[i]) {
735 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { found = true;
736 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { } else {
737 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { tmp.push(playing[i]);
738 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { }
739 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { }
740 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { playing = tmp;
741 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { };
742  
743 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { function play(name) {
744 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { if (!game.soundDisabled()) {
745 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { endEvents[name] = function() { ended(name); };
746 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { playing.push(name);
747 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { files[name].addEventListener("ended", endEvents[name], true);
748 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { files[name].play();
749 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { }
750 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { };
751  
752 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { function pause() {
753 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) { for (var i = 0; i < playing.length; i++) {
754 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { files[playing[i]].pause();
755 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
756 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
757  
758 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function resume() {
759 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { for (var i = 0; i < playing.length; i++) {
760 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { files[playing[i]].play();
761 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
762 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
763  
764 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { return {
765 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { "disableSound" : disableSound,
766 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { "load" : load,
767 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { "play" : play,
768 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { "pause" : pause,
769 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { "resume" : resume
770 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
771 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {};
772  
773 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {var PACMAN = (function () {
774  
775 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { var state = WAITING,
776 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { audio = null,
777 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ghosts = [],
778 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ghostSpecs = ["#00FFDE", "#FF0000", "#FFB8DE", "#FFB847"],
779 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { eatenCount = 0,
780 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { level = 0,
781 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { tick = 0,
782 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ghostPos, userPos,
783 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { stateChanged = true,
784 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { timerStart = null,
785 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { lastTime = 0,
786 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx = null,
787 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { timer = null,
788 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map = null,
789 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { user = null,
790 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { stored = null;
791  
792 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function getTick() {
793 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { return tick;
794 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
795  
796 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function drawScore(text, position) {
797 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = "#FFFFFF";
798 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.font = "12px BDCartoonShoutRegular";
799 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillText(text,
800 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { (position["new"]["x"] / 10) * map.blockSize,
801 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ((position["new"]["y"] + 5) / 10) * map.blockSize);
802 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
803  
804 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function dialog(text) {
805 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = "#FFFF00";
806 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.font = "14px BDCartoonShoutRegular";
807 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { var width = ctx.measureText(text).width,
808 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { x = ((map.width * map.blockSize) - width) / 2;
809 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillText(text, x, (map.height * 10) + 8);
810 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
811  
812 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function soundDisabled() {
813 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { return localStorage["soundDisabled"] === "true";
814 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
815  
816 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function startLevel() {
817 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { user.resetPosition();
818 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { for (var i = 0; i < ghosts.length; i += 1) {
819 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ghosts[i].reset();
820 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
821 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { audio.play("start");
822 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { timerStart = tick;
823 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { setState(COUNTDOWN);
824 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
825  
826 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function startNewGame() {
827 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { setState(WAITING);
828 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { level = 1;
829 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { user.reset();
830 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.reset();
831 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.draw(ctx);
832 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { startLevel();
833 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
834  
835 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function keyDown(e) {
836 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { if (e.keyCode === KEY.N) {
837 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { startNewGame();
838 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { } else if (e.keyCode === KEY.S) {
839 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { audio.disableSound();
840 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { localStorage["soundDisabled"] = !soundDisabled();
841 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { } else if (e.keyCode === KEY.P && state === PAUSE) {
842 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { audio.resume();
843 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.draw(ctx);
844 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { setState(stored);
845 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { } else if (e.keyCode === KEY.P) {
846 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { stored = state;
847 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { setState(PAUSE);
848 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { audio.pause();
849 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.draw(ctx);
850 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { dialog("Paused");
851 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { } else if (state !== PAUSE) {
852 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { return user.keyDown(e);
853 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
854 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { return true;
855 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
856  
857 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function loseLife() {
858 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { setState(WAITING);
859 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { user.loseLife();
860 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { if (user.getLives() > 0) {
861 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { startLevel();
862 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
863 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
864  
865 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function setState(nState) {
866 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { state = nState;
867 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { stateChanged = true;
868 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
869  
870 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function collided(user, ghost) {
871 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { return (Math.sqrt(Math.pow(ghost.x - user.x, 2) +
872 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { Math.pow(ghost.y - user.y, 2))) < 10;
873 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { };
874  
875 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function drawFooter() {
876  
877 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { var topLeft = (map.height * map.blockSize),
878 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { textBase = topLeft + 17;
879  
880 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = "#000000";
881 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillRect(0, topLeft, (map.width * map.blockSize), 30);
882  
883 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = "#FFFF00";
884  
885 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { for (var i = 0, len = user.getLives(); i < len; i++) {
886 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = "#FFFF00";
887 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.beginPath();
888 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.moveTo(150 + (25 * i) + map.blockSize / 2,
889 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { (topLeft+1) + map.blockSize / 2);
890  
891 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.arc(150 + (25 * i) + map.blockSize / 2,
892 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { (topLeft+1) + map.blockSize / 2,
893 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.blockSize / 2, Math.PI * 0.25, Math.PI * 1.75, false);
894 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fill();
895 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
896  
897 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = !soundDisabled() ? "#00FF00" : "#FF0000";
898 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.font = "bold 16px sans-serif";
899 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { //ctx.fillText("♪", 10, textBase);
900 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillText("s", 10, textBase);
901  
902 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillStyle = "#FFFF00";
903 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.font = "14px BDCartoonShoutRegular";
904 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillText("Score: " + user.theScore(), 30, textBase);
905 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ctx.fillText("Level: " + level, 260, textBase);
906 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
907  
908 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function redrawBlock(pos) {
909 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.drawBlock(Math.floor(pos.y/10), Math.floor(pos.x/10), ctx);
910 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { map.drawBlock(Math.ceil(pos.y/10), Math.ceil(pos.x/10), ctx);
911 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { }
912  
913 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { function mainDraw() {
914  
915 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { var diff, u, i, len, nScore;
916  
917 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { ghostPos = [];
918  
919 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) { for (i = 0, len = ghosts.length; i < len; i += 1) {
920 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) { ghostPos.push(ghosts[i].move(ctx));
921 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) { }
922 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) { u = user.move(ctx);
923  
924 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) { for (i = 0, len = ghosts.length; i < len; i += 1) {
925 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) { redrawBlock(ghostPos[i].old);
926 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) { }
927 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) { redrawBlock(u.old);
928  
929 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) { for (i = 0, len = ghosts.length; i < len; i += 1) {
930 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ghosts[i].draw(ctx);
931 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
932 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) { user.draw(ctx);
933  
934 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) { userPos = u["new"];
935  
936 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 0, len = ghosts.length; i < len; i += 1) {
937 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (collided(userPos, ghostPos[i]["new"])) {
938 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (ghosts[i].isVunerable()) {
939 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { audio.play("eatghost");
940 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ghosts[i].eat();
941 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { eatenCount += 1;
942 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { nScore = eatenCount * 50;
943 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { drawScore(nScore, ghostPos[i]);
944 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { user.addScore(nScore);
945 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { setState(EATEN_PAUSE);
946 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { timerStart = tick;
947 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else if (ghosts[i].isDangerous()) {
948 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { audio.play("die");
949 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { setState(DYING);
950 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { timerStart = tick;
951 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
952 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
953 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
954 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
955  
956 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function mainLoop() {
957  
958 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { var diff;
959  
960 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (state !== PAUSE) {
961 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ++tick;
962 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
963  
964 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.drawPills(ctx);
965  
966 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (state === PLAYING) {
967 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { mainDraw();
968 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else if (state === WAITING && stateChanged) {
969 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { stateChanged = false;
970 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.draw(ctx);
971 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { dialog("Press N to start a New game");
972 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else if (state === EATEN_PAUSE &&
973 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { (tick - timerStart) > (Pacman.FPS / 3)) {
974 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.draw(ctx);
975 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { setState(PLAYING);
976 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else if (state === DYING) {
977 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (tick - timerStart > (Pacman.FPS * 2)) {
978 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { loseLife();
979 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else {
980 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { redrawBlock(userPos);
981 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 0, len = ghosts.length; i < len; i += 1) {
982 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { redrawBlock(ghostPos[i].old);
983 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ghostPos.push(ghosts[i].draw(ctx));
984 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
985 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { user.drawDead(ctx, (tick - timerStart) / (Pacman.FPS * 2));
986 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
987 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else if (state === COUNTDOWN) {
988  
989 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { diff = 5 + Math.floor((timerStart - tick) / Pacman.FPS);
990  
991 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (diff === 0) {
992 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.draw(ctx);
993 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { setState(PLAYING);
994 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else {
995 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (diff !== lastTime) {
996 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { lastTime = diff;
997 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.draw(ctx);
998 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { dialog("Starting in: " + diff);
999 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1000 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1001 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1002  
1003 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { drawFooter();
1004 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1005  
1006 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function eatenPill() {
1007 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { audio.play("eatpill");
1008 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { timerStart = tick;
1009 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { eatenCount = 0;
1010 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 0; i < ghosts.length; i += 1) {
1011 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ghosts[i].makeEatable(ctx);
1012 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1013 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1014  
1015 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function completedLevel() {
1016 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { setState(WAITING);
1017 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { level += 1;
1018 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.reset();
1019 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { user.newLevel();
1020 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { startLevel();
1021 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1022  
1023 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function keyPress(e) {
1024 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (state !== WAITING && state !== PAUSE) {
1025 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { e.preventDefault();
1026 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { e.stopPropagation();
1027 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1028 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1029  
1030 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function init(wrapper, root) {
1031  
1032 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { var i, len, ghost,
1033 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { blockSize = wrapper.offsetWidth / 19,
1034 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { canvas = document.createElement("canvas");
1035  
1036 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { canvas.setAttribute("width", (blockSize * 19) + "px");
1037 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { canvas.setAttribute("height", (blockSize * 22) + 30 + "px");
1038  
1039 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { wrapper.appendChild(canvas);
1040  
1041 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ctx = canvas.getContext('2d');
1042  
1043 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { audio = new Pacman.Audio({"soundDisabled":soundDisabled});
1044 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map = new Pacman.Map(blockSize);
1045 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { user = new Pacman.User({
1046 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { "completedLevel" : completedLevel,
1047 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { "eatenPill" : eatenPill
1048 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }, map);
1049  
1050 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 0, len = ghostSpecs.length; i < len; i += 1) {
1051 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ghost = new Pacman.Ghost({"getTick":getTick}, map, ghostSpecs[i]);
1052 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ghosts.push(ghost);
1053 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1054  
1055 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { map.draw(ctx);
1056 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { dialog("Loading ...");
1057  
1058 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { var extension = Modernizr.audio.ogg ? 'ogg' : 'mp3';
1059  
1060 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { var audio_files = [
1061 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ["start", root + "audio/opening_song." + extension],
1062 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ["die", root + "audio/die." + extension],
1063 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ["eatghost", root + "audio/eatghost." + extension],
1064 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ["eatpill", root + "audio/eatpill." + extension],
1065 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ["eating", root + "audio/eating.short." + extension],
1066 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ["eating2", root + "audio/eating.short." + extension]
1067 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { ];
1068  
1069 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { load(audio_files, function() { loaded(); });
1070 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1071  
1072 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function load(arr, callback) {
1073  
1074 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (arr.length === 0) {
1075 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { callback();
1076 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else {
1077 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { var x = arr.pop();
1078 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { audio.load(x[0], x[1], function() { load(arr, callback); });
1079 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1080 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1081  
1082 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { function loaded() {
1083  
1084 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { dialog("Press N to Start");
1085  
1086 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { document.addEventListener("keydown", keyDown, true);
1087 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { document.addEventListener("keypress", keyPress, true);
1088  
1089 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { timer = window.setInterval(mainLoop, 1000 / Pacman.FPS);
1090 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1091  
1092 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { return {
1093 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { "init" : init
1094 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { };
1095  
1096 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {}());
1097  
1098 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {/* Human readable keyCode index */
1099 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {var KEY = {'BACKSPACE': 8, 'TAB': 9, 'NUM_PAD_CLEAR': 12, 'ENTER': 13, 'SHIFT': 16, 'CTRL': 17, 'ALT': 18, 'PAUSE': 19, 'CAPS_LOCK': 20, 'ESCAPE': 27, 'SPACEBAR': 32, 'PAGE_UP': 33, 'PAGE_DOWN': 34, 'END': 35, 'HOME': 36, 'ARROW_LEFT': 37, 'ARROW_UP': 38, 'ARROW_RIGHT': 39, 'ARROW_DOWN': 40, 'PRINT_SCREEN': 44, 'INSERT': 45, 'DELETE': 46, 'SEMICOLON': 59, 'WINDOWS_LEFT': 91, 'WINDOWS_RIGHT': 92, 'SELECT': 93, 'NUM_PAD_ASTERISK': 106, 'NUM_PAD_PLUS_SIGN': 107, 'NUM_PAD_HYPHEN-MINUS': 109, 'NUM_PAD_FULL_STOP': 110, 'NUM_PAD_SOLIDUS': 111, 'NUM_LOCK': 144, 'SCROLL_LOCK': 145, 'SEMICOLON': 186, 'EQUALS_SIGN': 187, 'COMMA': 188, 'HYPHEN-MINUS': 189, 'FULL_STOP': 190, 'SOLIDUS': 191, 'GRAVE_ACCENT': 192, 'LEFT_SQUARE_BRACKET': 219, 'REVERSE_SOLIDUS': 220, 'RIGHT_SQUARE_BRACKET': 221, 'APOSTROPHE': 222};
1100  
1101 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {(function () {
1102 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { /* 0 - 9 */
1103 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (var i = 48; i <= 57; i++) {
1104 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { KEY['' + (i - 48)] = i;
1105 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1106 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { /* A - Z */
1107 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 65; i <= 90; i++) {
1108 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { KEY['' + String.fromCharCode(i)] = i;
1109 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1110 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { /* NUM_PAD_0 - NUM_PAD_9 */
1111 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 96; i <= 105; i++) {
1112 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { KEY['NUM_PAD_' + (i - 96)] = i;
1113 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1114 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { /* F1 - F12 */
1115 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i = 112; i <= 123; i++) {
1116 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { KEY['F' + (i - 112 + 1)] = i;
1117 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1118 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {})();
1119  
1120 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.WALL = 0;
1121 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.BISCUIT = 1;
1122 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.EMPTY = 2;
1123 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.BLOCK = 3;
1124 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.PILL = 4;
1125  
1126 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.MAP = [
1127 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
1128 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0],
1129 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 4, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 4, 0],
1130 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0],
1131 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
1132 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0],
1133 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0],
1134 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0],
1135 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [2, 2, 2, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 2, 2, 2],
1136 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 0, 0, 1, 0, 1, 0, 0, 3, 0, 0, 1, 0, 1, 0, 0, 0, 0],
1137 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [2, 2, 2, 2, 1, 1, 1, 0, 3, 3, 3, 0, 1, 1, 1, 2, 2, 2, 2],
1138 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0],
1139 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [2, 2, 2, 0, 1, 0, 1, 1, 1, 2, 1, 1, 1, 0, 1, 0, 2, 2, 2],
1140 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0],
1141 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0],
1142 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0],
1143 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 4, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 4, 0],
1144 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0],
1145 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0],
1146 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0],
1147 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
1148 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
1149 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {];
1150  
1151 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Pacman.WALLS = [
1152  
1153 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [0, 9.5]}, {"line": [3, 9.5]},
1154 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [3.5, 9.5, 3.5, 9]}, {"line": [3.5, 8]},
1155 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [3.5, 7.5, 3, 7.5]}, {"line": [1, 7.5]},
1156 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [0.5, 7.5, 0.5, 7]}, {"line": [0.5, 1]},
1157 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [0.5, 0.5, 1, 0.5]}, {"line": [9, 0.5]},
1158 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [9.5, 0.5, 9.5, 1]}, {"line": [9.5, 3.5]}],
1159  
1160 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [9.5, 1]},
1161 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [9.5, 0.5, 10, 0.5]}, {"line": [18, 0.5]},
1162 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [18.5, 0.5, 18.5, 1]}, {"line": [18.5, 7]},
1163 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [18.5, 7.5, 18, 7.5]}, {"line": [16, 7.5]},
1164 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [15.5, 7.5, 15.5, 8]}, {"line": [15.5, 9]},
1165 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [15.5, 9.5, 16, 9.5]}, {"line": [19, 9.5]}],
1166  
1167 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [2.5, 5.5]}, {"line": [3.5, 5.5]}],
1168  
1169 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [3, 2.5]},
1170 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [3.5, 2.5, 3.5, 3]},
1171 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [3.5, 3.5, 3, 3.5]},
1172 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [2.5, 3.5, 2.5, 3]},
1173 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [2.5, 2.5, 3, 2.5]}],
1174  
1175 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [15.5, 5.5]}, {"line": [16.5, 5.5]}],
1176  
1177 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [16, 2.5]}, {"curve": [16.5, 2.5, 16.5, 3]},
1178 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [16.5, 3.5, 16, 3.5]}, {"curve": [15.5, 3.5, 15.5, 3]},
1179 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [15.5, 2.5, 16, 2.5]}],
1180  
1181 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [6, 2.5]}, {"line": [7, 2.5]}, {"curve": [7.5, 2.5, 7.5, 3]},
1182 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [7.5, 3.5, 7, 3.5]}, {"line": [6, 3.5]},
1183 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [5.5, 3.5, 5.5, 3]}, {"curve": [5.5, 2.5, 6, 2.5]}],
1184  
1185 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [12, 2.5]}, {"line": [13, 2.5]}, {"curve": [13.5, 2.5, 13.5, 3]},
1186 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [13.5, 3.5, 13, 3.5]}, {"line": [12, 3.5]},
1187 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [11.5, 3.5, 11.5, 3]}, {"curve": [11.5, 2.5, 12, 2.5]}],
1188  
1189 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [7.5, 5.5]}, {"line": [9, 5.5]}, {"curve": [9.5, 5.5, 9.5, 6]},
1190 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [9.5, 7.5]}],
1191 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [9.5, 6]}, {"curve": [9.5, 5.5, 10.5, 5.5]},
1192 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [11.5, 5.5]}],
1193  
1194  
1195 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [5.5, 5.5]}, {"line": [5.5, 7]}, {"curve": [5.5, 7.5, 6, 7.5]},
1196 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [7.5, 7.5]}],
1197 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [6, 7.5]}, {"curve": [5.5, 7.5, 5.5, 8]}, {"line": [5.5, 9.5]}],
1198  
1199 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [13.5, 5.5]}, {"line": [13.5, 7]},
1200 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [13.5, 7.5, 13, 7.5]}, {"line": [11.5, 7.5]}],
1201 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [13, 7.5]}, {"curve": [13.5, 7.5, 13.5, 8]},
1202 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [13.5, 9.5]}],
1203  
1204 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [0, 11.5]}, {"line": [3, 11.5]}, {"curve": [3.5, 11.5, 3.5, 12]},
1205 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [3.5, 13]}, {"curve": [3.5, 13.5, 3, 13.5]}, {"line": [1, 13.5]},
1206 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [0.5, 13.5, 0.5, 14]}, {"line": [0.5, 17]},
1207 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [0.5, 17.5, 1, 17.5]}, {"line": [1.5, 17.5]}],
1208 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [1, 17.5]}, {"curve": [0.5, 17.5, 0.5, 18]}, {"line": [0.5, 21]},
1209 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [0.5, 21.5, 1, 21.5]}, {"line": [18, 21.5]},
1210 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [18.5, 21.5, 18.5, 21]}, {"line": [18.5, 18]},
1211 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [18.5, 17.5, 18, 17.5]}, {"line": [17.5, 17.5]}],
1212 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [18, 17.5]}, {"curve": [18.5, 17.5, 18.5, 17]},
1213 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [18.5, 14]}, {"curve": [18.5, 13.5, 18, 13.5]},
1214 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [16, 13.5]}, {"curve": [15.5, 13.5, 15.5, 13]},
1215 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [15.5, 12]}, {"curve": [15.5, 11.5, 16, 11.5]},
1216 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [19, 11.5]}],
1217  
1218 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [5.5, 11.5]}, {"line": [5.5, 13.5]}],
1219 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [13.5, 11.5]}, {"line": [13.5, 13.5]}],
1220  
1221 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [2.5, 15.5]}, {"line": [3, 15.5]},
1222 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [3.5, 15.5, 3.5, 16]}, {"line": [3.5, 17.5]}],
1223 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [16.5, 15.5]}, {"line": [16, 15.5]},
1224 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [15.5, 15.5, 15.5, 16]}, {"line": [15.5, 17.5]}],
1225  
1226 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [5.5, 15.5]}, {"line": [7.5, 15.5]}],
1227 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [11.5, 15.5]}, {"line": [13.5, 15.5]}],
1228  
1229 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [2.5, 19.5]}, {"line": [5, 19.5]},
1230 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [5.5, 19.5, 5.5, 19]}, {"line": [5.5, 17.5]}],
1231 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [5.5, 19]}, {"curve": [5.5, 19.5, 6, 19.5]},
1232 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [7.5, 19.5]}],
1233  
1234 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [11.5, 19.5]}, {"line": [13, 19.5]},
1235 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [13.5, 19.5, 13.5, 19]}, {"line": [13.5, 17.5]}],
1236 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [13.5, 19]}, {"curve": [13.5, 19.5, 14, 19.5]},
1237 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [16.5, 19.5]}],
1238  
1239 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [7.5, 13.5]}, {"line": [9, 13.5]},
1240 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [9.5, 13.5, 9.5, 14]}, {"line": [9.5, 15.5]}],
1241 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [9.5, 14]}, {"curve": [9.5, 13.5, 10, 13.5]},
1242 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [11.5, 13.5]}],
1243  
1244 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [7.5, 17.5]}, {"line": [9, 17.5]},
1245 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"curve": [9.5, 17.5, 9.5, 18]}, {"line": [9.5, 19.5]}],
1246 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [9.5, 18]}, {"curve": [9.5, 17.5, 10, 17.5]},
1247 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [11.5, 17.5]}],
1248  
1249 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { [{"move": [8.5, 9.5]}, {"line": [8, 9.5]}, {"curve": [7.5, 9.5, 7.5, 10]},
1250 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [7.5, 11]}, {"curve": [7.5, 11.5, 8, 11.5]},
1251 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [11, 11.5]}, {"curve": [11.5, 11.5, 11.5, 11]},
1252 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [11.5, 10]}, {"curve": [11.5, 9.5, 11, 9.5]},
1253 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { {"line": [10.5, 9.5]}]
1254 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {];
1255  
1256 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {Object.prototype.clone = function () {
1257 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { var i, newObj = (this instanceof Array) ? [] : {};
1258 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { for (i in this) {
1259 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (i === 'clone') {
1260 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { continue;
1261 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1262 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { if (this[i] && typeof this[i] === "object") {
1263 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { newObj[i] = this[i].clone();
1264 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { } else {
1265 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { newObj[i] = this[i];
1266 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1267 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { }
1268 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) { return newObj;
1269 <= -10 && direction === LEFT) {< 10000) { < height; i += 1) {< width; j += 1) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< playing.length; i++) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {< len; i += 1) {};