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

DAABBCC – Dynamic AABB Tree + Experimental Collision Detection Native Extension for Defold Engine

DAABBCC is a C++ wrapper of AABB.cc and tinyc2 libs for Defold Engine.

Basically, it is a dynamic bounding volume hierarchy (BVH) using axis-aligned bounding boxes (AABBs). The data structure provides an efficient way of detecting potential overlap between objects of arbitrary shape and size and is commonly used in computer games engines for collision detection and ray tracing.

Continue reading “DAABBCC – Dynamic AABB Tree + Experimental Collision Detection Native Extension for Defold Engine”