Sure! Here's a sample implementation of the game you described:
Greed Object
In this game, the player can tap on the "Spawn" menu to choose which type of troll to spawn. The spawned trolls will move around randomly within the game area. The player can also tap on the "Greed Object" to spawn more of them. Whenever a troll picks up a greed object, they will take damage. You can customize the game by adding more features and improving the gameplay based on your requirements.