Zaku Posted December 6, 2016 Share Posted December 6, 2016 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 More sharing options...
rich Posted December 7, 2016 Share Posted December 7, 2016 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 More sharing options...
Recommended Posts