Sure! Here's an example of a single HTML file that contains a simple horror game inspired by Five Nights at Freddy's. The game is implemented using JavaScript and is enclosed in script tags.
Horror Nights at Freddy Fazbear’s: The Game
In this game, there is an image of Freddy Fazbear displayed in the game container. When the player clicks on the image, a message "You got attacked by Freddy Fazbear! Game over!" is displayed below the game container. The event listener on the image ensures that the game can only be played once.
Please note that this is just a basic example, and you can customize and enhance the game further based on your requirements.