Use c++ in defold to make games

i used c++ for 2 years and I used sfml and I made some games in it I just want to know can I use c++ to make games in defold

Our main scripting language is Lua, and that is how you control the engine.
While we do have a C++ SDK to help extend the engine, that is also the sole purpose of it.
We do not have it as a goal to make games using only our C++ SDK.

ok thanks

@sergey.lerg is using the c++ sdk to build games afaik

2 Likes

Yes, I use C++ to write a game. You have to have some extensive knowledge of the engine to be able to write games in C++ with Defold so I wouldn’t recommend it.

4 Likes

ok

i will need to build the source code i guess i already have some knowledge in engine programming but i never saw the defold source code i will try to look through the source thanks for youre reply

1 Like

This might help you with first steps :wink:

Also, I believe it’s good at first to start with extensions :wink:

I imagine, the simplest way is to write a script in which you can use your native extension in Defold life-cycle functions, something like:

 function init(self)
    myextension.init()
 end

 function update(self, dt)
    myextension.update(dt)
 end

etc :wink: Step by step, I believe you can do it, you already made a lot in Defold in a very short period!

2 Likes

thank you

1 Like

Defold builds the source code for you, you don’t have to build yourself.

1 Like

ok