Here is an example of a simple game implemented in a single HTML file using JavaScript: Geometry dash
This game creates a blue particle that follows the cursor within a canvas. Players can move the particle around by moving their cursor on the canvas.