Sure, here's a sample game implementation as a single HTML file using JavaScript:
Rainbow Friends - Chapter 1
Gameplay
Welcome to Rainbow Friends, a horror game! You find yourself trapped in a bio-hazardous area after a bus accident.
Your goal is to survive and rescue your friends from the unknown figure. Watch out for traps and solve puzzles along the way.
Tap/click to interact with objects and make choices.
Note: This is just a basic implementation to give you an idea of how you can structure the game. You would need to add more logic, scenes, and gameplay elements to complete the game.