This skill helps an agent structure, wire and verify a Defold 1.14 game. It reads game.project and the main collection first, edits the right file type, checks resource references with a bundled Python script and builds with Bob.
It covers the Lua script lifecycle, the input stack, addressing and msg.post messages, factories, collection factories and collection proxies. A gotcha list explains on_input that never fires, proxies that never load, Bob errors about missing collections and Java version failures.
What You Get
- A five-step workflow from inspecting game.project to editing files, running the checker, building with Bob and running a headless bundle
- Patterns for project references, collections and game objects, script lifecycle and properties, the input stack, addressing and messages, factories and proxies
- A Python checker that finds missing or wrong-case resource paths, missing compiled suffixes and requires without files
- Reference files with verified editor file formats and build and run commands, plus a gotcha list of Bob and runtime errors
Common Use Cases
- Fixing on_input that never fires
- Loading a level with a collection proxy that never sends proxy_loaded
- Repairing Bob build errors about missing resources
- Spawning bullets or enemy waves with factories
What Makes It Unique
The skill ships a read-only checker that finds the references Bob will fail on, including the compiled suffix mistake in game.project, before any build. It also insists that a build is not proof the game works and asks for a headless run with a required finishing line in the log.
Under The Hood
The agent loads the SKILL.md and, when needed, references on editor file formats and build commands. It runs a bundled Python script that reads the project’s text files, which its own description says is read-only and needs no Defold install. It edits Defold resource and Lua files in your project, runs the Bob jar with Java to build, and runs a headless engine bundle under a timeout, reading the log. Bob can fetch library dependencies and the references describe downloading the Bob jar. The headless engine opens local service ports, so one engine should run at a time.