callidus Posted August 17, 2014 Share Posted August 17, 2014 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. Link to comment Share on other sites More sharing options...
lewster32 Posted August 17, 2014 Share Posted August 17, 2014 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. callidus 1 Link to comment Share on other sites More sharing options...
Chupup Games Posted August 17, 2014 Share Posted August 17, 2014 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/) orNetbeans. They come with their own build-in, ready to use local web servers,where you can test your game with one click. callidus and haden 2 Link to comment Share on other sites More sharing options...
callidus Posted August 17, 2014 Author Share Posted August 17, 2014 Thank you everyone for your answers and especially Chupup for your suggestion of using brackets. The program fixed my problems. Link to comment Share on other sites More sharing options...
Nepoxx Posted August 18, 2014 Share Posted August 18, 2014 Just in case someone finds this thread and doesn't want to use Brackets, an easy solution is to use the mongoose server: https://code.google.com/p/mongoose/It's a super lightweight executable file, you simply run it and it will run a webserver from the directory you executed it. It's very useful for many things Link to comment Share on other sites More sharing options...
Recommended Posts