Sure! Here's a simple example of a 2D game that meets your requirements. It allows you to spawn vehicles and fruits by tapping on icons, and you can also tap on the map to interact with them. The game is set in a water-themed map with a sandbox environment.
2D Game Sandbox
Tap on the icons below to spawn objects on the map.
In this example, you'll need to replace the `emozi_rabbit.png`, `emozi_apple.png`, `emozi_dog.png`, and `emozi_apple.png` with your own image files or pictograms. The game allows you to spawn vehicles and fruits by tapping the corresponding icons, and when you tap on the map, it will check if you've interacted with any of the spawned objects.
Feel free to customize and enhance this code according to your specific game requirements.