forked from reditaru/taptap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
24 lines (24 loc) · 1.24 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var app = new PIXI.Application({antialias:false});
document.body.appendChild(app.view);
app.renderer.autoResize = true;
app.renderer.resize(window.innerWidth, window.innerHeight);
window.onresize = function (event){
app.view.style.width = window.innerWidth + "px";
app.view.style.height = window.innerHeight + "px";
app.renderer.resize(window.innerWidth,window.innerHeight);
}
var background = new Background();
var block = new Block();
app.stage.addChild(background.getContainer());
app.stage.addChild(block.getContainer());
var animes = [new RandomShape(),new ExplodeCircle(),new ExplodeRectangle(),new FillCircle(),
new RandomPolyline(),new RandomShape(true),new RotationRect(),new CircleCircle(),
new RandomCircle(),new RandomRectangle(),new ZoomOutPolygon(),new RotationPolygon(),
new Helix(),new Cross(),new CircleLine(),new RectangleLine(),
new RandomShape(),new ExplodeCircle(),new ExplodeRectangle(),new FillCircle(),
new RandomPolyline(),new RandomShape(true),new RotationRect(),new CircleCircle(),
new RandomCircle(),new RandomRectangle(),new ZoomOutPolygon(),new RotationPolygon(),
new Helix(),new Cross(),new CircleLine(),new RectangleLine()];
for(var anime of animes){
app.stage.addChild(anime.getContainer());
}