fatalstrikes Posted September 27, 2015 Share Posted September 27, 2015 Hey guys, just started playing around with phaser a few days ago.One of the thigns i would like to try out is using electron to wrap my phaser game, but i cant seem to get assets workingCan anyone point me in the right direction o have an example? Thanks in advance! Link to comment Share on other sites More sharing options...
Skwal Posted January 10, 2016 Share Posted January 10, 2016 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' Cyclone112 1 Link to comment Share on other sites More sharing options...
Recommended Posts