Sure! Here's a simple shooting game implemented as a single HTML file using JavaScript and enclosed in script tags:
To play the game, open the HTML file in a web browser (preferably on a smartphone). The player can move left and right using the arrow keys and shoot by pressing the spacebar. The goal is to shoot the descending enemy and avoid getting hit by it. Score is displayed at the top left, and the game ends when the player collides with the enemy.