Search the Community
Showing results for tags 'navigator'.
-
Hello everyone I am now joining the forum, and have now started using intel XDK, to create a Phaser project. However, the default project created by XDK, has some errors. It doesn't prevent the app from running (I can see a rotating bear on the screen), but I fear those errors will spell trouble. Here are the errors: 10 JSHint Problems×Line Problem Code snippet4 'document' is not defined. (W117) document.addEventListener('DOMContentLoaded', function()7 'PIXI' is not defined. (W117) var stage = new PIXI.Stage(0x66FF99);10 'screen' is not defined. (W117) var width = screen.availWidth;11 'screen' is not defined. (W117) var height = screen.availHeight;12 'PIXI' is not defined. (W117) var renderer = PIXI.autoDetectRenderer(width, height);15 'document' is not defined. (W117) document.body.appendChild(renderer.view);17 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate);20 'PIXI' is not defined. (W117) var texture = PIXI.Texture.fromImage("asset/phaser.png");23 'PIXI' is not defined. (W117) var phaserImage = new PIXI.Sprite(texture);37 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate); 2 JSHint Problems×Line Problem Code snippet11 'document' is not defined. (W117) document.addEventListener('deviceready', function() {13 'navigator' is not defined. (W117) navigator.splashscreen.hide(); 4 JSHint Problems×Line Problem Code snippet21 'BasicGame' is not defined. (W117) BasicGame = {26 'BasicGame' is not defined. (W117) BasicGame.Game = function (game)32 'BasicGame' is not defined. (W117) BasicGame.Game.prototype =49 'Phaser' is not defined. (W117) this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; The codes are just the default. If you would like me to post the codes I can do so.I appreciate any help I can get on this. Thanks