Lifecycle
Video
Dungeon Stomp — an experiment shown in the showcase reel.
Details
Prompt
In the generator script I added some code to detect when a player is in a room. Can you help me finish it? It should spawn a few monsters in the room when the player enters. Here are the monster types I have already created:\n- Goblin (melee)\n- Skeleton (melee)\n- Ogre (melee)\n- Bat (flying melee)\n- Snake (melee)\n- Tentacle (static melee)\n- Golem (melee boss)\n- Fire Elemental (ranged boss)\nI'd like for it to spawn a random amount of monsters between 1 and 4. The monsters should be spawned at a random location within the room but not too close to the player. Can you help me with the code for this?