-
Notifications
You must be signed in to change notification settings - Fork 1
/
bundle.js.map
1 lines (1 loc) · 29.9 KB
/
bundle.js.map
1
{"version":3,"sources":["webpack:///webpack/bootstrap ab1d8a985cb20e6090b4","webpack:///./lib/spin_motion.js","webpack:///./lib/countdown_clock.js","webpack:///./lib/starting_the_game.js","webpack:///./lib/levels/game.js","webpack:///./lib/levelArray.js","webpack:///./lib/reset_game.js","webpack:///./lib/opening_spin.js","webpack:///./lib/gamedrawing.js","webpack:///./lib/collision.js","webpack:///./lib/levels/level1.js","webpack:///./lib/levels/level2.js","webpack:///./lib/levels/level3.js","webpack:///./lib/levels/level5.js","webpack:///./lib/mover.js","webpack:///./lib/mover_movement.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;AC7DA;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mCAAmC,QAAQ;AAC3C;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AAAA;AAAA;;;;;;;;;;;;AC7BmB;AACC;AACE;;AAEtB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,oBAAoB;;AAE7C,OAAO;AACP;AACA;;AAEA;;AAEA;;;;;;;;;;;;AChDuB;AACN;AACjB;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;;AAEA;AACA;;AAEA;;;AAGA,iDAAiD,WAAW;;;;;;;;;;;;;;AClC5D;AACA;AAC+B;AACoB;AACZ;AAClB;AACrB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,qBAAqB,iBAAiB;AACtC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;;;;ACnFgB;AACA;AACA;AACA;;;;AAIhB;AAAA;AAAA;;;;;;;;;;;ACPoB;AACD;AACA;;;;AAInB;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA,0GAAmD,WAAW;AAC9D;AAAA;AAAA;;;;;;;;;;ACvBA;AACA;;AAEA;AACA;AACA;AACA,qCAAqC,QAAQ;AAC7C;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AAAA;AAAA;;;;;;;;;;;AC1B6B;AACR;AACD;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,oBAAoB,sBAAsB;AAC1C,sBAAsB,yBAAyB;AAC/C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAW;AACX;AACA;;;AAGA,WAAW;AACX;AACA;AACA,WAAW;AACX;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAiB;;AAEjB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;;;ACxFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA","file":"bundle.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap ab1d8a985cb20e6090b4"," export let stopSpin;\n export let rotator;\n export let rotatie;\n\nfunction rotate(angle, counter, degrees, el){\n degrees += angle;\n rotator = setTimeout(() => {\n counter++ ;\n el.style.transform = `rotate(${degrees}deg)`;\n if(counter < 90) {\n rotatie = setTimeout(() => {\n rotate(angle, counter, degrees, el);\n }, 5);\n }\n }, 5);\n}\n\nfunction randTime() {\n return Math.round(Math.random() * (5000 - 4500) + (4500));\n}\n\nexport const keepSpinning = (array, degrees, el) => {\n stopSpin = setTimeout(()=> {\n let counter = 0;\n let angle = array[Math.round(Math.random() * 3)];\n rotate(angle, counter, degrees, el);\n degrees += (angle * 90);\n keepSpinning(array, degrees, el);\n }, randTime());\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/spin_motion.js\n// module id = 0\n// module chunks = 0","import { stopSpin } from './spin_motion.js';\nimport { resetGame } from './reset_game.js';\nimport { cancelFrame } from './levels/game.js';\n\nexport let clearTime;\n\nclass CountDown {\n constructor() {\n this.duration;\n this.color = \"white\";\n this.lose = false;\n this.clearTime;\n }\n\n stop_tick() {\n clearTimeout(this.clearTime);\n }\n\n tick(duration) {\n if(duration < 0) {\n document.getElementById('timer').innerHTML = \"Times up!\";\n clearTimeout(this.clearTime);\n clearTimeout(stopSpin);\n cancelAnimationFrame(cancelFrame);\n this.lose = true;\n resetGame(this.lose);\n } else {\n let minutes = Math.floor(duration / 60);\n let seconds = duration % 60;\n this.clearTime = setTimeout( () => {\n minutes = minutes < 10 ? \"0\" + minutes : minutes;\n if(seconds <= 10){\n this.color = \"red\";\n } else {\n this.color = \"white\";\n }\n seconds = seconds < 10 ? \"0\" + seconds : seconds;\n duration--;\n this.tick(duration);\n document.getElementById('timer').innerHTML = minutes + \":\" + seconds;\n $(\"#timer\").css({\"color\": this.color});\n\n }, 1000);\n }\n }\n\n}\n\nexport default CountDown;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/countdown_clock.js\n// module id = 1\n// module chunks = 0","import { keepSpinning } from './spin_motion.js';\nimport { opener } from './opening_spin.js';\nimport Game from './levels/game.js';\n\nwindow.levelNumber = 0;\nwindow.newGame = false ;\n\nexport const spaceBar = (e) => {\n if(e.keyCode === 32) {\n levelNumber = 0;\n $(\"#gameOverScreen\").hide();\n $(\"#you-win-screen\").hide();\n\n if(newGame) {\n newGame.stopGame();\n }\n\n newGame = new Game();\n newGame.play();\n\n let item = document.getElementById(\"game\");\n item.style.transform = `rotate(0deg)`;\n keepSpinning([-2, -1, 1, 2], 0, item);\n $(\"#opening-screen\").hide();\n $(\"#game\").show();\n }\n};\n\n$(\"#gameOverScreen\").hide();\n$(\"#you-win-screen\").hide();\n\nopener([1,-1], 0, \"spinner-text\");\n\n\ndocument.addEventListener(\"keypress\", spaceBar, {once: true});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/starting_the_game.js\n// module id = 2\n// module chunks = 0","import GameDrawing from '../gamedrawing.js';\nimport Mover from '../mover.js';\nimport { countDown, clearTime } from '../countdown_clock.js';\nimport { keepSpinning, stopSpin, rotator, rotatie } from '../spin_motion.js';\nimport { keydownListner, keyupListner } from '../mover_movement.js';\nimport { levelArray } from '../levelArray.js';\nimport CountDown from '../countdown_clock.js';\n\nclass Game {\n constructor() {\n this.cancelFrame;\n this.game = document.getElementById(\"game\");\n this.ctx = this.game.getContext(\"2d\");\n this.mover = new Mover(82, 337, this.ctx);\n this.gameOver = false;\n this.gameDrawing = new GameDrawing(this.ctx, this.mover);\n this.step = this.step.bind(this);\n this.currentLevel = 0;\n this.clock = new CountDown();\n }\n\n step() {\n this.ctx.clearRect(0,0, 700, 700);\n this.gameDrawing.draw_reset();\n this.mover.start();\n this.cancelFrame = requestAnimationFrame(this.step);\n if (this.currentLevel !== levelNumber) {\n this.currentLevel ++ ;\n this.nextLevel();\n }\n }\n\n startClock() {\n this.clock.tick(levelArray[levelNumber][1]);\n }\n\n stopClock() {\n this.clock.stop_tick();\n }\n\n clockReset() {\n this.stopClock();\n document.getElementById('timer').innerHTML = \"Ready!\";\n $(\"#timer\").css({\"color\": \"white\"});\n this.startClock();\n }\n\n stopGame() {\n cancelAnimationFrame(this.cancelFrame);\n }\n\n newPieces() {\n this.mover = new Mover(82, 337, this.ctx);\n this.gameDrawing = new GameDrawing(this.ctx, this.mover, this.duration);\n }\n\n startSpin() {\n this.game.style.transform = `rotate(0deg)`;\n keepSpinning([-2, -1, 1, 2], 0, this.game);\n }\n\n nextLevel() {\n clearTimeout(stopSpin);\n clearTimeout(rotator);\n clearTimeout(rotatie);\n this.newPieces();\n this.startSpin();\n this.clockReset();\n this.move();\n }\n\n move() {\n $(document).on(\"keydown\", keydownListner(this.mover));\n $(document).on(\"keyup\", keyupListner(this.mover));\n }\n\n play() {\n this.clockReset();\n this.step();\n this.move();\n }\n}\n\nexport default Game;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/levels/game.js\n// module id = 3\n// module chunks = 0","import { maze1 } from './levels/level1.js';\nimport { maze2 } from './levels/level2.js';\nimport { maze3 } from './levels/level3.js';\nimport { maze5 } from './levels/level5.js';\n\n\n\nexport const levelArray = [[maze1, 30], [maze2, 30], [maze3,40], [maze5, 40] ];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/levelArray.js\n// module id = 4\n// module chunks = 0","import { clearTime } from './countdown_clock.js';\nimport { stopSpin } from './spin_motion.js';\nimport { spaceBar } from './starting_the_game.js';\n\n\n\nexport const resetGame = (status) => {\n if(!status) {\n $(\"#you-win-screen\").show();\n } else {\n $(\"#gameOverScreen\").show();\n }\n\n clearTimeout(clearTime);\n clearTimeout(stopSpin);\n let lastGame = newGame\n newGame = false;\n\n lastGame.stopClock();\n lastGame.stopGame();\n $(document).off(\"keydown\");\n $(document).off(\"keyup\");\n\n\n document.addEventListener(\"keypress\", spaceBar, {once: true});\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/reset_game.js\n// module id = 5\n// module chunks = 0","\n\nfunction rotation(angle, counter, degrees, el){\n degrees += angle;\n\n setTimeout(() => {\n counter++ ;\n let item = document.getElementById(el);\n item.style.transform = `rotate(${degrees}deg)`;\n if(counter < 7) {\n setTimeout(() => {\n rotation(angle, counter, degrees, el);\n }, 10);\n }\n }, 10);\n}\n\n\n export const opener = (array, degrees, el) => {\n setTimeout(()=> {\n let counter = 0;\n let angle = array[Math.round(Math.random() * 1)];\n rotation(angle, counter, degrees, el);\n degrees += angle ;\n opener(array, degrees, el);\n }, 2000);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/opening_spin.js\n// module id = 6\n// module chunks = 0","import { trueCollisionCheck } from './collision';\nimport { levelArray } from './levelArray.js';\nimport { resetGame } from './reset_game.js';\nclass GameDrawing {\n constructor(ctx, mover) {\n this.maze = levelArray[levelNumber][0];\n this.ctx = ctx;\n this.mover = mover;\n this.gameOver = false;\n this.nextMaze = levelNumber + 1;\n this.draw_reset = this.draw_reset.bind(this);\n }\n\n draw_reset() {\n this.ctx.fillStyle = \"white\";\n this.ctx.font = \"30px Arial\";\n this.ctx.fillText(\"N\",330,25);\n this.ctx.beginPath();\n this.ctx.arc(350, 350, 320, 0, Math.PI * 2, true);\n this.ctx.moveTo(110, 110);\n this.ctx.fillStyle = \"yellow\";\n this.ctx.stroke();\n this.ctx.fill();\n this.ctx.closePath();\n\n if(!this.gameOver) {\n\n for(let y = 0; y < this.maze.length; y++) {\n for(let x = 0; x < this.maze[y].length; x++) {\n let tile = this.maze[y][x];\n if(this.maze[y][x] === 1) {\n this.ctx.fillStyle = \"black\";\n this.ctx.fillRect(x * 25, y * 25, 25, 25);\n\n if(trueCollisionCheck(this.mover.run_x + 7, this.mover.run_y, y * 25, x * 25, 25) || trueCollisionCheck(this.mover.run_x - 7, this.mover.run_y, y * 25, x * 25, 25)) {\n this.mover.revertX();\n }\n if(trueCollisionCheck(this.mover.run_x + 7, this.mover.run_y - 0.5, y * 25, x * 25, 25) || trueCollisionCheck(this.mover.run_x - 7, this.mover.run_y - 3.5, y * 25, x * 25, 25)) {\n this.mover.revertX();\n }\n if(trueCollisionCheck(this.mover.run_x + 7, this.mover.run_y + 3.5, y * 25, x * 25, 25) || trueCollisionCheck(this.mover.run_x - 7, this.mover.run_y + 3.5, y * 25, x * 25, 25)) {\n this.mover.revertX();\n }\n if(trueCollisionCheck(this.mover.run_x, this.mover.run_y + 7, y * 25, x * 25, 25) || trueCollisionCheck(this.mover.run_x, this.mover.run_y - 7, y * 25, x * 25, 25)) {\n this.mover.revertY();\n }\n if(trueCollisionCheck(this.mover.run_x + 3.6, this.mover.run_y + 7, y * 25, x * 25, 25) || trueCollisionCheck(this.mover.run_x + 3.6, this.mover.run_y - 7, y * 25, x * 25, 25)) {\n this.mover.revertY();\n }\n if(trueCollisionCheck(this.mover.run_x - 3.6, this.mover.run_y + 7, y * 25, x * 25, 25) || trueCollisionCheck(this.mover.run_x - 3.6, this.mover.run_y - 7, y * 25, x * 25, 25)) {\n this.mover.revertY();\n }\n\n } else if(this.maze[y][x] === 2) {\n this.ctx.fillStyle = \"green\";\n this.ctx.fillRect(x * 25, y * 25, 25, 25);\n\n\n } else if(this.maze[y][x] === 3) {\n this.ctx.fillStyle = \"white\";\n this.ctx.fillRect(x * 25, y * 25, 25, 25);\n } else if(this.maze[y][x] === 4) {\n this.ctx.fillStyle = \"red\";\n this.ctx.fillRect(x * 25, y * 25, 25, 25);\n\n if(trueCollisionCheck(this.mover.run_x - 7, this.mover.run_y, y * 25, x * 25, 25)) {\n levelNumber++;\n this.gameOver = true ;\n\n if(levelNumber === levelArray.length) {\n setTimeout(() => {\n newGame.stopGame();\n newGame.stopClock();\n resetGame();\n }, 0);\n\n }\n\n }\n }\n }\n }\n\n }\n }\n}\n\nexport default GameDrawing;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/gamedrawing.js\n// module id = 7\n// module chunks = 0","\n\nconst verticalCollisionCheck = (mover_y, tile_y, tile_height) => {\n if(mover_y > tile_y && mover_y < tile_y + tile_height){\n return true;\n }\n if(mover_y > tile_y && mover_y < tile_y + tile_height){\n return true;\n }\n\n};\n\n\nconst horizontalCollisionCheck = (mover_x, tile_x, tile_width) => {\n if(mover_x > tile_x && mover_x < tile_x + tile_width) {\n return true;\n }\n if(mover_x > tile_x && mover_x < tile_x + tile_width) {\n return true;\n }\n};\n\nexport const trueCollisionCheck = (mover_x, mover_y, tile_y, tile_x, tile_width) => {\n if(horizontalCollisionCheck(mover_x, tile_x, tile_width) &&\n verticalCollisionCheck(mover_y, tile_y, tile_width)) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/collision.js\n// module id = 8\n// module chunks = 0","\n export const maze1 = [\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0],\n ];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/levels/level3.js\n// module id = 11\n// module chunks = 0","\n\n export const maze5 = [\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,1,1,1,1,1,3,3,3,3,1,1,1,1,1,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,1,3,3,3,1,3,1,1,3,1,3,3,3,1,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,1,3,1,3,1,3,1,3,3,1,3,1,3,1,0,0,0,0,0,0,0,0],\n [0,0,0,1,1,1,1,3,1,3,1,3,1,3,1,3,3,1,3,1,0,0,0,0,0,0,0,0],\n [0,0,0,1,3,3,3,3,1,3,1,3,1,3,1,3,1,1,3,1,1,1,1,1,0,0,0,0],\n [0,0,0,1,3,1,1,1,1,3,3,3,1,3,3,3,1,3,3,1,3,3,3,1,0,0,0,0],\n [0,0,0,1,3,3,3,3,1,1,1,1,1,1,1,1,1,3,1,3,3,1,3,1,0,0,0,0],\n [0,0,1,1,1,1,1,3,1,3,3,3,3,3,3,3,3,3,1,3,1,1,3,1,0,0,0,0],\n [0,0,1,2,2,3,1,3,1,3,1,1,1,1,1,1,1,1,1,3,3,1,3,1,0,0,0,0],\n [0,0,1,1,1,3,1,3,1,3,1,3,3,3,3,1,3,3,3,1,3,1,3,1,0,0,0,0],\n [0,0,0,0,1,3,1,3,1,3,3,3,1,1,3,1,3,1,3,1,3,1,3,1,0,0,0,0],\n [0,0,0,0,1,3,3,3,1,1,1,1,1,3,3,1,3,1,3,1,3,1,3,1,0,0,0,0],\n [0,0,0,0,1,1,1,1,1,3,3,3,3,3,1,1,3,1,3,1,3,1,3,1,0,0,0,0],\n [0,0,0,0,0,1,3,3,3,3,1,1,1,1,1,1,3,1,3,1,3,1,3,1,0,0,0,0],\n [0,0,0,0,0,1,3,1,1,1,1,1,3,3,3,1,3,1,3,1,3,1,4,1,0,0,0,0],\n [0,0,0,0,0,1,3,1,3,3,3,1,3,1,3,1,3,1,3,1,3,1,4,1,0,0,0,0],\n [0,0,0,0,0,1,3,3,3,1,3,1,3,1,3,1,3,1,3,1,3,1,1,1,0,0,0,0],\n [0,0,0,0,0,1,1,1,1,1,3,1,3,1,3,1,3,1,3,3,3,1,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,1,3,3,3,1,3,3,3,1,1,1,1,1,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n ];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/levels/level5.js\n// module id = 12\n// module chunks = 0","\n\nclass Mover {\n constructor(x, y, ctx) {\n this.run_x = x;\n this.run_y = y;\n this.last_x = x ;\n this.last_y = y ;\n this.ctx = ctx;\n\n this.right_side = this.run_x + 7;\n this.left_side = this.run_x - 7;\n this.top_side = this.run_y - 7;\n this.bottom_side = this.run_y + 7;\n\n this.movement = {\n left: false,\n right: false,\n up: false,\n down: false\n };\n }\n\n start() {\n this.ctx.fillStyle = \"blue\";\n this.ctx.beginPath();\n this.ctx.arc(this.run_x, this.run_y, 7, 0, Math.PI * 2, true);\n this.ctx.moveTo(110, 110);\n this.ctx.stroke();\n this.ctx.fill();\n this.updateMover();\n this.ctx.closePath();\n }\n\n revertAll() {\n this.run_y = this.last_y;\n this.run_x = this.last_x;\n this.ctx.fillStyle = \"blue\";\n this.ctx.beginPath();\n this.ctx.arc(this.run_x, this.run_y, 7, 0, Math.PI * 2, true);\n this.ctx.moveTo(110, 110);\n this.ctx.stroke();\n this.ctx.fill();\n this.ctx.closePath();\n }\n revertX() {\n this.run_x = this.last_x;\n this.ctx.fillStyle = \"blue\";\n this.ctx.beginPath();\n this.ctx.arc(this.run_x, this.run_y, 7, 0, Math.PI * 2, true);\n this.ctx.moveTo(110, 110);\n this.ctx.stroke();\n this.ctx.fill();\n this.ctx.closePath();\n }\n\n revertY() {\n this.run_y = this.last_y;\n this.ctx.fillStyle = \"blue\";\n this.ctx.beginPath();\n this.ctx.arc(this.run_x, this.run_y, 7, 0, Math.PI * 2, true);\n this.ctx.moveTo(110, 110);\n this.ctx.stroke();\n this.ctx.fill();\n this.ctx.closePath();\n }\n\n updateMover() {\n this.last_y = this.run_y;\n this.last_x = this.run_x;\n if(this.movement.up) {\n this.run_y -= 3;\n this.velocity_y = -3;\n }\n if(this.movement.down) {\n this.run_y += 3;\n this.velocity_y = 3;\n }\n if(this.movement.right) {\n this.run_x += 3;\n this.velocity_x = 3;\n }\n if(this.movement.left) {\n this.run_x -= 3;\n this.velocity_x = -3;\n }\n }\n\n }\n\nexport default Mover;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/mover.js\n// module id = 13\n// module chunks = 0","\n\nexport const keydownListner = (mover) => (e) => {\n switch (e.key) {\n case \"ArrowUp\":\n case \"w\":\n mover.movement.down = false;\n mover.movement.up = true;\n break;\n case \"ArrowDown\":\n case \"s\":\n mover.movement.up = false;\n mover.movement.down = true;\n break;\n case \"ArrowRight\":\n case \"d\":\n mover.movement.left = false;\n mover.movement.right = true;\n break;\n case \"ArrowLeft\":\n case \"a\":\n mover.movement.right = false;\n mover.movement.left = true;\n break;\n default:\n console.log(\"Please keep your eyes and attention on the game!\");\n console.log(\"https://github.com/coreyladovsky\");\n }\n\n};\n\n\nexport const keyupListner = (mover) => (e) => {\n switch (e.key) {\n case \"ArrowUp\":\n case \"w\":\n mover.movement.up = false;\n break;\n case \"ArrowDown\":\n case \"s\":\n mover.movement.down = false;\n break;\n case \"ArrowRight\":\n case \"d\":\n mover.movement.right = false;\n break;\n case \"ArrowLeft\":\n case \"a\":\n mover.movement.left = false;\n break;\n default:\n console.log(\"Please keep your eyes and attention on the game!\");\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./lib/mover_movement.js\n// module id = 14\n// module chunks = 0"],"sourceRoot":""}