Skip to content

MG-U: Cryptex Scroll-Wheel Password minigame for BreakEscape#77

Merged
cliffe merged 2 commits intocliffe:mainfrom
alihussain6692:mg-u-cryptex-clean
May 6, 2026
Merged

MG-U: Cryptex Scroll-Wheel Password minigame for BreakEscape#77
cliffe merged 2 commits intocliffe:mainfrom
alihussain6692:mg-u-cryptex-clean

Conversation

@alihussain6692
Copy link
Copy Markdown
Contributor

Implements MG-U — Cryptex / Scroll-Wheel Password Entry for BreakEscape.

Changes:

  • New CryptexMinigame class with horizontal scroll-wheel rings
  • Each ring cycles through configurable alphabet (up/down arrows)
  • String answer format ("CYBER") auto-converts to wheel indices
  • Wheels stay in place after wrong attempt (player sees their try)
  • Optional hint strip with '_' for hidden characters
  • Optional worn-ring visual (faded characters, scenario-configurable opacity)
  • Server-side validation, max 3 attempts
  • New lockType: "cryptex" in unlock-system.js

Example scenario usage:
{
"type": "safe",
"locked": true,
"lockType": "cryptex",
"cryptexConfig": {
"answer": "CYBER",
"alphabets": ["ABCDEFGHIJKLMNOPQRSTUVWXYZ"],
"hintStrip": ["C", "", "", "_", "R"],
"wornRings": { "positions": [1, 3], "wornOpacity": 0.25 }
}
}

Missions: M2, M3, M6, M9

@cliffe cliffe merged commit 80ec3b7 into cliffe:main May 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants