TheTrope Posted August 24, 2016 Share Posted August 24, 2016 Hello, Spine (Esoteric software) recently made spine-ts, and all the spine features are now available for HTML5. Since there is no official support of spine by Phaser, do you think there could be an easy way to integrate Spine into Phaser ? (With core or webgl module) I would be very interested in Phaser if it is the case. More information : http://fr.esotericsoftware.com/blog/spine-ts-released Thank you ! Link to comment Share on other sites More sharing options...
bapho Posted August 25, 2016 Share Posted August 25, 2016 Oh, maybe this is usable as it is. There's just no sprite management built-in via Phaser objects? So maybe you use this as you would with Howler? Link to comment Share on other sites More sharing options...
TheTrope Posted August 25, 2016 Author Share Posted August 25, 2016 I'm not sure, the only solution i see there is to render spine objects in externals contexts, convert them to sprites and display them with Phaser. I didn't found so far on the docs, but is there a speaial container for Webgl or Canvas context for example? Link to comment Share on other sites More sharing options...
Str1ngS Posted August 25, 2016 Share Posted August 25, 2016 I maintain an unofficial Spine plugin for phaser over at https://github.com/orange-games/phaser-spine That plugin is already maintained in TypeScript, but the official JS runtime general runs behind the latest version of Spine. From what I can see I'll be updating Phaser-Spine towards using the spine-js runtime withint the next few weeks Link to comment Share on other sites More sharing options...
TheTrope Posted August 25, 2016 Author Share Posted August 25, 2016 Hi! I already saw your spine plugin, great work ! Take care : spine-js il the old official runtime : Spine-TS (written in typescript) is the new one, and support all the features of spine (Mesh deformation, blending, premultiplied alpha) I'm pretty sure there can be a way (like an adapter design pattern) to make spine-ts directly in Phaser. But i'm not competent enough with Phaser to find out the solution Link to comment Share on other sites More sharing options...
TheTrope Posted August 31, 2016 Author Share Posted August 31, 2016 @Str1ngS My bad, i thought Mesh deformation wasn't working, but it was because the goblins example is the old one ! You made my day ! Does your plugin support all the spine features (the ones that spine-ts support) atm? Link to comment Share on other sites More sharing options...
bapho Posted August 31, 2016 Share Posted August 31, 2016 @Str1ngS - Bro I left a new issue over at Phaser-Spine Github page over a bug I found regarding multipage textures. I've also replied to another one there and attached a sample of that setToSetupPose() not working for me. Link to comment Share on other sites More sharing options...
Recommended Posts