Sure! Here's an example of a car racing game implemented as a single HTML file using JavaScript:
This game uses canvas to draw the car and opponent cars on the screen. You can control the car using the left and right arrow keys. The objective is to avoid collisions with the opponent cars and stay on the track. If a collision occurs, the game ends and an alert will be displayed.