Sure! Here's an example of a simple game inspired by Subway Surfers implemented as a single HTML file. It utilizes JavaScript and is enclosed in script tags. However, please note that this is just a simple demonstration and not a fully functional game.
In this demo, the game canvas is displayed with a player represented by a simple pictogram image. The player can be controlled using the left and right arrow keys on a smartphone. The player can move horizontally within the canvas boundaries, and the score is displayed at the top left corner.
Please note that the provided example is a very basic implementation and lacks many features found in the actual Subway Surfers game. It's mainly intended to showcase the structure and usage of HTML, CSS, and JavaScript in creating a game.