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 trial

JavaScript Introducing JavaScript Let's Make a Game Welcome to Programming

Krishnanath Maly
Krishnanath Maly
Android Development Techdegree Student 6,095 Points

Hi TreeHouse, I don't Know How to run the project in Atom on windows, tired of looking for the solution in youtube

JavaScript beginner, Trying to run the javascript game project in Atom Editor, Help Me To Run The Project in Atom!

2 Answers

Ginger Williams
Ginger Williams
6,409 Points

If you are trying to run the game locally without workspaces you need a server running. Try MAMP or WaMP if you use windows. It's a good place to start if you're new. Open mamp. In the mamp preferences go to the web server tab and set document root to the project on your local machine. Hit OK then start server then open webstart page. A browser window will open. Click the link that says My Website. It should open the game.

Michael Hulet
Michael Hulet
47,912 Points

This is the correct answer in this case, as Phaser loads asses via XMLHttpRequest (which I didn't realize when I posted my now-deleted answer). I have my own thoughts about things based on PHP, but that's a different topic :P. However, it should be noted that in cases that don't need to talk to a server (which is the majority), you don't need a server of any kind, and you can directly open the HTML file in your browser