Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChristopher Stuart
Full Stack JavaScript Techdegree Graduate 27,771 PointsHow To Download Files?
It's a lot more helpful in my opinion to be able to download the files and work in my own editor. Any reason that one cannot download the actual files?
3 Answers
Dave McFarland
Treehouse TeacherYou can download the files for this course, by clicking the "Downloads" tab at the bottom of any of the video pages, then click the "Project Files" link to download the files.
There's an extra step you'll need to perform to be able to preview the game in your browser using these downloaded files. You can get that error if you downloaded the files to your computer, and tried to open the index.html file in a browser. Many browsers limit how JavaScript interacts with your local file system, and loading files the way Phaser.js, will trigger an error, unless you view the web page from a web server. If you use workspaces to edit and view the files you won't get that error.
Another option is to load a simple web server on your computer and view the game page that way. A really simple way, if you use the Chrome browser, is to use the Web Server for Chrome extension. Just follow the instructions on the page -- https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?hl=en -- and you'll be able to view the game just fine.
Callie Cash
1,527 PointsYou should be able to download the project file directly from the workspaces window. Go to "File", then choose "Download Workspace". From there you can unzip the project file and import into your chosen text editor.
Christopher Stuart
Full Stack JavaScript Techdegree Graduate 27,771 PointsThanks Callie--turns out the last video in the series had the ability to download the files.