Sure! Here's a simple HTML game that resembles the scenario you described, implemented using JavaScript. It's a text-based game where the player must navigate through a hotel, find keys, avoid monsters, and escape through the doors.
In this simple implementation, the game loop iterates until the player reaches the door number 100 (represented by the `playerLocation == 100` condition). Along the way, it checks for monsters and keys at each door. If a player encounters a monster, they can hide in a closet if available; otherwise, the game ends. If a player finds a key, the number of keys collected increases by one. Once the player reaches door 99, they win the game.
Feel free to enhance the game by providing appropriate graphics or adding additional features as per your requirements.