text: !function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var o={};t.m=e,t.c=o,t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}({5:function(e,t){function o(){w=new a,w.beginFill(s),w.lineStyle(2*p,y,v),w.endFill(),w.drawRect(0,0,h,h),w.position.set(0,0),w.vx=f,w.vy=f,I.addChild(w),g=new a,g.beginFill(s),g.lineStyle(p,y,v),g.endFill(),g.drawRect(0,0,5*h*16,2.5*h*9),g.x=(x.view.width-g.width)/2,g.y=(x.view.height-g.height)/2,g.vx=0,g.vy=f/2,I.addChild(g),n()}function n(){requestAnimationFrame(n),m(),x.render(I)}function i(){w.x+=w.vx,w.y+=w.vy;var e=u.rectangleCollision(w,g);e&&(console.log("collision1",void 0===e?"undefined":r(e),e),"left"!=e&&"right"!=e||(w.vx=-w.vx),"top"!=e&&"bottom"!=e||(w.vy=-w.vy));var t=u.contain(w,{x:0,y:0,width:x.view.width,height:x.view.height});t&&((t.has("left")||t.has("right"))&&(w.vx=-w.vx),(t.has("top")||t.has("bottom"))&&(w.vy=-w.vy)),g.x+=g.vx,g.y+=g.vy;var o=u.contain(g,{x:0,y:w.height,width:x.view.width,height:x.view.height-w.height});o&&((o.has("left")||o.has("right"))&&(g.vx=-g.vx),(o.has("top")||o.has("bottom"))&&(g.vy=-g.vy))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=PIXI.Container,a=PIXI.Graphics,d=PIXI.loader,c=(PIXI.Rectangle,PIXI.autoDetectRenderer),u=(PIXI.loader.resources,PIXI.Sprite,PIXI.Text,PIXI.utils.TextureCache,PIXI.Texture,new Bump(PIXI)),h=8,s=3355443,v=1,y=s,p=1,f=8,x=c(8*h*16,8*h*9);x.view.style.border="1px solid #ccc",x.backgroundColor=16777215,document.getElementById("pixi").appendChild(x.view);var I=new l,m=i,w=void 0,g=void 0;!function(e){var t=e.split("/").pop().split(".")[0],o=document.createElement("style"),n='@font-face {\n    font-family: "'+t+'";\n    src: url("'+e+'");\n  }';o.appendChild(document.createTextNode(n)),document.head.appendChild(o)}("assets/Pixilator.ttf"),d.add(["assets/Pixilator.ttf"]).load(o)}});
  //# sourceMappingURL=main.js.map