posodobitve

This commit is contained in:
2025-12-12 13:40:51 +01:00
parent a210638002
commit 6c583a6576
32 changed files with 6586 additions and 703 deletions

View File

@@ -0,0 +1,26 @@
// GAMESCENE.JS - KEYBOARD BINDINGS
// Dodaj te key listenere v setupCamera() metodo
// R key - Rotate building
this.input.keyboard.on('keydown-R', () => {
if (this.buildSystem && this.buildSystem.buildMode) {
this.buildSystem.rotatePreview();
}
});
// E key - Confirm placement
this.input.keyboard.on('keydown-E', () => {
if (this.buildSystem && this.buildSystem.buildMode) {
this.buildSystem.confirmPlacement();
}
});
// ESC key - Cancel (posodobi obstoječi ESC listener)
this.input.keyboard.on('keydown-ESC', () => {
if (this.buildSystem && this.buildSystem.buildMode) {
this.buildSystem.cancelPlacement();
} else {
// Existing ESC functionality
this.togglePauseMenu();
}
});