Sure, here's a simple text-based JavaScript game version of Five Nights at Freddy's, implemented as a single HTML file:
To play the game on a smartphone, you can open this HTML file using a web browser on your phone. The game will display messages in the browser's console, so make sure to open the console to see the game updates.
This implementation is a simplified text-based version of Five Nights at Freddy's, where you have to survive five nights by checking the cameras for animatronics. Foxy is the only animatronic that can jumpscare you. Survive all five nights to win the game.
Note: This implementation does not include pictograms or graphical elements as it is a simplified text-based version.