Sure, here is an example of a simple game written in a single HTML file using JavaScript. This game involves particles that move around the screen:
This code creates a canvas element and draws particles as blue circles on it. The particles move randomly on the screen, creating a visual effect. You can run this code on a smartphone and see the particles in motion.