{"author_name":"Jan Peter (jpdev)","cat":"LD #34","comments":[],"epoch":1449861240,"likes":0,"metadata":{"p_key":"12064","p_author":"Jan Peter (jpdev)","p_authorkey":"34367","p_urlkey":"47312","p_title":"Spriter & Phaser \u2013 Runtime","p_cat":"LD #34","p_event":"LD34","p_time":"1449861240","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"34367","us_name":"Jan Peter (jpdev)","us_username":"jpdev","event_start":"1449792000","event_key":"31","event_name":"LD34"},"text":"<p>Hi guys,<\/p>\n <p>While I used Spriter the last time I participated and it was also a Phaser based game, I was not using a runtime.<\/p>\n <p>I had exported the animations to a spritesheet.<\/p>\n <p>This week, I found a TS Spriter+Phaser runtime implementation here:<a href=\"https:\/\/github.com\/SBCGames\/Spriter-Player-for-Phaser\">\u00a0https:\/\/github.com\/SBCGames\/Spriter-Player-for-Phaser<\/a><\/p>\n <p>With some changes (I am using webstorm, not visual studio &#8211; so i have a different typescript compiler than the author) I got it up and running. &#8211; for example I had to remove all properties and replace them with get\/set methods to compile the ts.<\/p>\n <p>This is a link to a gif showing a working spriter animation:<\/p>\n <p><a href=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/12\/runtimedemo.gif\"><img class=\"alignnone wp-image-509696 size-thumbnail\" src=\"http:\/\/ludumdare.com\/compo\/wp-content\/uploads\/2015\/12\/runtimedemo-150x150.gif\" alt=\"runtimedemo\" width=\"150\" height=\"150\" \/><\/a><\/p>\n <p>I put it all into one js file (and a minified version) so it can be used in any phaser js project. (I also added a d.ts file, so it&#8217;s useable in TS Phaser Projects.)<\/p>\n <p>This download includes the resulting lib and a complete test project:\u00a0<a href=\"http:\/\/jppresents.net\/static\/files\/ld34ressource\/SpriterRuntimeTest.rar\">http:\/\/jppresents.net\/static\/files\/ld34ressource\/SpriterRuntimeTest.rar<\/a><\/p>\n <p>I will most likely use this in my game tomorrow.<\/p>","time":"December 11th, 2015 2:14 pm","title":"Spriter & Phaser \u2013 Runtime"}