How to Build a 2D Safe Code Breaker Mini-Game in Unity

https://medium.com/@tmaurodot/how-to-build-a-2d-safe-code-breaker-mini-game-in-u...


How to Play Safe Code Breaker

Objective: Crack the 4-digit code to unlock the safe!

How to Play:

  1. Enter Your Guess: Use the number pad (0-9) to input a 4-digit code. Each click fills a slot from left to right.
  2. Submit: Once all 4 digits are entered, press "Submit" to check your guess.
  3. Read Feedback:
    • "X correct": Number of digits that match the secret code in the right position.
    • "Y misplaced": Number of digits in the code but in the wrong position.
  4. Track Progress: The green text above shows digits you’ve guessed correctly in their exact positions, updating after each submission.
  5. Adjust and Retry: Use the feedback and confirmed digits to refine your next guess. Press "Clear" to start over if needed.
  6. Win: Guess the exact code (e.g., 7259) to open the safe! You’ll hear a victory jingle, and the safe sprite will change.
  7. Play Again: After winning, click "Guess Again" to reset the game with a new code.

Tips:

  • Pay attention to the feedback to narrow down possibilities.
  • The background color shifts randomly for a dynamic vibe—enjoy the atmosphere while you crack the code!

Have fun and test your decoding skills!


Published 5 days ago
StatusReleased
PlatformsHTML5
AuthorMauroDot
GenrePuzzle
Made withUnity

Comments

Log in with itch.io to leave a comment.

Cool number version of wordle!