Jump to content

Phaser + Intel XDK + bitmapFont loading error


ith
 Share

Recommended Posts

Hi,

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)

http://127.0.0.1:58889/http-services/emulator-webserver/.../platforms/android/assets/www/assets/fonts/fontname.fnt

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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