Defold API for Visual Studio Code

Full api snippets for Defold Engine is available on Marketplace.  All functions, messages and properties are separated, includes parameters and brief descriptions.

Marketplace: https://marketplace.visualstudio.com/items?itemName=selimanac.defold-vsc-snippets
Defold Community:
 https://www.defold.com/community/projects/121893/
Github: https://github.com/selimanac/defold-vsc-snippets

Ordered Tabstops

Message generation

play_sound -> msg.post(receiver, "play_sound", {[delay], [gain]})

model_animation_done -> msg.post(receiver, "model_animation_done", {animation_id, playback})

Properties with quotation marks

"scale"

Release Notes

1.1.4

  • API version 1.2.138
  • Missing functions, methods and properties are added properly.
  • Properties added to the body.

(Sorry for the version numbering, vsce publish minor cause this )

1.0.2

  • Missing functions, methods and properties are added.
  • Args added to the list.

1.0.0

  • Initial release based on API version 1.2.137.

Recommended Settings & Extension

Add .script files to your settings

"files.associations": { 
    "*.script": "lua", 
    "*.gui_script": "lua", 
    "*.render_script": "lua" 
}

You can use those extensions with this snippet: