I'm going to start my second Ren'py game and this one will be a little bit more robust. The goal is to make a commercial publish and as such I can't afford to be sloppy with the code. Not even one bit. Unfortunately I'm not very agile with Python, I find it to way too relaxed and permissible.
So I came to ask what you guys do to keep your code in order, and also to ask what y'all think of these two basic ideas I have to organize the code:
*dab*Format One: All Separated
Each chapter will have five .rpy files:
- Chapter One
- chapter_one
- transformations_one
- images_one
- scripts_one
- screens_one
- Chapter Two
- same...
The idea here is to separate things as much as possible, so when I'm trying to figure out why the ATL is acting weird when I export in another resolution I can just go to transformation_chapter and figure it out there
- Recurring Assets, ATL, and Characters
- transformations_common
- images_common
- scripts_common
- screens_common
- Pros: Small files, when I have to adjust that one scene from chapter x I don't have to deal with 1000 surplus of lines
- Cons:
- Too many files can be just as bad to navigate as a gigantic file.
- I bet my pp the recurring folder will just become a titanic file by the end of the project.
Looking forward to see how y'all keep the mess that is coding in check.Format Two: All together
All the project's images will be on single rpy file, all the transformations will be in a single rpy file, etc...
- images
- transformations
- scripts
- screens
The idea here is to have everything filed by type and control F my way between the ones I need.
- Chapters
- chapter_one
- chapter_two
- etc...
- Pros: If I'm looking for a transform, I don't have to check 100 different files for it. It will be at transformers.rpy for sure
- Cons:
- over 1000 lines files
- No way to quickly land of the item I want, even if I try to separate with comment blocks