forked from bra1n/cryptolights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
engine.js.map
13 lines (13 loc) · 19.6 KB
/
engine.js.map
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"version": 3,
"file": "engine.js",
"sourceRoot": "",
"sources": [
"engine.coffee"
],
"names": [],
"mappings": ";AAAA,IAAA;;AAAM,iBAAN,MAAA,eAAA;EACE,WAAa,EAAA,CAAA;IAAC,IAAC,CAAA;IACb,IAAC,CAAA,GAAD,GAAO,IAAC,CAAA,CAAC,CAAC,UAAH,CAAc,IAAd;IACP,IAAC,CAAA,MAAD,CAAQ,IAAC,CAAA,CAAT;IACA,IAAC,CAAA,MAAD,GAAU;IACV,IAAC,CAAA,WAAD,GAAe;IACf,IAAC,CAAA,SAAD,GAAa;IACb,IAAC,CAAA,OAAD,GAAW;IACX,IAAC,CAAA,MAAD,GAAU;IACV,IAAC,CAAA,SAAD,GAAa;IACb,IAAC,CAAA,OAAD,GAAW;IACX,IAAC,CAAA,QAAD,GAAY,IAAI,CAAC,GAAL,CAAA;IACZ,IAAC,CAAA,CAAC,CAAC,gBAAH,CAAoB,OAApB,EAA6B,IAAC,CAAA,WAAW,CAAC,IAAb,CAAkB,IAAlB,CAA7B;IACA,IAAC,CAAA,MAAD,CAAA;EAZW;;EAcb,KAAO,CAAA,CAAA;WAAG,IAAC,CAAA,OAAD,GAAW;EAAd;;EAEP,IAAM,CAAA,CAAA;WAAG,IAAC,CAAA,OAAD,GAAW;EAAd;;EAEN,MAAQ,EAAA,CAAA;IAAC,IAAC,CAAA;IACR,IAAC,CAAA,EAAD,GAAM,IAAC,CAAA,CAAC,CAAC,KAAH,GAAW,IAAC,CAAA,CAAC,CAAC;IACpB,IAAC,CAAA,EAAD,GAAM,IAAC,CAAA,CAAC,CAAC,MAAH,GAAY,IAAC,CAAA,CAAC,CAAC;WACrB,IAAC,CAAA,GAAG,CAAC,OAAL,GAAe;EAHT;;EAKR,IAAM,CAAC,CAAD,EAAG,CAAH,CAAA;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ax = 150\n @meteorMax = 100\n @meteors = []\n @blocks = []\n @particles = []\n @running = no\n @lastDraw = Date.now()\n @c.addEventListener 'click', @handleClick.bind(@)\n @render()\n\n start: -> @running = yes\n\n stop: -> @running = no\n\n resize: (@c) ->\n @cw = @c.width = @c.scrollWidth\n @ch = @c.height = @c.scrollHeight\n @ctx.lineCap = 'round'\n\n rand: (a,b) -> ~~((Math.random()*(b-a+1))+a)\n\n addBlock: (thickness) ->\n return if @blocks.length >= 5 or not @running\n @blocks.push\n y: -50\n speed: 5\n hue: 190\n alpha: .5\n thickness: Math.round(thickness)\n \n updateBlocks: ->\n i = @blocks.length\n while i--\n block = @blocks[i]\n block.y = Math.round(block.y + block.speed)\n block.alpha = Math.max(0, 1-(4*block.y/@ch-3))/2 if block.y / @ch > 0.75\n @blocks.splice(i, 1) if block.y > @ch\n\n renderBlocks: ->\n i = @blocks.length\n while i--\n block = @blocks[i]\n @ctx.beginPath()\n @ctx.moveTo(20, block.y)\n @ctx.lineTo(@cw-20, block.y)\n @ctx.lineWidth = block.thickness\n @ctx.strokeStyle = 'hsla('+block.hue+', 80%, 50%, '+block.alpha+')'\n @ctx.stroke()\n @ctx.closePath()\n @ctx.restore()\n\n createBlockParticles: ->\n i = @blocks.length\n while i--\n block = @blocks[i]\n @particles.push\n x: Math.round(@rand(20, @cw-20))\n y: block.y - 10\n vx: (@rand(0, 100)-50)/100\n vy: (@rand(-50, 50)-50)/100\n radius: Math.round(@rand(2, 6)/2)\n alpha: @rand(50, 75)/100\n hue: block.hue\n light: 50\n\n handleClick: ({pageX, pageY}) ->\n cx = pageX - @c.getBoundingClientRect().left\n cy = pageY - @c.getBoundingClientRect().top\n for {x, y, thickness, link} in @meteors.reverse()\n t = thickness * 2\n if cx >= x-t and cx <= x+t and cy >= y-t and cy <= y+t\n window.open link\n break\n\n addMeteor: ({speed, hue, thickness, length, link, donation}) ->\n return if not @running\n return if (@meteors.length >= @meteorMax or @currentFps < @minFps) and !donation\n @meteors.push\n x: Math.round(@rand(thickness, @cw-thickness))\n y: -50\n vy: if donation then speed*0.8 else speed\n hue: Math.round(hue)\n thickness: if donation then Math.max(20, thickness*2) else thickness\n length: Math.max(length, 10)\n alpha: 1\n timestamp: new Date().getTime()\n link: link\n donation: donation\n @meteors.sort (a,b) -> a.thickness - b.thickness\n\n updateMeteor: (meteor) ->\n meteor.x = Math.round(@rand(meteor.thickness, @cw-meteor.thickness)) if meteor.x < meteor.thickness\n meteor.y = Math.round(meteor.y + meteor.vy)\n meteor.hue = meteor.hue + 3 % 360 if meteor.donation\n if meteor.y / @ch > 0.75\n meteor.alpha = Math.max(0, 1-(4*meteor.y/@ch-3))\n meteor.thickness -= 0.05 if meteor.thickness > 5\n\n renderMeteor: (meteor) ->\n @ctx.save()\n @ctx.globalAlpha = meteor.alpha\n @ctx.translate(meteor.x, meteor.y)\n @ctx.beginPath()\n @ctx.moveTo(0, 0)\n @ctx.lineTo(0, -meteor.length)\n @ctx.lineWidth = meteor.thickness\n gradient1 = @ctx.createLinearGradient(0, 0, 0, -meteor.length)\n gradient1.addColorStop(0, 'hsla('+meteor.hue+', 60%, 50%, .25)')\n gradient1.addColorStop(1, 'hsla('+meteor.hue+', 60%, 50%, 0)')\n @ctx.strokeStyle = gradient1\n @ctx.stroke()\n @ctx.closePath()\n @ctx.restore()\n\n renderMeteorBorder: (meteor) ->\n @ctx.save()\n @ctx.globalAlpha = meteor.alpha\n @ctx.translate(meteor.x, meteor.y)\n @ctx.beginPath()\n @ctx.moveTo(0, 0)\n @ctx.lineTo(0, -meteor.length)\n @ctx.lineWidth = Math.round(meteor.thickness / 5)\n gradient2 = @ctx.createLinearGradient(0, meteor.thickness, 0, -meteor.length)\n gradient2.addColorStop(0, 'hsla('+meteor.hue+', 100%, 50%, 0)')\n gradient2.addColorStop(.1, 'hsla('+meteor.hue+', 100%, 100%, .75)')\n gradient2.addColorStop(1, 'hsla('+meteor.hue+', 100%, 50%, 0)')\n @ctx.strokeStyle = gradient2\n @ctx.stroke()\n @ctx.closePath()\n @ctx.restore()\n\n renderMeteorFlare: (meteor) ->\n @ctx.save()\n @ctx.globalAlpha = meteor.alpha\n @ctx.translate(meteor.x, meteor.y + meteor.thickness*.5)\n @ctx.beginPath()\n @ctx.arc(0, 0, meteor.thickness, 0, Math.PI *2, false)\n gradient3 = @ctx.createRadialGradient(0, 0, 0, 0, 0, meteor.thickness)\n gradient3.addColorStop(0, 'hsla('+(meteor.hue + 30) % 360+', 100%, 50%, .2)')\n gradient3.addColorStop(1, 'hsla('+(meteor.hue + 30) % 360+', 50%, 50%, 0)')\n @ctx.fillStyle = gradient3\n @ctx.fill()\n @ctx.closePath()\n @ctx.restore()\n\n renderMeteorFlare2: (meteor) ->\n @ctx.save()\n @ctx.globalAlpha = meteor.alpha\n @ctx.translate(meteor.x, meteor.y)\n @ctx.scale(1,1.5)\n @ctx.beginPath()\n @ctx.arc(0, 0, meteor.thickness / 2, 0, Math.PI *2, false)\n gradient4 = @ctx.createRadialGradient(0, 0, 0, 0, 0, meteor.thickness / 2)\n gradient4.addColorStop(0, 'hsla('+(meteor.hue + 60) % 360+', 80%, 70%, .1)')\n gradient4.addColorStop(1, 'hsla('+(meteor.hue + 60) % 360+', 80%, 50%, 0)')\n @ctx.fillStyle = gradient4\n @ctx.fill()\n @ctx.closePath()\n @ctx.restore()\n\n createParticles: (meteor) ->\n if meteor.donation or (@particles.length < @particleMax - @meteors.length and meteor.thickness > 5)\n @particles.push\n x: meteor.x + (@rand(0, meteor.thickness) - meteor.thickness/2)\n y: meteor.y + (@rand(0, meteor.thickness) - meteor.thickness/2)\n vx: (@rand(0, 100)-50)/100\n vy: (@rand(-25, 75)-50)/100\n radius: if meteor.donation then meteor.thickness*0.2 else Math.round(@rand(1, 6)/2)\n alpha: if meteor.donation then 0.5 else @rand(15, 30)/100\n hue: meteor.hue\n light: if meteor.donation then 0 else 50\n\n updateParticles: () ->\n i = @particles.length\n while i--\n p = @particles[i]\n p.vx += (@rand(0, 100)-50)/300\n p.vy += (@rand(-25, 75)-50)/300\n p.x += p.vx\n p.y += p.vy\n p.light += 2\n p.alpha -= .01\n @particles.splice(i, 1) if p.alpha < .02\n\n renderParticles: () ->\n i = @particles.length\n while i--\n p = @particles[i]\n @ctx.beginPath()\n @ctx.fillStyle = 'hsla('+p.hue+', 100%, '+p.light+'%, '+p.alpha+')'\n @ctx.fillRect(Math.round(p.x), Math.round(p.y), p.radius, p.radius)\n @ctx.closePath()\n\n clear: () ->\n @ctx.globalCompositeOperation = 'destination-out'\n @ctx.fillStyle = 'rgba(0, 0, 0, 0.25)'\n @ctx.fillRect(0, 0, @cw, @ch)\n @ctx.globalCompositeOperation = 'lighter'\n\n render: () ->\n requestAnimationFrame @render.bind(@)\n return unless @running\n @currentFps = Math.round(1000/(Date.now() - @lastDraw))\n @lastDraw = Date.now()\n @clear()\n # debug\n #@ctx.font = '48px serif';\n #@ctx.fillStyle = 'rgba(255, 255, 255, 1)'\n #@ctx.fillText(@currentFps, 10, 50);\n # blocks\n @updateBlocks()\n @renderBlocks()\n @createBlockParticles()\n # meteors\n i = @meteors.length\n while i--\n meteor = @meteors[i]\n if new Date().getTime() - meteor.timestamp > 15*1000 or meteor.y - meteor.length > @ch\n @meteors.splice i, 1\n continue\n @updateMeteor(meteor)\n @renderMeteor(meteor)\n @renderMeteorBorder(meteor)\n @renderMeteorFlare(meteor)\n @renderMeteorFlare2(meteor)\n @createParticles(meteor)\n # meteor particles\n @updateParticles()\n @renderParticles()\n\n"
]
}