Revision:

  • Fixed the issue of the unresponsive tab key caused by messy code.
  • Rewrote the raycast detection logic for quicker and better text response.
  • Modified the logic for drawer push-pull mechanics; drawers can now freely slide in and out. All drawers within the room have been made interactive.
  • Added a lock feature to the drawers in the code, where players need to play a mini-game to unlock them. Since the drawers face three directions, I devised the publicxyz system for the three axes, assigning a value of 1 to the axis that needs to move; for example, if the x-axis moves, it's x:1, y:0, z:0, and so forth.
  • Implemented a single-instance save and load mechanism in the game, where pressing the save button saves everything in the player's inventory at that time, including the player's sanity levels, night vision battery, etc. All items consumed between saving and loading are restored after loading, except for hallucinations caused by low sanity levels, which will not disappear; after loading, sanity levels are restored to normal, but hallucinations will not worsen temporarily.
  • Note that currently, players can only save and load once. Each click of the save button will overwrite the previous save until the load button is pressed.

Published 4 days ago
StatusReleased
PlatformsHTML5
AuthorCrystaleech
Made withUnity