Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Plugin developer docs

Focused, task-oriented documentation for extending a Phaser Editor v5 plugin. These docs are written to be useful to both humans and AI assistants — they explain which extension point to use and the pattern to follow, which the bundled types/*.d.ts cannot convey on their own.

AI agents: start with ../AGENTS.md, then come here.

Start here

Recipes

Each recipe is a copy-this-pattern guide tied to the working myplugin.example code:

Golden rules

  1. Everything is registered in registerExtensions(reg) via reg.addExtension(new SomeExtension(...)).
  2. Files in a plugin share one namespace — no import/export between them.
  3. The .d.ts files in types/ are the API source of truth. Grep them.
  4. A change isn't done until npm run build passes.