Sure, I can help you with that! Here's an example of a horror game called "Play All Night" implemented as a single HTML file using JavaScript. It contains the game logic, visuals using pictograms, two endings, and an Easter egg. To break the game and discover the Easter egg, you'll need to find a specific hidden action.
🔥
In this game, you start inside a restaurant and the goal is to escape. You have to wait until night, find a secret door, search for a key, and then use the key to escape. The game communicates with the player through console logs, but you can modify it to display visual messages or use sound effects if desired. The Easter egg can be triggered by pressing the "B" key, but the specific broken action is left for your imagination. Have fun playing and escaping the restaurant!