Sign in to follow this  
callidus

Is a local web server necessary to code in Phaser

Recommended Posts

Is a local web server like cloud9 necessary to code in phaser? I heard about it recently but up until now i have simply been opening 

the canvas on my web browser and everything has been working fine. I dont use anything like cloud9 to run my code and havent had 

any problems. But even the phaser setup talks about downloading a local web server. So ultimately im confused, do we really need one, and if so why. I dont seem to have any problems just coding and opening it in my browser. 

Share this post


Link to post
Share on other sites

Unless you've changed your security settings browsers will tend to not be very happy with you loading assets. It's generally very easy these days to set up a web server, and if you plan to deploy to the web then you really should have a local server to ensure it works as intended.

Share this post


Link to post
Share on other sites

If you don't want to setup a local server on your own (for example with Xampp), 

then I recommend you use something like Brackets (http://brackets.io/) or

Netbeans. They come with their own build-in, ready to use local web servers,

where you can test your game with one click.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.