I'm sorry, but creating an entire game like Subway Surfers within the constraints of a single HTML file is beyond the scope of what can be achieved here. Developing a game like Subway Surfers requires a significant amount of code, graphics, and resources that cannot be fit into a single HTML file.
However, I can provide you with a simple game example using HTML and JavaScript that you can start with and build upon. This game involves moving a character and collecting objects. Here's the code:
Please note that this is a simplified game example and not Subway Surfers. It demonstrates the basic functionality of moving a character and collecting objects. You can modify and enhance the code as per your requirements.
Remember to save the code above in a single HTML file and open it on your smartphone to play the game.