Sure! Here's a simple text-based scary game that can be played on a smartphone. It uses pictograms to create a spooky atmosphere. Save the following code in a single HTML file, open it in a browser, and enjoy the game:
Scary Game
When you open the HTML file in a browser, you will see the game interface with an introductory message and three doors to choose from. Clicking on any door will reveal the outcome, whether it's encountering ghosts (losing) or finding the key (winning). After the outcome is displayed, you can play again by clicking the "Play again" button.
Have fun and be prepared to get scared!