<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic See StackOverflow (xmnboy):: in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059312#M53325</link>
    <description>&lt;P&gt;See StackOverflow (xmnboy):: &lt;A href="http://stackoverflow.com/questions/25634565/intelxdk-is-generating-errors-on-simple-javascript-code" target="_blank"&gt;http://stackoverflow.com/questions/25634565/intelxdk-is-generating-errors-on-simple-javascript-code&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What you're seeing are jshint errors generated by the linter in the Brackets editor that's built into the XDK.&lt;/P&gt;

&lt;P&gt;You can configure the jshint errors you get either by using a jshint resource file or by putting the jshint directives directly in your code (at the top of the page). Here's what I usually start out with to keep the list down to a manageable set of errors:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;/*jslint browser:true, devel:true, white:true, vars:true */&lt;BR /&gt;
	/*global $:false, in&lt;A href="tel:false"&gt;t&lt;/A&gt;el:false, document:false */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And see &lt;A href="https://community.intel.com/www.jshint.com/docs" target="_blank"&gt;www.jshint.com/docs&lt;/A&gt; and &lt;A href="https://community.intel.com/www.jslinterrors.com" target="_blank"&gt;www.jslinterrors.com&lt;/A&gt;&lt;A href="http://jslinterrors.com/" rel="nofollow"&gt; &lt;/A&gt;for some documentation regarding these directives.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2015 08:12:00 GMT</pubDate>
    <dc:creator>Ad</dc:creator>
    <dc:date>2015-07-02T08:12:00Z</dc:date>
    <item>
      <title>Errors in Default Phaser Project</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059311#M53324</link>
      <description>&lt;P&gt;Hi Everyone&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I really hope I can get some help on this.&lt;/P&gt;

&lt;P&gt;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 would like to be able to correct those errors, not only because they may cause / may be causing problems, but also because I want to learn and understand what's going on in my project. Here are the errors:&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	10 JSHint Problems&lt;BR /&gt;
	×&lt;BR /&gt;
	Line Problem Code snippet&lt;BR /&gt;
	4 'document' is not defined. (W117) document.addEventListener('DOMContentLoaded', function()&lt;BR /&gt;
	7 'PIXI' is not defined. (W117) var stage = new PIXI.Stage(0x66FF99);&lt;BR /&gt;
	10 'screen' is not defined. (W117) var width = screen.availWidth;&lt;BR /&gt;
	11 'screen' is not defined. (W117) var height = screen.availHeight;&lt;BR /&gt;
	12 'PIXI' is not defined. (W117) var renderer = PIXI.autoDetectRenderer(width, height);&lt;BR /&gt;
	15 'document' is not defined. (W117) document.body.appendChild(renderer.view);&lt;BR /&gt;
	17 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate);&lt;BR /&gt;
	20 'PIXI' is not defined. (W117) var texture = PIXI.Texture.fromImage("asset/phaser.png");&lt;BR /&gt;
	23 'PIXI' is not defined. (W117) var phaserImage = new PIXI.Sprite(texture);&lt;BR /&gt;
	37 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate);&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	2 JSHint Problems&lt;BR /&gt;
	×&lt;BR /&gt;
	Line Problem Code snippet&lt;BR /&gt;
	11 'document' is not defined. (W117) document.addEventListener('deviceready', function() {&lt;BR /&gt;
	13 'navigator' is not defined. (W117) navigator.splashscreen.hide();&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	4 JSHint Problems&lt;BR /&gt;
	×&lt;BR /&gt;
	Line Problem Code snippet&lt;BR /&gt;
	21 'BasicGame' is not defined. (W117) BasicGame = {&lt;BR /&gt;
	26 'BasicGame' is not defined. (W117) BasicGame.Game = function (game)&lt;BR /&gt;
	32 'BasicGame' is not defined. (W117) BasicGame.Game.prototype =&lt;BR /&gt;
	49 'Phaser' is not defined. (W117) this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	The codes are just the default. If you would like me to post the codes I can do so.&lt;BR /&gt;
	I appreciate any help I can get on this. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 00:50:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059311#M53324</guid>
      <dc:creator>John_G_10</dc:creator>
      <dc:date>2015-07-02T00:50:17Z</dc:date>
    </item>
    <item>
      <title>See StackOverflow (xmnboy)::</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059312#M53325</link>
      <description>&lt;P&gt;See StackOverflow (xmnboy):: &lt;A href="http://stackoverflow.com/questions/25634565/intelxdk-is-generating-errors-on-simple-javascript-code" target="_blank"&gt;http://stackoverflow.com/questions/25634565/intelxdk-is-generating-errors-on-simple-javascript-code&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What you're seeing are jshint errors generated by the linter in the Brackets editor that's built into the XDK.&lt;/P&gt;

&lt;P&gt;You can configure the jshint errors you get either by using a jshint resource file or by putting the jshint directives directly in your code (at the top of the page). Here's what I usually start out with to keep the list down to a manageable set of errors:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;/*jslint browser:true, devel:true, white:true, vars:true */&lt;BR /&gt;
	/*global $:false, in&lt;A href="tel:false"&gt;t&lt;/A&gt;el:false, document:false */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;And see &lt;A href="https://community.intel.com/www.jshint.com/docs" target="_blank"&gt;www.jshint.com/docs&lt;/A&gt; and &lt;A href="https://community.intel.com/www.jslinterrors.com" target="_blank"&gt;www.jslinterrors.com&lt;/A&gt;&lt;A href="http://jslinterrors.com/" rel="nofollow"&gt; &lt;/A&gt;for some documentation regarding these directives.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 08:12:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059312#M53325</guid>
      <dc:creator>Ad</dc:creator>
      <dc:date>2015-07-02T08:12:00Z</dc:date>
    </item>
    <item>
      <title>Thanks.</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059313#M53326</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Those links led me to some useful tools also.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 16:12:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059313#M53326</guid>
      <dc:creator>John_G_10</dc:creator>
      <dc:date>2015-07-02T16:12:20Z</dc:date>
    </item>
    <item>
      <title>I'm not sure if it is</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059314#M53327</link>
      <description>&lt;P&gt;I'm not sure if it is entirely related to John G's original post but I was told to try updating the Phaser libraries included in XDK, because they are old.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I haven't been able to figure out how that is done, whether it is applicable to older programs and samples included in XDK or can only apply to new code.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Has anyone created or found a solid workflow of step by step procedures for going about the updating of Phaser and other libraries in XDK?&lt;/P&gt;

&lt;P&gt;Thanks to Ad as well, I will be following up on that link's content further to see if it helps some of my students.&lt;/P&gt;

&lt;P&gt;I'm also investigating this info on updates here: Though it doesn't fill me with confidence that this will solve my out of date code base issues.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/node/560789"&gt;https://software.intel.com/en-us/node/560789&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2015 03:39:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059314#M53327</guid>
      <dc:creator>Patrick_B_1</dc:creator>
      <dc:date>2015-09-07T03:39:00Z</dc:date>
    </item>
    <item>
      <title>Look inside your project, if</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059315#M53328</link>
      <description>&lt;P&gt;Look inside your project, if you started with a template or demo, the phaser library files are probably located here:&lt;/P&gt;

&lt;P&gt;&amp;lt;project-dir&amp;gt;/www/lib/phaser&lt;/P&gt;

&lt;P&gt;You can look inside the phaser.min.js file to see what version of the library you have in your app.&lt;/P&gt;

&lt;P&gt;You can download the latest copy of the files from here: &lt;A href="http://phaser.io/download/stable" target="_blank"&gt;http://phaser.io/download/stable&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm not a Phaser expert, but I'm guessing you need to at least update this file: &lt;A href="https://github.com/photonstorm/phaser/releases/download/v2.4.3/phaser.min.js" target="_blank"&gt;https://github.com/photonstorm/phaser/releases/download/v2.4.3/phaser.min.js&lt;/A&gt; from the Phaser site.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 23:06:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059315#M53328</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2015-09-08T23:06:44Z</dc:date>
    </item>
    <item>
      <title>We are resolving the jshint</title>
      <link>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059316#M53329</link>
      <description>&lt;P&gt;We are resolving the jshint errors in game projects in future releases of XDK. So hopefully this should avoid any further confusion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:20:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Errors-in-Default-Phaser-Project/m-p/1059316#M53329</guid>
      <dc:creator>Anusha_M_Intel1</dc:creator>
      <dc:date>2015-09-15T21:20:14Z</dc:date>
    </item>
  </channel>
</rss>

