melonjs / melonJS

a fresh, modern & lightweight HTML5 game engine
https://melonjs.org
MIT License
5.93k stars 643 forks source link

Support for Spine2D #1081

Closed dynamo-foundation closed 2 years ago

dynamo-foundation commented 2 years ago

If you are submitting a bug report, please respect the below template :

OS platform / Browser

Any

melonJS version

10

Bug description

Add support for Spine2D

Steps to reproduce the bug

I'm ready to start development on this - how do you want to organize / coordinate?

Console log Extract

to show possible exception/errors raised by the engine or the browser

How to enable/use the console log
obiot commented 2 years ago

I suggest you start working on it on your side until you feel you have something ready to share that we can work on together if needed.

[EDIT] all the preloading of spritesheet and json parsing is already in melonJS, so in theory, all we are missing is the rendering. See for example here (https://github.com/melonjs/examples/blob/master/shapes/js/resources.js#L13) we preload a Json from a physic editor, and use it there (https://github.com/melonjs/examples/blob/master/shapes/js/entities/entities.js#L17) but it could be from anything actually.

my suggestion would be to do a plugin, like for the older version. I would love to directly add it to melonJS, but the spine framework is actually quite big, and beside that I'm not how it would work in terms of license agreement, so maybe keeping it separated is easier.

also as you suggested, yes definitely go directly for the latest 4.0 runtime,

thanks for that !!!!! that would be huge & awesome to have proper support for Spine in melonJS :)

obiot commented 2 years ago

closing this one in favour of #1114, that better describe what to do !

obiot commented 1 year ago

FYI, here it is : https://github.com/melonjs/spine-plugin