jannesiera Posted March 16, 2015 Share Posted March 16, 2015 Hello, I'm trying to get Pixi to work with nwjs but I get some errors in pixi's platform.js. It doesn't seem to recognize some globals. First of all it gave undefined for global.document, which I was able to fix by adding a line to my script: global.document = window.document; // Fix pixi document contextHowever, right after I get the next error, apparently global.Image is undefined. Since I have no idea what global.Image is supposed to be or do I'm stuck and don't know how to proceed. Quote Link to comment Share on other sites More sharing options...
dirkk0 Posted March 17, 2015 Share Posted March 17, 2015 Not sure what the problem is? From here Pixi works great with nw.js. I created a minimal Pixi project here and successfully copied it to nw.js (formerly node-webkit)https://github.com/dirkk0/pixitesthttp://goo.gl/p3v54b Any hints? Quote Link to comment Share on other sites More sharing options...
xerver Posted March 18, 2015 Share Posted March 18, 2015 There is no platform.js file in pixi.js... document and Image being undefined sounds like you are running that code in a node context, not a browser context. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.