Sure! Here's a simple example of a bouncing ball game implemented as a single HTML file with JavaScript:
This game displays a bouncing ball on a canvas element. The ball moves within the canvas boundaries and bounces off the walls. The game loop keeps updating the ball's position and redrawing it on the canvas to create the illusion of motion.
To play the game, you can open the HTML file on a smartphone or any browser that supports HTML5 canvas. The ball will bounce around the canvas indefinitely.