Jump to content

Phaser + Intel XDK + bitmapFont loading error


Recommended Posts


I'm using Intel XDK v2807 and the included Phaser version is v2.1.1. In preload I'm trying to load bitmapFont like this:

this.load.bitmapFont('font', 'asset/fonts/fontname.png', 'assets/fonts/fontname.fnt');

Using XDK built in Debugger there is error:

Failed to load resource: the server responded with a status of 404 (Not Found)

Uncaught Error: Phaser.Loader. Invalid XML given phaser.min.js:16b.Loader.xmlLoadComplete phaser.min.js:16_xhr.onload phaser.min.js:16

I checked from disk and the files are in correct locations. The fonts work if I make normal browser based game using Phaser 2.3.0 or 2.4.4. Font is created with Littera.

Any ideas why bitmapfont loading is not working? There is other threads about Cocoonjs and XML problems, but this is not Cocoonjs.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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