mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
Adjust KEY_SHRINK_FACTOR in lockpicking-game-phaser.js to improve key rotation simulation. This change enhances the visual representation of the key during gameplay, contributing to a more realistic user experience.
This commit is contained in:
@@ -1260,7 +1260,7 @@ export class LockpickingMinigamePhaser extends MinigameScene {
|
||||
const KEY_PIN_TOTAL_SHRINK = KEY_PIN_TOP_SHRINK + KEY_PIN_BOTTOM_SHRINK; // Total key pin shrink
|
||||
const CHANNEL_MOVEMENT = 25; // How much channels move down
|
||||
const KEYWAY_SHRINK = 20; // How much keyway shrinks
|
||||
const KEY_SHRINK_FACTOR = 0.85; // How much the key shrinks on Y axis to simulate rotation
|
||||
const KEY_SHRINK_FACTOR = 0.7; // How much the key shrinks on Y axis to simulate rotation
|
||||
|
||||
// Play success sound
|
||||
if (this.sounds.success) {
|
||||
|
||||
Reference in New Issue
Block a user