Sure, here's an example of a simple car game implemented as a single HTML file using JavaScript:
In this game, the player can control a car using the left and right arrow keys. The car can move left and right within the canvas. The game updates on each frame by redrawing the road and the car at its new position.