Defold Buddy
Tools for Defold to make your life a bit easier and coding experience in Lua nicer.
Features
IntelliSense
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: Initialize
.script
and .lua
files
Autocompletion for Defold URLs in
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 runnin a command.
- Open a
.script
file, you should see suggestions after typing a"
, or pushingCtrl+Enter
with cursor next to a"
. - Run "Defold: Index game files for autocompletion" when you need to refresh the autocompletion
Run "Project > Build" from VSCode
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
Hot reloading after .script and .lua files are saved
Demo
Note: read about hot reloading in Defold
- Open Defold editor
- Run your game
- Modify a .script file and save it, the modified file should be hot-reloaded
dmengine_JBeVQ3Yx0P.mp4
.go
+ .script
+ .factory
files from Explorer context menu
Create
Generate manifest (reduce game bundle size)
Credit
- Manifest generation code was copy pasted from Defold App Manifest generator by britzl.
Resources
- Annotations used in this extensions are generated with Defold Lua Annotations.