Jump to content

electron and phaser


fatalstrikes
 Share

Recommended Posts

  • 3 months later...

Hi fatalstrikes,

It might be a bit late for you, but it might help others, since I had the same issue.

Electron uses the file:// protocol to load the assets, so make sure your assets' path start with ./ so that it uses the current directory.

 

Example:

this.load.image('bg1', './img/game/bg/bg1.png');

Because just '/img/game/bg/bg1.png' will try to load file:///img/game/bg/bg1.png'

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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