Sure, here's an example of a simple Bubble Shooter game implemented as a single HTML file with JavaScript:
This code will display a canvas element where bubbles are randomly generated and move upwards. The player can click on the bubbles to remove them and earn points. The score is displayed on the screen. The game loop updates the game state and redraws the canvas continuously using the requestAnimationFrame() function.