From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 16 Dec 2022 17:45:03 -0600 Subject: change structure for new pyssg version --- live/blog/g/godot_project_structure.html | 268 +++++++++++++++++++++++++++++++ 1 file changed, 268 insertions(+) create mode 100644 live/blog/g/godot_project_structure.html (limited to 'live/blog/g/godot_project_structure.html') diff --git a/live/blog/g/godot_project_structure.html b/live/blog/g/godot_project_structure.html new file mode 100644 index 0000000..3727da0 --- /dev/null +++ b/live/blog/g/godot_project_structure.html @@ -0,0 +1,268 @@ + + + + + + + +General Godot project structure -- Luevano's Blog + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ +
+

General Godot project structure

+ +

One of my first issues when starting a project is how to structure everything. So I had to spend some time researching best practices and go with what I like the most and after trying some of them I wanted to write down somewhere what I’m sticking with.

+

The first place to look for is, of course, the official Godot documentation on Project organization; along with project structure discussion, also comes with best practices for code style and what-not. I don’t like this project/directory structure that much, just because it tells you to bundle everything under the same directory but it’s a really good starting point, for example it tells you to use:

+ +

Where I would prefer to have more modularity, for example:

+ +

It might look like it’s more work, but I prefer it like this. I wish this site was still available, as I got most of my ideas from there and was a pretty good resource, but apparently the owner is not maintaining his site anymore; but there is this excelent comment on reddit which shows a project/directory structure more in line with what I’m currently using (and similr to the site that is down that I liked). I ended up with:

+ +

And so on, I hope the idea is clear. I’ll probably change my mind on the long run, but for now this has been working fine.

+ + + + +
+ +
+ + + + \ No newline at end of file -- cgit v1.2.3-70-g09d2