Jump to content

where phaser parse and render text


L2L2L
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...