Sure! Here's a simple fighter game written in a single HTML file using JavaScript:
In this game, you control a blue fighter using the arrow keys on your smartphone. The red enemy will move towards you, and if the two fighters collide, it's game over. The game loop continuously updates the game state and redraws the canvas.