L2L2L Posted July 1, 2015 Share Posted July 1, 2015 Where does phaser parse the XML document that contain the text location for the bitmap font sprite-sheet image?Where does it use this information to render the sprite font to the screen from the image?I tried to follow it, and as far as I can tell it use a native implantation to parse the XML URL or XML string, than it store it.Where does it retrieve this parse XML document and than extract the data needed to locate the correct text sprite from the image, than render it to the screen aka canvas?I might edit this later... Link to comment Share on other sites More sharing options...
rich Posted July 1, 2015 Share Posted July 1, 2015 The file src/loader/LoaderParser.js Phaser.LoaderParser.xmlBitmapFont is the method that parses the xml. This is called automatically by the loader once the font has loaded. Link to comment Share on other sites More sharing options...
L2L2L Posted July 2, 2015 Author Share Posted July 2, 2015 The file src/loader/LoaderParser.js Phaser.LoaderParser.xmlBitmapFont is the method that parses the xml. This is called automatically by the loader once the font has loaded.Oh wow thanks!!! Link to comment Share on other sites More sharing options...
Recommended Posts