Sure, here's an example of a simple horror game implemented as a single HTML file using JavaScript. Please note that this is a basic implementation and can be built upon to make it more interactive and engaging. Additionally, the game logic could be expanded and enhanced for a more immersive experience.
Toy Factory Horror Game
Help the little boy escape from the toy factory before the owner catches and kills him!
Use pictograms/icons on your smartphone to navigate through the factory.
You can save the above code as an HTML file and open it in a web browser. The game interface will be displayed, and you can proceed by following the on-screen instructions and making choices to progress through the game. The game will continue until you either escape or get caught by the owner of the toy factory.