GWNDFRV3SSE3VUV7AUE6KI7AXCEYYJDNRGRTJD2RNMSYG5OFPKIQC
WPC667PRTGRE7BNP6E7ZCQIKXYMIHJT3LUTTQT7VX2HQVRBXNIKAC
B4JS4Z3VVAD5RJJ272S7GJM5BUNIHHMGNK2VSKVGZFPOVFP2YO4QC
5BA7VZ3D36S2TC7NZ64R3O364TGXPY5BJUJTGCFZHWZ6JWAXJMUQC
JG36CDUKVUWJT25PJVMWKWI4KFRHM24PFBKPXXRY3D2XVDKUVI7QC
WTINQMZSNRT5MSAXLMMZVM6OU6TMD4AP4OEUYAXZUFNY5IWFLZSQC
4TYJCGT4MTCAH7GSJJWFQPPHZNAUQZDEIZYT365EYTMXS7D2MTNAC
A75BWKGRLUDH3KF4M2HJYLNC6BSV5MAJFV2RJSF757F46HLRLCKQC
WO2ALETBVNH7N3NXJ6JKWCQ2YIZN6LBO7WEXPHAT3EQQJEUCJITQC
3EAR4KTTJ26IRF5QUGEDRMJVBR4X3VWSQ6OBIJCLDH3A4ZZ4O3ZAC
DHO4JCJIELKX4R42XXAMAHVQTTE6OWULLP2QF4BXO3UWC5UTMSMAC
const [application, setApplication] = useState<Application>(initialApplication.get());
const [application, setApplication] = useState<any>(initialApplication.get());
// const [application, setApplication] = useState<any>(() => new BaseApplication({
// originalWindowWidth: window.innerWidth,
// originalWindowHeight: window.innerHeight,
// }, {
// }));
this.rootApplication = new RootApplication({
args: {
renderer: this.app.renderer,
},
updaters: this.props.gameStateUpdaters,
delta: 0,
gameState: this.props.gameState,
appSize: this.state.appSize,
})
this.app.stage.addChild(this.rootApplication.container);
this.isMounted = false;
// this.rootApplication = new RootApplication({
// args: {
// renderer: this.app.renderer,
// },
// updaters: this.props.gameStateUpdaters,
// delta: 0,
// gameState: this.props.gameState,
// appSize: this.state.appSize,
// })
// this.app.stage.addChild(this.rootApplication.container);
// test
// createBunnyExample({ parent: this.app.stage, ticker: this.app.ticker, x: this.app.screen.width / 2, y: this.app.screen.height / 2 });
this.didMount();
// // test
// // createBunnyExample({ parent: this.app.stage, ticker: this.app.ticker, x: this.app.screen.width / 2, y: this.app.screen.height / 2 });
// this.didMount();
if (!this.isMounted) {
// finish initialization
this.rootApplication = new RootApplication({
args: {
renderer: this.app.renderer,
},
updaters: this.props.gameStateUpdaters,
delta: 0,
gameState: this.props.gameState,
appSize: this.state.appSize,
})
this.app.stage.addChild(this.rootApplication.container);
this.renderSelf(this.props);
// test
// createBunnyExample({ parent: this.app.stage, ticker: this.app.ticker, x: this.app.screen.width / 2, y: this.app.screen.height / 2 });
this.didMount();
}