Sure! Here's a simple text-based horror game implemented as a single HTML file using JavaScript:
To play the game, you can simply copy the code above and save it as a `.html` file. Open the file in a web browser and follow the prompts to make choices and progress through the game.
Please note that this is a very basic example of a horror game and can be further enhanced with graphics, sound effects, and more complex gameplay mechanics.