PappasBiology Posted November 28, 2018 Share Posted November 28, 2018 I’m having trouble with “Making your first Phaser 3 game.” I went through the “Getting Started with Phaser 3” steps…I downloaded WAMP and downloaded the repository from GitHub (I don’t really know what I’m doing with GitHub yet...I cloned the repository to GitHub desktop and then later, in attempt to get things working, downloaded the ZIP to my www WAMP directory). The test in step 5 (Hello World) worked without issue, both opened directly with Chrome and through the Brackets live preview. I downloaded the files (assets and parts 1-10), which I saved in a folder (Learning Phaser) in the WAMP www directory. I can open each part in Brackets, but I can’t run any of the parts in Chrome. The console gives the following errors: “ReferenceError: Phaser is not defined” and “Failed to load resource: net::ERR_FILE_NOT_FOUND” I assume I’ve missed something pretty straightforward…can anyone see what that something is? Link to comment Share on other sites More sharing options...
rich Posted November 28, 2018 Share Posted November 28, 2018 How are you trying to open the files? It should be something like http://localhost/Learning%20Phaser if running WAMP locally. You don't need the GitHub repo locally just to run the examples btw. Not that it will hurt to have it, it's just not required. Link to comment Share on other sites More sharing options...
PappasBiology Posted November 29, 2018 Author Share Posted November 29, 2018 Thanks for the response. I'm just double clicking to open...the address bar says "file:///C:/wamp64/www/Learning%20Phaser/part10.html" Link to comment Share on other sites More sharing options...
rich Posted November 29, 2018 Share Posted November 29, 2018 That’s why it doesn’t work. WAMP is a web server, you need to access the files via http in your browser. Try just going to localhost and see if you get the WAMP projects page up. Link to comment Share on other sites More sharing options...
PappasBiology Posted November 29, 2018 Author Share Posted November 29, 2018 OK, got it working now. Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts