As an AI text-based model, I can provide you with a basic HTML and JavaScript code snippet to create a text-based game resembling Five Nights at Freddy's. However, please note that implementing a full-fledged game like Five Nights at Freddy's would require extensive coding, graphical assets, and complex game mechanics which are beyond the scope of a simple HTML snippet. Here's a starting point for you:
This basic HTML template sets up the structure for your game. In the JavaScript section, you can start implementing the game logic, interactions, and mechanics specific to Five Nights at Freddy's.
Remember that building a complete game like Five Nights at Freddy's typically involves complex animations, audio, user interactions, and many more aspects. It would be more appropriate to use a game development framework or engine to create such a game.