Sure! Here's an example of a simple racing game implemented as a single HTML file with JavaScript:
In this game, you control a car using the right and left arrow keys. The car moves horizontally within the game container. If the car reaches the edges of the container, it stops moving in that direction. You can modify the CSS styles to use pictograms or add more elements and functionalities to make it a more feature-rich game.