Sure, here is an example of a simple game implemented as a single HTML file using JavaScript and enclosed in script tags:
This game is a simple particle-catching game where the player needs to tap on particles falling from the top of the screen to earn points. The score is displayed at the top left corner of the canvas. The game ends when a particle reaches the bottom of the screen.