Project organization

I'd like to cover many things on this topic, so here's a list showing which article's available and what's planned.

Available

  • Using "global names"
    Construct does not have enums and uses string literals in some places where an enum would be more convenient. Here's a way to get almost all benefits of enums.
  • Sheet management
    A system composed of top level or "main" sheets, action sheets, function sheets, value sheets and actual event sheets.

Planned

  • Object & family conventions
    Naming and grouping, typical hierarchies, instance variable and custom action usage
  • Global object(s)
    Also known as the level or game manager object, a singleton, or autoload in Godot-land. I use it to keep state between layouts, run timers and value tweens not related to objects and a few other minor things.
  • Code reuse and structuring
    How and when I use functions, custom actions and event groups.

 

This article was updated on

Related posts