Sure! Here's an example of a simple game implemented as a single HTML file that can be played on a smartphone. The game is based on the scenario you provided, where you control Mario and need to step on a Goomba to win.
In the above code, I assumed that you have two image files, `emozi_all/mario.png` for the player and `emozi_all/player.png` for the enemy (Goomba). Please make sure to replace the `emozi_all/enemy.png` and `emozi_chicken.png` file names with your own image files to see the graphics in the game.
To play the game, open this HTML file in a web browser on your smartphone. You'll see a game area with a Mario character and a Goomba. Tap on the Goomba, and if you successfully step on it, an alert will be shown saying "You win!".
This is a very basic implementation, but it should work as a simple game for your scenario. You can expand upon it by adding more enemies, levels, or additional features as needed.