Jump to content

phaser 3 errors when i open the web page direct


Hosh
 Share

Recommended Posts

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 ?? 

Capture1.PNG

Capture2.PNG

Link to comment
Share on other sites

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 by Horizonicblue
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...