Hypnoatic Posted January 23, 2015 Share Posted January 23, 2015 I'm a javascript beginner and am looking to make a game using Phaser. I have included it as a library on webstorm but how do i go about actually using it in my javascript file. I have initiated the game var using Phaser.Game but it doesn't work. Link to comment Share on other sites More sharing options...
colonel315 Posted January 24, 2015 Share Posted January 24, 2015 You need to import it in an HTML document. So right click your directory, create an HTML document then:<!-- Before you type in 'phaser/build/phaser.js' you need to lead it to that folder wherever it may be--><script src = "phaser/build/phaser.js" type = "script/javascript"></script><!-- Then after that line of code import your javascript file --><script src = "fileName.js" type = "script/javascript"></script>Hope this helps! Also Webstorm will spoil you! Link to comment Share on other sites More sharing options...
Recommended Posts