Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bunniesContainer.addChild(bunny);
}
text.position.set(bunniesContainer.width / 2, 0);
bunniesContainer.hitArea = new PIXI.Rectangle(0, 0, bunniesContainer.width, bunniesContainer.height);
this.filteredBunnies.x = this.app.initialWidth - this.filteredBunnies.width - 10;
this.filteredBunnies.y = this.app.initialHeight - this.filteredBunnies.height;
// Filters
const filters = [
new AsciiFilter(),
new CRTFilter(),
new GlowFilter(),
new OldFilmFilter(),
new ShockwaveFilter(new PIXI.Point(bunniesContainer.width / 2, bunniesContainer.height / 2)),
new OutlineFilter(1, 0xFF0000),
];
}
this.inventoryIcon;
this.timeout=null;
this.progress={
puzzles:[]
};
this.width=config.width;
this.height=config.height;
this.parent=null;
if(config.parent!=undefined) this.parent=config.parent;
this.autoResize=true;
if(config.autoResize!=undefined) this.autoResize=config.autoResize;
this.app=new PIXI.Application(config.width,config.height,{autoResize: true,resolution: devicePixelRatio});
this.OldFimFilter=new filters.OldFilmFilter();
this.GodRayFilter=new filters.GodrayFilter();
this.ReflectionFilter=new filters.ReflectionFilter({
mirror:false,
boundary:0,
amplitude:[2,2],
waveLength:[100,100]
}
);
//Z-Order
this.app.stage = new PIXI.display.Stage();
this.sortGroup= new PIXI.display.Group(0, true);
this.sortGroup.on('sort', function (sprite) {
sprite.zOrder = -sprite.y;
});
this.onTopGroup = new PIXI.display.Group(1,false);