Sure! Here's a sample code for a simple shooting game written in a single HTML file using JavaScript:
To play the game on a smartphone, open the HTML file in a web browser. You can control the player's position by touching the screen, and the player will shoot bullets upwards. The game will continue until you close the browser tab or navigate away from the HTML file.