Productivity tools for Defold to make your life easier and coding experience nicer.
You will have less reasons to alt-tab between VS Code and Defold Editor because you can run your game, hot reload changed files, fetch libraries from VS Code.
- Lua code completion for Defold API and dependencies
- Teal code completion for Defold API
- Code completion for Defold URLs
- Asset Portal
- Build (run) your game
- Fetch libraries
- Hot reloading
- Open Defold Editor
- Create a complex Game Object file from Explorer context menu
- Generate manifest (reduce game bundle size) - also available in Defold Editor
Demo (Defold API)...
- Open a Defold project
- You should see a prompt to initialize the extension
or
- Press
Ctrl+Shift+P
(orCmd+Shift+P
) or go toView
>Command Palette
. - Select
Defold Buddy: Initialize
Known issues
For now the suggestions are not refreshed automatically when you make any changes to your .go and .collection files. For now you need to re-index them manually by running a command.
- Open a
.script
file, you should see suggestions after typing a"
, or pushingCtrl+Enter
with cursor next to a"
. - Run "Defold Buddy: Index game files for autocompletion" when you need to refresh the autocompletion
Demo...
- Press
Ctrl+Shift+P
(orCmd+Shift+P
) or go toView
>Command Palette
. - Select
Defold Buddy: Asset Portal
Demo...
Note: requires Defold editor running in the background
Note: you can set a hotkey for this command as well as for any other command
After .script
, .gui_script
or .lua
files are saved they are automatically hot-reloaded if the game is running.
Demo...
Note: read about hot reloading in Defold
- Open Defold editor
- Run your game via the editor
- Modify a .script file and save it, the modified file should be hot-reloaded
dmengine_JBeVQ3Yx0P.mp4
Create a Game Object file (.go) with components (sprite, script) and a factory file (.factory
) for that Game Object with less clicks
If you would like to collaborate, contribute or request a feature feel free to do it at Github
Manifest generation code was copy pasted from Defold App Manifest generator by britzl.
Annotations used in this extensions are generated with Defold Lua Annotations.