Here's an example of how you can implement the game description you provided into a single HTML file:
In the code above, a canvas element is used to draw and animate the bouncing poo emoji. The image of the poo emoji is loaded and drawn on the canvas. The position of the emoji is updated continuously to simulate bouncing off the walls. After every 10 bounces, the image of the emoji is replaced with a smiling face image.
Make sure to replace the placeholder image names ('emozi_hamuster.png' and 'emozi_dog.png') with the actual image files you want to use for the game. Place the image files in the same directory as the HTML file.
Please note that since this is a simplified example, there is no user interaction or scoring mechanism implemented. It simply demonstrates the bouncing behavior with image changes.