e.s Posted December 21, 2016 Share Posted December 21, 2016 Greetings, I am trying to load a basic image into my HTML, java-script game and When I update my webpage nothing shows. I tried to follow phasers examples online but I am not sure what I'm doing wrong. Any help would be much appreciated. main.js index.html Link to comment Share on other sites More sharing options...
drhayes Posted December 22, 2016 Share Posted December 22, 2016 In the game constructor, you're telling it to inject your game into the element with id "getToKnowMeGame", but in your index.html there's no such element. Add a <div id="getToKnowMeGame"></div> to your index.html and see what happens. Link to comment Share on other sites More sharing options...
e.s Posted December 22, 2016 Author Share Posted December 22, 2016 I see i added the div line like you said. I then did some slight channges to it and when i use inspect via chrome i get the following error: Uncaught ReferenceError: Phaser is not defined at main.js:1 I will attach the new index.html file but the main.js has not been changed since the post.. index.html.html Link to comment Share on other sites More sharing options...
Recommended Posts