Sure! Here's an example of a basic space battle game implemented as a single HTML file using JavaScript. Note that this is a simplified version to give you an idea, and you can expand and customize it as per your requirements.
In this game, you control a spaceship at the bottom of the canvas using the right and left arrow keys on your smartphone. The objective is to avoid collisions with enemy spaceships falling from the top. The score increases as time passes. When a collision occurs, the game restarts, and the score is displayed.
You can enhance the game further by adding more features like power-ups, levels, different enemies, and graphics.