For veteran people, how do you organize your projects and what aspects do you take into account?
The organization of assets and folders is essential, suppose we are facing an RPG with many assets, what would be better? 1 folder with a huge amount of assets(tiles) inside? or several folders with "batch" assets?
Also apart from (tiles) we have other types of assets (sounds, musics, scripts, etc...) Creating 1 specific folder for these is normal and putting everything related inside, but is there anything else to keep in mind?
Finally, how does Godot "Search" the files in your folders and what criteria or conditions does it apply? How can I know that?
How to better organize the project?
- Edited
One thing you may want to keep in mind is if you make an "art" folder, it can end up being a pain, when searching in the Filter Files box, all your first results will be there. For example you make an NPC called "crash-bot" and want to find the code for it searching "crash", you'll see all the art assets first which could take up the whole screen, and you have to scroll way to the bottom to find the .gd or .tscn file, or click on a tiny button to collapse the art folder
- Edited
One thing I am finally getting better at is naming files. Make your stuff easy to search for. For the nouns in the name, arrange from most to least common. Like if it's a water shader for urine, name the file shader_water_pp. Another two might be shader_water_icey and shader_water_shallow. With those names, you can just search for shader, then you can further narrow it down with _water or whatever you have.
And boom! Just like that- now you don't have to worry about what's in each folder or how the folders are organized. (though some good organization there is nice too).
Erich_L Hello, I believe a good structure of all, with names of file and folder organization like follow: [https://photos.app.goo.gl/ndwnTByoHmqXg74Q9]
Mantain it only with the really needed things for the game.
Yep, as others have already point out, lots of folders and good naming practices, it's one thing if you're doing it all internally and by yourself but if you think there might be the slightest chance other people will read your code especially you have to write it in such away it makes sense.
Shorthand is okay in some cases, but in my style of coding I quite like being quite verbose and while yes it does make the custom variables you use longer it ensures people know what the hell is going on which I think a lot of programmers are guilty of, even worse is when you see the old a + b routine and there's zero real context for any of it. Basically when you organise it, no matter how you do it make sure it is all as obvious and consistent as possible. I plan on being fairly open with my projects and what I do so I know people are going to check my stuff out and operate on that principle. If modders needed to look at stuff it's not going to help them if my code is a total mess and they don't know what custom coded stuff goes where.
Thank you very much for the answers, in my case I group the assets by Acronyms of words together with a number, it still hasn't reached the "chaotic" point but I would say that adding a couple more folders doesn't bother much, at least that way I can ensure that it "discriminates" better when selecting the destination folder! No need to read the entire list until you find it!
P.d Thank you very much really, it was quite nice to read your answers with a coffee xdxd w
- Edited
ElementerTheDragon
Casual forum browsing or web surfing is my favorite morning pastime while the coffee kicks in.
To actually answer the question, I found this dude's blog a while back. Sometimes it helps, sometimes it doesn't. It depends on the project.
:-)
Edit:
you see, i hadn't even made coffee yet. I forgot to post the link
https://new.pythonforengineers.com/blog/how-to-structure-your-godot-project-so-you-dont-get-confused/