Sure! Here's an example of a simple text-based game inspired by Five Nights at Freddy's, using JavaScript and enclosed in script tags within an HTML file. Since this is a text-based game, pictograms won't be utilized. You can copy the code below into a single HTML file and run it on any smartphone or browser to play the game:
Scary Night - Survive Till Dawn
Welcome to Scary Night! Your goal is to survive till dawn by keeping an eye on the creepy animatronics roaming around. Be careful and good luck!
When you open this HTML file on your smartphone or browser, it will simulate the game by displaying messages in the console. The game will continue until either it reaches 6 AM (surviving till dawn) or you come across "Foxy" (game over). The animatronic encounter and the current hour will be displayed within the console log.