Keypad interactable


A new Interactable has been added: the Keypad. The Keypad contains an integer code and activates its corresponding Activatable when the player inputs a value that matches that code.

As per any Interactable, the Keypad can activate any type of Activatable (although only Doors currently exist).

The user can interact with the Keypad by looking at it and pressing E. Doing so will pull up a menu displaying the ten digits, as well as four other keys: "X", "C", "<", and "SUBMIT".

  • The digit keys will input the corresponding digit into the Keypad.
  • "X" will exit the player out of the Keypad's UI.
  • "C" will clear the value in the Keypad, resetting it to 0.
  • "<" will backspace the Keypad, deleting the most recently inputted digit.
  • "SUBMIT" will attempt to submit the code, activating the corresponding Activatable if the code is correct. Inputting an incorrect code does nothing (although a debug message saying the code was wrong will be printed).

Leave a comment

Log in with itch.io to leave a comment.