Jump to content

Noob node.js setup question


bazfer
 Share

Recommended Posts

Hello,

Working on initial setup, trying to display the Phaser logo using node.js and express for my local server.

So, I got it to display the black back ground, which means the route is correctly displaying the index.html. The phaser logo is, however, showing as missing even though the path is correct.

What am I missing? See screenshots.

Thanks.

Screen Shot 2017-02-27 at 12.33.34 AM.png

Screen Shot 2017-02-27 at 12.35.27 AM.png

Link to comment
Share on other sites

11 minutes ago, drhayes said:

You shouldn't need to start the loader manually at all by calling "game.load.start()". Where did you put that that your code started working?

 function preload() {
                game.load.image('logo', '/phaser.png');
                game.load.start();
            }

 

Link to comment
Share on other sites

Yeah, quoting from the docs for Phaser.Loader.start:

Quote

Start loading the assets. Normally you don't need to call this yourself as the StateManager will do so

So that's weird. Can you use 2.6.2 instead of 2.5? See if there was a bug there, or something?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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