Hosh Posted July 15, 2020 Share Posted July 15, 2020 It is my first time to use phaser 3 for developing game , I have a weird issue when i run the project from brackets it run smoothly without any error but when i try to open the project from the html page direct it dies not open and this errors appears on console , can anyone help me please ?? Quote Link to comment Share on other sites More sharing options...
Horizonicblue Posted July 15, 2020 Share Posted July 15, 2020 (edited) Hi, Actually it needs a local web server setup to run the game, directly opening the html file in browser won't load the assets. If you want to know why this happens read this https://phaser.io/tutorials/getting-started-phaser2 Maybe when you run it from brackets it creates a local webserver that's why it runs properly. Also just saw that your console shows Phaser CE v2 that means you are not using Phaser 3 but Phaser 2. In case if you want use v3 you can get it from here https://phaser.io/tutorials/getting-started-phaser3/part4 and follow the tutorial. Edited July 15, 2020 by Horizonicblue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.