Sure, here's an example of a simple game implemented in a single HTML file using JavaScript:
This game creates a canvas where you control a white ball at the bottom of the screen using smartphone touch events. The goal is to bounce on the yellow balls at the top. When the white ball hits a yellow ball, it disappears and the score increases. The game continuously updates the canvas animation using `requestAnimationFrame` for smooth rendering.