JavaScript Introducing JavaScript Finishing the Game Wrapping It Up

Kyle Schmelzer
PRO
Kyle Schmelzer
Pro Student 212 Points

I try to download the workspace to work on the code in a program I am comfortable with, and the file is not working.

I download the file, extract it. Everything is there, but when i open up the index.html in chrome its just the background, and the green background of the game. Nothing within the game is loaded. No platforms, no coins, no player. Help!?!?!

Andrew Hickman
Andrew Hickman
Full Stack JavaScript Techdegree Student 10,013 Points

Hey Kyle! It's difficult to pinpoint this problem without seeing the code, but the first thing I would check is that index.html references the JavaScript file with a <script> tag. I know a lot of Treehouse workspaces leave this out and have you do it before you start writing your JS. This is just conjecture- again, hard to tell what's wrong without seeing your index.html and .js files.

Kyle Schmelzer
Kyle Schmelzer
Pro Student 212 Points

In reply to Andrew. It's the download from the "Wrapping it up" aspect of "intro to Javascript". I've done nothing to alter it, and the <script src="game.js"> as well as phaser.js are both there.

Andrew Hickman
Andrew Hickman
Full Stack JavaScript Techdegree Student 10,013 Points

Hmm... I downloaded the files and am getting the same issue. The console is throwing an error from the Phaser library, and says "chalkers.png" may not be loaded, but the Sources tab in DevTools says it is loaded. I'm not sure at the moment what's going on, but I'll get back to you when I figure it out!

2 Answers

Kyle Schmelzer
PRO
Kyle Schmelzer
Pro Student 212 Points

For whatever reason, It is not working in Chrome, but works in firefox. I guess solved?

Angelic Sanoy
Angelic Sanoy
2,536 Points

Same here. It's not working in Google Chrome. It's giving me phaser.js issue? Please help. http://prntscr.com/m0aap3

Angelic Sanoy
Angelic Sanoy
2,536 Points

I have able to fix error http://prntscr.com/m0af4j by downloading the new phaser.js but the index.html still doesn't work on chrome because of this warning. Help please.