autoloads (godot)

Created: Jul 22, 2022Published: Mar 28, 2023Last modified: Apr 05, 2023
No tags
Word count: 17Backlinks: 4

Autoloads are global, automagically-loaded gdscript modules.

They're quite convenient for sharing code across gdscript files!


Backlinks

I'm going for namespace helpers in godot, like clojure namespaces.

Via autoloads.

Just a bunch of functions, ideally stateless

but could be APIs for controlling some stateful thing

if the design is good tho, we don't tie things up too much

let the consumer pull in both namespaces

avoid the cross dependencies, or merge them if they're coupled

Sunday Funday

A Dino game.

---

I landed on 'HatBot' to name the entry for the Metroidvania Month (jam) 19.

Named after the main character, who runs around in a floppy mad hatter hat.

Also called: mvania19 (dino game) for the first half of the jam.