Sure! Here's a simple game implemented as a single HTML file using JavaScript:
Please make sure to replace the image file names (zebra.png, lion.png, elephant.png, giraffe.png, rock.png) with your own images if you have them. This code will display the zebra on the screen, and the player can move it using the arrow keys. The objective is to collect 10 rocks while avoiding collisions with the lion, elephant, and giraffe. If the player is caught by any of these animals, they lose, and if they collect all 10 rocks, they win.
Please note that you would need to provide your own images and update the image URLs accordingly for the game to work properly.