OtagoPolytechnic / Studio5-6-Game

GNU General Public License v3.0
2 stars 0 forks source link

Randomize Item Spawning #51

Closed ChaseBENNC9 closed 1 month ago

ChaseBENNC9 commented 2 months ago

Describe your changes

I have modifed the code from the key generation to allow the cat shop and the Treasure chests to be randomy generated into different rooms.

Additions

There is a limit to one item per room for the generation. The items that are randomised are

I have manually placed the treasure chests in the scene but they do change positions. The script requires the items to already exist in the scene. If there is too many items to sort into the rooms the script will log an error message that explains where the issue is it and shouldn't continue any further.

Issue number and link

Checklist before requesting a review