Here's a simple game implementation based on your requirements:
The Race: Animal Transformation
Touch the color blue to turn animals into cars, shoot yo-yos, and zebras!
To play the game, you would need to have image files of the animals (dog, horse, cow, elephant), as well as for the transformed elements (car, yo-yo, zebra). Ensure the image files are in the same directory as the HTML file and correctly referenced in the JavaScript code (e.g., "emozi_all/play.png", "emozi_all/car.png", etc.).
The game starts with the animals (represented by pictograms) displayed on the screen. When you touch the color blue (assuming you tap on the screen or have a blue background), you can click on the dog to transform it into a car. If you touch the color blue again, clicking on any animal will shoot a yo-yo next to it. Otherwise, if the background color is not blue, clicking on an animal will turn it into a zebra.
The game continues until all animals have been transformed either into cars or zebras. Once that happens, a "Game Over" message will appear on the screen.
Note: This implementation assumes the availability of the necessary image files and some CSS styling for the appearance. You may need to adjust the code accordingly and provide your own image files to match your specific requirements.