schellingb / ZillaLib

Sleek multiplatform C++ 2D and 3D game creation!
https://zillalib.github.io/
zlib License
109 stars 8 forks source link

Examples for 2D ragdoll animations? #19

Open tobybear opened 4 months ago

tobybear commented 4 months ago

In the feature list it says under animation: "Bone based physics for 2D ragdoll animations"

I assume this is done via the Spine library that is provided (optionally) in the project builder. Is this correct? Are there any samples or sample games that show how to integrate or use this feature?

schellingb commented 3 weeks ago

First of all (and it's a bit silly to say that now because I already replied to your newer post) thanks for checking out ZillaLib :-) Sorry for my late reply! Sadly this project does not get much love from me even though I still use ZillaLib up to twice a year (just a few weeks ago for https://ldjam.com/events/ludum-dare/56/tinyzilla).

What that "Bone based physics for 2D ragdoll animations" is about is ZL_Model.h which was originally made decades ago for an online multiplayer beat-em-up game that I made with some friends that never progressed very far. Actually later after that, I started ZillaLib and the very first game was a game for the then very new phone app stores called "Jumpzilla" that I actually sold but of course it didn't sell great. It didn't even make the cost of the app store accounts back :-) But that used that same 2D animation system.

I noticed that neither Jumpzilla nor another simple demo using ZL_Model has made it onto GitHub. It looks like I made a few more prototypes that use it called "Gatezilla", "Castlezilla", "Buildzilla" and "Soccerzilla" but out of them only Gatezilla was released but it does not seem to be anywhere on the internet anymore. ZL_Model uses some custom XML format that probably is very unintuitive to build a character and animations with because there aren't any tools for it so I think I used to hand-write them in a text editor.

The Spine integration was written a bit later (looks like the files for that have a time stamp of 2013). Spine being commercial of course would have great tooling, but I'd assume Spine has evolved in the 11 years since so it probably isn't compatible anymore. If you want I'll gladly put up some of those prototypes and game jam games onto GitHub. Though it mostly would be a time capsule for and of myself from 10 or 15 years ago :-)

tobybear commented 3 weeks ago

Interesting read, thanks :) And yes, I would definitely be interested in seeing other samples from you. From time to time I stumble upon functionality in ZillaLib that is never used in any of the samples or documented properly, so I'd happy to check out some stuff, no matter how old. I work on my custom ZillaLib branch that I extend with my needs, mainly in the audio/music/DSP area, but with the ultimate goal to also use it as a custom game engine. I think ZillaLib still holds up great and has potential. :)