Sure! Here's a simple car racing game implemented as a single HTML file using JavaScript:
This code creates a simple car racing game where you control a red car using the left and right arrow keys. Your goal is to avoid the obstacles represented by white blocks that move down the screen. If you collide with an obstacle, it's game over. To restart the game, simply reload the page.