This commit is contained in:
2025-12-12 13:48:49 +01:00
parent 6c583a6576
commit 8b005065fe
305 changed files with 294 additions and 0 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();
}
});