Jump to content

Trying to get pixi to work with nw.js - Problem with globals


jannesiera
 Share

Recommended Posts

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 context

However, 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.

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...