Jump to content

Intel XDK, Phaser - window is not defined.


Zaku
 Share

Recommended Posts

Hi. I'm creating a simple game app in Intel XDK with Phaser. I want scale a game for all device size. I use window.innerWidth and window.innerHeight, but i have error: "window is not defined". This not working and i can't scale my game. What I must add in my game or what i can use to scale my game?

Thanks and sorry for my english..

Link to comment
Share on other sites

Sorry I don't use Cordova (which I believe is what XDK uses), but I'm really surprised it has no idea of what 'window' is. Perhaps this is a scope issue? Maybe try a non-Phaser app, that is just a plain html file with some javascript in it, that tries to read the window properties?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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