defold (official)
defold/codepad
A browser-based Defold code editor with live preview and console, usable as a
stand-alone page or embedded in another web page. It includes an HTML5
template, static web resources, attachable go.script and gui.gui_script
files, and the codepad.codepad Lua module.
Lua API not typed — upstream ships no .script_api, so resolve skips it.
- GitHub: defold/codepad — pinned to
1.2.0(released while Defold 1.2.175 was current)- Pick a release from defold/codepad releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Set
codepad/template.htmlas the HTML5 template. - Add
/codepad/bundle_resources/to Bundle Resources. - Require
codepad.codepadfrom a script. - Forward
codepad.init(self, scenes),codepad.update(self, dt)andcodepad.on_message(...)from the script's lifecycle functions.
- Pick a release from defold/codepad releases and add its Source code (zip) URL (or a packaged
Engine APIs
It runs only in a browser and talks to the page through
html5. Each editable scene is loaded through a
collectionproxy.