Sure! Here's an example of a simple 2D 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 on a smartphone. The game involves moving the player using the left and right arrow keys and shooting bullets to destroy the descending enemies. The score is displayed at the top left corner of the game canvas. Have fun playing!