Page 1 of 1

Any python/ren'py gurus coul help with dragonbones bindings?

Posted: Sat Jun 19, 2021 11:04 am
by lobotomista
So dragonbones is a free and open source 2D skeletal animation program, with binding for many programs and progrmming languajes. Sadly python and ren'py are not one of them.

I would love to use dragonbones for my game but my expertise is mostly in other programming languajes, and just recently (this week) I started to learn python. So at best I could try to port the C# bindings to python and hope for the best. But from there I have no idea how would I make ren'py bindings.
It's my understanding that ren'py is made with some quasi-hybrid pygame made by pytom, wich is in itself a wrapper for SDL, so maybe the C++ bindings could be accessed with this? I'm afraid my knowledge of python is way to basic to understand this.

Any orientation/help anyone can offer?

Re: Any python/ren'py gurus coul help with dragonbones bindings?

Posted: Tue Jul 13, 2021 10:17 pm
by Spiky Caterpillar
If dragonbones has *plain C* bindings, I think accessing them through ctypes will probably give you the best results. IIRC last time I tried to interface with a C++ DLL directly from Python I wound up getting weird crashes (because each C++ compiler has its own ABI, iirc.)

Re: Any python/ren'py gurus coul help with dragonbones bindings?

Posted: Tue Jul 13, 2021 11:42 pm
by Imperf3kt
I believe pytom has plans for a system similar. The Model displayable may be able to do this in future.


I think you can achieve it now though, using ATL and layeredimage though it is a fair bit of work depending on how much animation you need.