• Editor
  • Runtime for Moai SDK?

Hey Everyone -

I'm using Moai for my new game project. I have a need for Skeletal Animations and would really love to use Spine. Does anyone know if there is already a Spine engine for Moai (C++ or pre Lua)? My Google searches have turned up nothing but my google-foo often fails me.

I can roll my own if I have to, but would much rather start with one that's already built 🙂 I only say that because if I have to do it I'll probably do it in pure lua rather than C++ (I hate C++ and will avoid it all costs, lol) which is probably where it belongs 🙂

Many thanks in advance!

Related Discussions
...
  • Изменено
Nate написал

There's spine-c, the official C runtime.
https://github.com/EsotericSoftware/spi ... er/spine-c
See SFML, cocos2d, and cocos2dx runtimes for example usage.

You might tweet this guy:
https://twitter.com/tangzero/status/319266180768608256

I've been looking through the spine-c and spine-cocos2dx sources, trying to learn how I might be able to implement it for Moai. Thanks for pointing out that tweet, I'll reach out to him!

Thanks for the super quick reply!! 🙂

jaylach - did you get any response from tangzero regarding this?

bitraven написал

jaylach - did you get any response from tangzero regarding this?

No but I was pointed to his github repo on the Moai forums. His implementation is pure Lua and require Hanappe but it's a start at least.

https://github.com/tangerinagames/spine-hanappe

jaylach, if you need help dont be afraid to tweet me. The pure MOAI implementation its a piece of cake.

TangZero написал

jaylach, if you need help dont be afraid to tweet me. The pure MOAI implementation its a piece of cake.

Thank you TangZero. I'll be taking you up on this as I'm looking to implement an almost pure Moai version. I'm not using hannape but instead a micro wrapper around Moai that I wrote. Your implementation is a great start for me though!

jaylach,

this is an example of how to use spine-hanappe without hanappe :wonder: https://gist.github.com/tangzero/5342036

You need the corona and my implementation in the same folder.
Something like this:

-project/
    |

---

spine/ -> the corona implementation
    |

---

spine-hp/ -> my implementation
    |

---

data/ -> assets folder
    |

---

json.lua -> json module fallback
    |

---

main.lua
TangZero написал

jaylach,

this is an example of how to use spine-hanappe without hanappe :wonder: https://gist.github.com/tangzero/5342036

You need the corona and my implementation in the same folder.
Something like this:

-project/
    |

---

spine/ -> the corona implementation
    |

---

spine-hp/ -> my implementation
    |

---

data/ -> assets folder
    |

---

json.lua -> json module fallback
    |

---

main.lua

Oh man, you're awesome! Thanks very much for this!

With your library, and now this, you're going to save me a ton of work!

With that said, would it be possible (have you tried it?) to add a full skeleton to a prop so that I can move the prop and the skeleton moves with it?

Good question... :sweat:

TangZero написал

Good question... :sweat:

Haven't tried it yet, but looking through the code it looks like where you create the prop for the texture (inside attachmentLoader function), I could probably just add that prop to the parent prop. I could then define that parent prop somewhere (I'd probably wrap all that in my own SkeletonEx class).

I'll give it a shot in the next couple days and let you know if that works!

Thanks again!!

Jaylach, Nate and community,

I recently released a pure MOAI runtime for Spine.
https://github.com/tangerinagames/spine-moai

Now, is possible to use Spine with MOAI, Hanappe, Flower, RapaNui, etc.

I would be honored to have my project in the Third Party Runtimes list.

I've added it to the third party list. Thanks for the contribution! 😃