zorkind / Hellion-Rescue-Project

54 stars 7 forks source link

Main Menu / In Game scenes split up #279

Closed zorkind closed 3 years ago

zorkind commented 3 years ago

Is your feature request related to a problem? Please describe. Yes, the code was all in only 1 scene and 1 class, very procedural in nature and a mess. It was causing memory leaks and a hard time trying to clean up and keep states well defined.

Describe the solution you'd like This task has been started because of the difficulties to have a clean and meaningful code and well defined game states during game play.

When you join a server a new scene should be loaded containing all the required code and assets to the gameplay experience, nothing else, so the main menu should be unloaded and deactivated.

This is hard to do when you have only 1 scene and 1 class with the entire game code on it.

This will bring faster coding for future features and bug fixes, also the ability to change the UI interface in unity itself, without using code to do so which is the case in the moment.

So the task is to map out the entire UI into a new scene in Unity and make it work properly as it did in the original one, any rewiring that is necessary for the lack of a source code to actually see how it was done originally is ok, as long as it behaves as expected.

Describe alternatives you've considered None.

Additional context I have a very good unity project template from past version of the game and the current one, where i can dig the pieces i need to rebuild these scenes without issues, also i have acquired a good amount of knowledge and fill comfortable making these changes, but it does not mean it's easy, as i am doing this blindly guided only by fragments of what it originally was.