Sure! Here's a simple horror game where you play as a man hitting objects with a bat. It's built as a single HTML file and contains JavaScript code enclosed in script tags. Since you mentioned smartphone operation, I'll design it to be mobile-friendly and use pictograms.
To play the game, open a new HTML file and paste the following code inside the `` tags:
Horror Game
Tap/click on the object with a bat to scare it away!
👻
This game presents a ghost emoji as an object, and you have to tap/click on it with the bat to scare it away. Each time you hit the object, your score increases by 1. The game dynamically generates different objects such as spiders, bats, knives, skulls, or monsters as your target. The score is displayed below the object.
Feel free to modify the code, add more functionality, or enhance the visuals as per your requirements. Have fun playing the game!