Jump to content

we can active web server, client can't ...


o0TarZan0o
 Share

Recommended Posts

Well, I just know phaser framework some days, I am reading its get started, phaser requires developer must run websites/apps under web server, it isn't so hard to make it, just some clicks to active apache, I wonder if we have to run apps with web server, clients can run our apps without web server? 

Link to comment
Share on other sites

Yup, even in development you're going to need to run with a web server. If you're developing in Chrome, for example, it won't let you make XmlHttpRequests when accessing a page at a "file://" domain because it considers almost everything outside of the current directory a different domain.

 

Once the game is made I'm pretty sure you'll still need to serve it somehow since the loader is still using XHR to load the assets. There are different ways to package up the game once it's done, however: node-webkit for a desktop app, CocoonJS for mobile, etc.

 

Is that what you're asking?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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