iShellz Posted March 20, 2014 Share Posted March 20, 2014 Used BMFont to create the XML Link to comment Share on other sites More sharing options...
Videlais Posted March 20, 2014 Share Posted March 20, 2014 @iShellz: CocoonJS doesn't have any XML support when run in Accelerated mode. If you absolutely need XML support, you can add it back in via this library I've written. If it is loaded before Phaser is, it will act in place of XML support for CocoonJS. (I've confirmed it works with BitmapFonts in Phaser, but is still a work-in-progress for other XML needs.) blackgames and mariogarranz 2 Link to comment Share on other sites More sharing options...
mariogarranz Posted March 20, 2014 Share Posted March 20, 2014 @iShellz: CocoonJS doesn't have any XML support when run in Accelerated mode. If you absolutely need XML support, you can add it back in via this library I've written. If it is loaded before Phaser is, it will act in place of XML support for CocoonJS. (I've confirmed it works with BitmapFonts in Phaser, but is still a work-in-progress for other XML needs.) Man, you deserve a statue. Link to comment Share on other sites More sharing options...
iShellz Posted March 20, 2014 Author Share Posted March 20, 2014 @iShellz: CocoonJS doesn't have any XML support when run in Accelerated mode. If you absolutely need XML support, you can add it back in via this library I've written. If it is loaded before Phaser is, it will act in place of XML support for CocoonJS. (I've confirmed it works with BitmapFonts in Phaser, but is still a work-in-progress for other XML needs.) This was mainly a test because in the 2.0 release notes it said BitmapText now uses the new XML parser which should work under CocoonJS without clashes. Link to comment Share on other sites More sharing options...
rodrigogrow Posted April 3, 2014 Share Posted April 3, 2014 @iShellz: CocoonJS doesn't have any XML support when run in Accelerated mode. If you absolutely need XML support, you can add it back in via this library I've written. If it is loaded before Phaser is, it will act in place of XML support for CocoonJS. (I've confirmed it works with BitmapFonts in Phaser, but is still a work-in-progress for other XML needs.) Hi Videlais, I tried to use your library, but I have no success. I got the error below when I load a bitmapFont in Phaser 2.0.2: this.game.load.bitmapFont('desyrel', 'assets/fonts/bitmapFonts/desyrel.png', 'assets/fonts/bitmapFonts/desyrel.xml'); Uncaught TypeError: Cannot call method 'getAttribute' of undefined phaser.js:41934 Phaser.LoaderParser.bitmapFontphaser.js:41934 Phaser.Cache.addBitmapFontphaser.js:39563 Phaser.Loader.xmlLoadCompletephaser.js:41786 _xhr.onload Link to comment Share on other sites More sharing options...
Videlais Posted April 3, 2014 Share Posted April 3, 2014 @rodrigogrow: Sorry about that. I haven't updated the code recently to fix problems like that. Unfortunately, I'm now waiting to see what CocoonJS 2.0 offers and if my library is even needed. Until I get a chance to update it with 2.0 information, this thread is the most accurate as of this writing. (It suggests, as I do until my library is fixed, that you use either RetroFonts or the alternative JSON loader another post details.) rodrigogrow 1 Link to comment Share on other sites More sharing options...
rodrigogrow Posted April 3, 2014 Share Posted April 3, 2014 @rodrigogrow: Sorry about that. I haven't updated the code recently to fix problems like that. Unfortunately, I'm now waiting to see what CocoonJS 2.0 offers and if my library is even needed. Until I get a chance to update it with 2.0 information, this thread is the most accurate as of this writing. (It suggests, as I do until my library is fixed, that you use either RetroFonts or the alternative JSON loader another post details.) Thanks @Videlais for your feedback! Seems that CocoonJS 2.0 Beta was lauched today (http://blog.ludei.com/html5-apps-phonegap/). Link to comment Share on other sites More sharing options...
PXBILL Posted August 24, 2014 Share Posted August 24, 2014 @Videlais what i will do without you!!! XD Link to comment Share on other sites More sharing options...
Recommended Posts