Sure! Here's an example of a simple text-based game inspired by Five Nights at Freddy's that you can play within a single HTML file:
In this game, you start from Night 1 and each subsequent night an animatronic will approach you. You have the choice to either hide or run away. The outcome is determined randomly, and if you successfully hide, you progress to the next night. If you make a wrong move, the game ends. Survive all five nights to win!