Hi all!
I recently started to discover Defold and I really liked how simple and on-point the engine is. I would like to work more on Defold but as someone who has the c/c++ background I would really love to work on my game using c++ due to me feeling much more comfortable working with. So, naturally, I tried the Native Extensions and was able to make it work without any effort!
The only thing that I’m missing is being able to work using an editor or preferably IDE that I’m familiar with. Is this possible? Is there anyway to work with native extensions in an IDE with having all sweet features like code navigation, auto completion and etc… ?
If I understood correctly, then yes—you can download the dmSDK header files and use a compiler_commands.json
for clang. That should work with almost any IDE that supports C/C++. You can also set up a local Extender server to speed up build times.
I personally use Sublime Text to develop extensions with dmSDK, Lua, and compiled Defold libraries outside the Defold extension build system, without bootstrapping the engine. However, at some point, you’ll need to use the extension system if you want to work with things like gameobjects, factories, input, or other parts of the engine context.
For me, it’s easier to start outside the Defold extension system, mainly because it allows for easier debugging and faster iteration.
I’d also like to point out that the dmSDK for C/C++ is not yet feature-complete
That answers my question! Thank you so much!