The Run. You Are a Zebra, Watch Out for the Lion, The Elephant and The Giraffe Protects You, Find 10 Rocks to WinThe Run. You Are a Zebra, Watch Out for the Lion, ..ALL
Developer User16498|Date and time 24/1/14 9:24:53 Build time 17.09 sec|Game capacity 5.195KB|Script
Sure! Here's a simple game that meets your requirements:
Notes:
- You would need to replace the `"emozi_all/zebra.png"`, `"emozi_all/lion.png"`, `"emozi_all/elephant.png"`, `"emozi_all/giraffe.png"`, `"emozi_all/rock.png"` with actual image URLs or use your own custom pictograms.
- The game uses arrow keys to move the zebra.
- If the zebra collides with the lion or giraffe, the game ends and a game over message is shown.
- If the zebra collects all 10 rocks by colliding with them, the game ends and a congratulations message is shown.
- The game is displayed on a canvas element with a size of 400x400 pixels.
- The game loop runs every 20 milliseconds to update the game state and re-draw the canvas.