Defold API for Visual Studio Code

Full api snippets for Defold Engine. It is available on Marketplace. Initial release is based on API version 1.2.137. :cowboy_hat_face: All functions, messages and properties are separated, includes parameters and brief descriptions.

Defold community page: 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 are with quotation marks

“scale”

“position”

Recommended Settings & Extension

  • Add .script files to your settings

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

  • Install vscode-lua: Lua for Visual Studio Code. Provides Intellisense and Linting for Lua in VSCode

Leave a Reply