DragonBones to Defold Engine Workflow

Spine is a great tool for sure. But if you are a poor game dev like me, $299 price tag is too much ūüôā There is a free alternative called DragonBones. DragonBones is not the open source project(gladly) and developed with good-old-gold Adobe Air using Flex. Flex is a quite old tech and¬†DragonBones has problems especially about the Spine exporter.

Defold has build-in Spine support  with limitations. So we can export anims as Spine json from DragonBones and use them in Defold right?
Nope, it is not that easy. Mostly, DragonBones’s Spine exporter just cause problems. For example; latest version of DragonBones(5.6.1) doesn’t export the size information for Spine.

So how can we fix this? Before we start, you need DragonBones Tools.  Tools is a command line json converter.  You can convert Spine json to DragonBones json or vice versa. But most importantly it is written with TypeScript, open source and updated more frequently than DragonBones itself. If you have a problem with Tools you can simply fix it by yourself. But the Tools is not very well documented and converting files little tricky.

Let’s start…

Continue reading “DragonBones to Defold Engine Workflow”

Tic Tac Toe Multiplayer Example for Defold Engine using Colyseus

I ported the Endel Dreyer’s Colyseus example tic-tac-toe to the Defold. Server code is as it is, but I made slightly changes on client side code.
Sorry if I made a terrible design decision, feel free to shout them on my face :expressionless:

You can download the project from github.
Github: https://github.com/selimanac/defold-colyseus-tic-tac-toe

Continue reading “Tic Tac Toe Multiplayer Example for Defold Engine using Colyseus”

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:
Github: https://github.com/selimanac/defold-vsc-snippets

Continue reading “Defold API for Visual Studio Code”

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.

Defold Assets: https://www.defold.com/community/projects/98525/
Continue reading “DAABBCC – Dynamic AABB Tree + Experimental Collision Detection Native Extension for Defold Engine”