Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Some general/universal coding advice that I can give is to use comments creatively to creation "Sections.  Break up your code into sections that make sense to you so you can work faster/easier.

Personally, for work (and for ren'py) my code will have a lot of section headers like "#----------------------Such n Such Variables---------------------------".


Make them as wide as you want for visibility.  You could also have long headers as "Primary Sections" and then have shorter ones insider as "Sub-Sections".  Also, as a rule of thumb I say to separate specific lines of code by two spaces, to make it more visually obvious that "this is not part of that".  In Ren'Py specifically I use a variation of these technique to visually group "rooms" as seen below:

"#-----------------------------MC House - Upstairs Bedroom One----------------------------------"

etc.