Update lockpicking-game-phaser.js: Adjust pin interaction area to extend to the bottom of the keyway for improved gameplay mechanics. This change enhances user interaction by ensuring the pin is fully interactive within the game environment.

This commit is contained in:
Z. Cliffe Schreuders
2025-08-08 16:59:34 +01:00
parent b9d4dcd93f
commit 6582c624ce

View File

@@ -947,8 +947,8 @@ export class LockpickingMinigamePhaser extends MinigameScene {
pin.springChannelRect.lineStyle(1, 0x1a1a1a);
pin.springChannelRect.strokeRect(-13, 3, 26, springChannelHeight - 3);
// Make pin interactive - 25% less wide, full height from spring top to pin bottom (extended down)
pin.container.setInteractive(new Phaser.Geom.Rectangle(-18.75, -110, 37.5, 140), Phaser.Geom.Rectangle.Contains);
// Make pin interactive - 25% less wide, full height from spring top to bottom of keyway (extended down)
pin.container.setInteractive(new Phaser.Geom.Rectangle(-18.75, -110, 37.5, 230), Phaser.Geom.Rectangle.Contains);
// Add pin number
const pinText = this.scene.add.text(0, 40, (i + 1).toString(), {