Sure! Here's a simple implementation of a text-based game inspired by Five Nights at Freddy's using JavaScript. Please note that this is a simplified version and doesn't include any pictograms or graphical elements. You can copy and paste the code into a single HTML file and run it in any modern web browser.
In this text-based game, the player starts on Night 1 and their goal is to survive five nights. Each night, the game simulates the movement of animatronics. If the player gets jumpscared, the game ends. If the player survives, they move on to the next night until they either survive all five nights or get jumpscared.
Again, please note that this is a simplified implementation, and it does not include any graphical elements or smartphone-specific features.