Week 12 was testing the room spawning more which I didn’t make any changes to how it works and adding an enemy spawn location to every room with then week 13 fixing the enemy spawn location.

This is the spawner object in the rooms parent class it’s just a simple plane which I have moved to suitable places in each room.

This is in the function in the rooms parent class for spawning an enemy at the location of the spawner.

This is where the room spawned function is called from in the room gen controller which is when invalid room is false (when a room spawned isn’t overlapping another following the logic from before).

This is the enemy currently doesn’t have anything in it just a model and the basics needed for ai later (character movement component).

However currently there is a problem where it spawns off centre currently but that should be an easy fix. Also as can be seen in the screenshot there is also a text render in each room that displays what room you are currently in (mostly for testing purposes).

This is the code that does that just setting the text of the text render to the object name of itself (the name of the spawned actor instance).

Fixed enemy spawn location.

This is part of the fix for the spawn enemies which gets the world transform of the spawner from the spawned actor.

This spawner location is then set to the spawn transform of the spawn enemy actor in the room parent class.