Nassim's Lab Posted March 15, 2020 Share Posted March 15, 2020 *Separating I'm pretty new to phaser 3 and I've been playing around with the hello world example. In this example you have the game logic javascript code within the <script> tag. When I try to put this game logic into its own file game.js and then reference it in index.html as <script src="game.js"></script> it simply doesn't work anymore. I have my web server and everything set up. It would be nice if someone could tell me what went wrong. I have used this <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-arcade-physics.min.js"></script> to have access to phaser 3 within the index.html. Link to comment Share on other sites More sharing options...
supertommy Posted March 16, 2020 Share Posted March 16, 2020 is you game.js file in the same folder and level as index.html? perhaps show your index.html file; might be some ordering problem? Link to comment Share on other sites More sharing options...
geocine Posted March 23, 2020 Share Posted March 23, 2020 @Nassim's Lab Do you see any error on the browser console? Link to comment Share on other sites More sharing options...
Recommended Posts