Defold API for Visual Studio Code


#1

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

Sep-26-2018%2023-34-13

Message Generation

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

input_focus

clear_color

Properties with quotation marks

"scale"
"position"

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:

Json Parser

I build this snippet with a simple Python script. It parses all json files from api docs and converts them to single snippet file. It is available here. Feel free to update it.


#2

I’m waiting for this one, thx dude! :grin: :heart_eyes:


#3

Love initiatives as this, great job! :smiley:


#4

Ohhhh I guess so much people have been waiting for this. Thanks!


#5

Thank you for this great job!! :joy: