IKCJ6T4DD7PYT24W2CHOPJ7KQ7CVPSA3WFQQRUJ4S3BY2RNN7R5QC
V2P5PHBP2L6TSW7RCIFQXLSROMERDTQKSLWRFHBAUALRZUDJNLLAC
OAY5NOOTDF5QELB64LYDGSKANR33WIH4QKNRBO437TMUMAQ5CWRQC
UA5JKLRCSTK6EEMPACUFKTIT2NUDEYBFDBELOI7ZTXKK345WFOPQC
KJRRX26YBIYSRIURYCOQVXLJ63DGD4ILPAKHSJ2SJCAILTBKRRDQC
DHO4JCJIELKX4R42XXAMAHVQTTE6OWULLP2QF4BXO3UWC5UTMSMAC
VLNQ64Y6W3IQSKEQNCOT6W3SMITHEVPGT4MI43NONFGOKID66R5QC
PYGXEPNZSHLTHHKG2A7TCN5KF6I4KO5SJAMOTJNMWXY6LRP5CEAQC
this.fixedCameraStage = new Pixi.Sprite();
this.fixedCameraStage.zIndex = 1;
this.fixedCameraStage.sortableChildren = true;
this.container.addChild(this.fixedCameraStage);
const fixedCameraStagePropsFactory = (props: Props, state: State) => {
return {
args: {
renderer: props.args.renderer,
markForceUpdate: this.markForceUpdate,
},
delta: props.delta,
gameState: props.gameState,
appSize: props.appSize,
tick: state.tick,
};
}
this.fixedCameraStage = new FixedCameraStageComponent(fixedCameraStagePropsFactory(props, this.state));
this.addChild({
childClass: FixedCameraStageComponent,
instance: this.fixedCameraStage,
propsFactory: fixedCameraStagePropsFactory,
})
let fpsTrackerPropsFactory = (props: Props, state: State) => {
return {
delta: props.delta,
position: new Vector2(0, 0),
appSize: props.appSize,
};
};
this.fpsTracker = new FpsComponent(fpsTrackerPropsFactory(props, this.state));
this.registerChild({
childClass: FpsComponent,
instance: this.fpsTracker,
propsFactory: fpsTrackerPropsFactory,
})
// this is not container.addChild, so let's manage this ourselves, outside of lifecyclehandler
this.fixedCameraStage.addChild(this.fpsTracker.container);
const reticlePropsFactory = (props: Props, state: State) => {
return {
appSize: props.appSize,
};
};
this.reticle = new ReticleComponent(reticlePropsFactory(props, this.state));
this.registerChild({
childClass: ReticleComponent,
instance: this.reticle,
propsFactory: reticlePropsFactory,
});
this.fixedCameraStage.addChild(this.reticle.container);
let efficiencyBarPropsFactory = (props: Props, state: State) => {
return {
delta: props.delta,
args: {},
updaters: {},
tick: state.tick,
position: new Vector2(60, 60),
efficiencyPercent: remapQuestEfficiencyToDisplayable(computeQuestEfficiencyPercent(props.gameState.playerSave)),
};
};
this.efficiencyBar = new EfficiencyBarComponent(efficiencyBarPropsFactory(props, this.state));
this.registerChild({
childClass: EfficiencyBarComponent,
instance: this.efficiencyBar,
propsFactory: efficiencyBarPropsFactory,
});
this.fixedCameraStage.addChild(this.efficiencyBar.container);