Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
this.renderer = PIXI.autoDetectRenderer(340, 480, {});
this.stage = new PIXI.Container();
this.context = new Context();
// this.context.logLevel = LogLevel.DEBUG;
this.context
.install(MVCSBundle, PixiBundle)
.install(PalidorPixiExtension)
.configure(new ContextView(this.stage))
.configure(ViewsConfig, GameConfig, PalidorConfig)
.initialize();
document.body.appendChild(this.renderer.view);
}
public render = () => {
constructor() {
this.renderer = PIXI.autoDetectRenderer(340, 480, {});
this.stage = new PIXI.Container();
this.context = new Context();
// this.context.logLevel = LogLevel.DEBUG;
this.context
.install(MVCSBundle, PixiBundle)
.install(PalidorPixiExtension)
.configure(new ContextView(this.stage))
.configure(GameConfig, ViewsConfig, PalidorConfig)
.initialize();
const loader = PIXI.loader
.add(AtlasKeys.ATLAS_PNG)
.add(AtlasKeys.ATLAS_XML)
.add(AtlasKeys.FONT_FNT)
.add(AtlasKeys.BG_HUD_IMAGE)
.add(AtlasKeys.BG_IMAGE)
.add(AtlasKeys.BG_POPUP_IMAGE)
.load(this.onLoad);
constructor () {
this.renderer = PIXI.autoDetectRenderer(800, 600, {});
this.stage = new PIXI.Container();
this.context = new Context();
this.context.install(MVCSBundle, PixiBundle).
configure(new ContextView(this.stage)).
configure(MyConfig).
initialize();
this.stage.addChild(new CircleView())
document.body.appendChild(this.renderer.view);
}