Organizing scene files
Now that we have more files to worry about, we’ll have to start being smart regarding how we organize them. Let’s separate scenes into different folders that make sense for our project. This way, we’ll always know where to find something or save a new scene.
Add the following folders in the root folder of our project:
parts
:environment
player
screens
:game
The parts
folder will contain all the scenes that are part of a different scene, such as the player, walls, enemies, collectibles, UI buttons, and so forth.
screens
, on the other hand, will contain all scenes that can stand on their own, such as the game screen, full-screen menus such as the main menu or pause menu, and so forth. These scenes are made up of scenes from the parts
folder.
At the beginning of the project, I gave you an assets
folder. This folder is used to hold all the art assets, from sprites to animations and sounds.
Now, move all scenes and...