Moving Moth & Lantern to a newer Godot
· notes
Moth & Lantern was built in a hurry in 2025 and nobody touched it since. This winter we opened it in a newer Godot to show it to a friend, and it mostly worked, which was suspicious.
The things that actually broke:
- light occlusion on the village houses — rewritten with simpler polygons;
- the moth flocking script, which relied on a physics quirk we never understood;
- our own input mapping, because apparently we had hardcoded a gamepad.
The flocking is now a boring for loop with three rules: stay close, avoid walls, follow the light. It looks better than the clever version did.
Lesson: jam code is fine as long as you never plan to open it again.