A2OAPAN7NT7NCAVYQ3PEPJNEECXVXP3TQ2WJOPKKIO2E5USDGDSQC
if (this.keyboard.justUp["<"]) {
goingZDirection = 0;
chunksContainer.alpha = 1;
}
if (this.keyboard.justDown[">"]) {
if (goingZDirection != -1) {
chunksContainer.alpha = 1;
goingZDirection = -1;
}
}
if (this.keyboard.justDown["<"]) {
if (goingZDirection != 1) {
chunksContainer.alpha = 1;
goingZDirection = 1;
}
}
zLevel = new RenderedZLevel(
new ZLevel(this.randomSeed, zLevel.zLevel.z - 1),
this.config.onFocusedNodeChange
);
// zLevel = preloadedZLevelDown;
// preloadedZLevelDown = new RenderedZLevel(
// new ZLevel(this.randomSeed, preloadedZLevelDown.zLevel.z - 1),
// this.config.onFocusedNodeChange
// );
chunksContainer = zLevel.container;
this.actionStage.addChild(chunksContainer);
chunksContainer.x = this.app.screen.width/2;
chunksContainer.y = this.app.screen.height/2;
setTimeout(() => {
zLevel = new RenderedZLevel(
new ZLevel(this.randomSeed, zLevel.zLevel.z - 1),
this.config.onFocusedNodeChange
);
// zLevel = preloadedZLevelDown;
// preloadedZLevelDown = new RenderedZLevel(
// new ZLevel(this.randomSeed, preloadedZLevelDown.zLevel.z - 1),
// this.config.onFocusedNodeChange
// );
chunksContainer = zLevel.container;
this.actionStage.addChild(chunksContainer);
chunksContainer.x = this.app.screen.width / 2;
chunksContainer.y = this.app.screen.height / 2;
backdrop.tint = 0xFFFFFF;
});
zLevel = new RenderedZLevel(
new ZLevel(this.randomSeed, zLevel.zLevel.z + 1),
this.config.onFocusedNodeChange
);
// zLevel = preloadedZLevelDown;
// preloadedZLevelDown = new RenderedZLevel(
// new ZLevel(this.randomSeed, preloadedZLevelDown.zLevel.z - 1),
// this.config.onFocusedNodeChange
// );
chunksContainer = zLevel.container;
this.actionStage.addChild(chunksContainer);
chunksContainer.x = this.app.screen.width/2;
chunksContainer.y = this.app.screen.height/2;
setTimeout(() => {
zLevel = new RenderedZLevel(
new ZLevel(this.randomSeed, zLevel.zLevel.z + 1),
this.config.onFocusedNodeChange
);
// zLevel = preloadedZLevelDown;
// preloadedZLevelDown = new RenderedZLevel(
// new ZLevel(this.randomSeed, preloadedZLevelDown.zLevel.z - 1),
// this.config.onFocusedNodeChange
// );
chunksContainer = zLevel.container;
this.actionStage.addChild(chunksContainer);
chunksContainer.x = this.app.screen.width / 2;
chunksContainer.y = this.app.screen.height / 2;
backdrop.tint = 0xFFFFFF;
});