mikatuo / vscode-defold-buddy

Productivity tools for Defold to make your life easier and coding experience nicer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Defold Buddy

Tools for Defold to make your life a bit easier and coding experience in Lua nicer.

Features

IntelliSense

Demo (Defold API)

  1. Open a Defold project
  2. You should see a prompt to initialize the extension

or

  1. Press Ctrl+Shift+P (or Cmd+Shift+P) or go to View > Command Palette.
  2. Select Defold: Initialize

a138ae9600cd0fa1d520bb4fbb8f33c897f3aa8f

4cf75769ac699bbe2e1242fd9f6af705ccb29816

213931566-78acccca-6335-4407-8e1a-3ab000899525

Demo (project dependencies)

2647bce06606342c31c08006257d11e0173b23f5

Autocompletion for Defold URLs in .script and .lua files

Demo

Note: read about the addressing if you are not familiar with the concept

fb28a66cc769e7ccf8135deb9bfc110bbbf2eb6a

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.

  1. Open a .script file, you should see suggestions after typing a ", or pushing Ctrl+Enter with cursor next to a ".
  2. 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

81887c48d3bad6b29c9dbb49bea0c179d652cb05

Hot reloading after .script and .lua files are saved

Demo

Note: read about hot reloading in Defold

  1. Open Defold editor
  2. Run your game
  3. Modify a .script file and save it, the modified file should be hot-reloaded
dmengine_JBeVQ3Yx0P.mp4

Create .go + .script + .factory files from Explorer context menu

Demo

147121c5ed7f8954862f3a27fee4cf8cf1efaa16

Generate manifest (reduce game bundle size)

Demo

You can generate the app manifest from Defold editor:

fc6f5813cdea82f6a8f264f7634f3b28855e6a3f_2_408x429

Or from VSCode:

8ea1248ec0f937778e9e3645a4158209fb53ada0


Credit

Resources

About

Productivity tools for Defold to make your life easier and coding experience nicer

License:MIT License


Languages

Language:TypeScript 100.0%