Week 9 Friday Game resetting if Generation failed.
Week 9 Friday Game resetting if Generation failed. Yesterday after writing down the algorithm (for the conditions in which the PLG knows the level has failed) I implemented and it worked with the first attempt. Next up was a way to reset and start again the level generation. the most painless process is reloading the scene so you reset the variables and make sure all components have been deleted. I encountered a problem though after the initial attempt when the scene is reloaded the source light does not seem to work. I thought for some reason the light needed to be in outside the scene. but that did not seem to work. I also realized that the light source would probably change and it is not needed to be placed at the beginning of the scene but way after after the loot and enemy placement. For visibility though I have scripted so you assign a lightsource prefab that is placed right after we get a good level. Below is a test run were I have put the exit scan line too far awa...