Please find below a sample implementation of a shooting game in a single HTML file, using JavaScript and incorporating levels 1-10. The game assumes smartphone operation and utilizes pictograms as much as possible. You can copy the code and save it as an HTML file to play the game:
To play the game, save the above code as an HTML file, open it in a web browser on a smartphone, and tap on the canvas to gain focus. Then, use the spacebar or any other designated key to shoot the bullet towards the target. The target moves downwards, and if the bullet hits the target, the level increments. If the target reaches the bottom, a game over message is displayed along with the level reached. The game can be restarted by reloading the page.