o0TarZan0o Posted April 22, 2014 Share Posted April 22, 2014 Hi, I am practicing examples along ebook of author Jacob Seidelin, when rendering jewel to screen, chrome display error: I have to run it in localhost... but it only a half of trouble, although chrome can render jewel but I don't think it is jewel while firefox can execute game without trouble, if I want port app to market, you have any idea for it can get on ios and android (change game feature, cordova version...) ps: of course I'll make other game project Quote Link to comment Share on other sites More sharing options...
ragnarok Posted April 22, 2014 Share Posted April 22, 2014 It seems Chrome has tightend it's security since the book was written. You could either start chrome with lesser securtiy (under windows hit [Win-Key]+R and type in "chrome --disable-web-security", under linux or mac open a Terminal and type the same) or you could use Brackets as an editor. It starts a local webserver for you, when you want to test a programm. This should work for tests. I think if you run tests with these sucessfully, the game should work as a webapp as well (Running as a webapp is not the same as running from a local file, so security is less tight). o0TarZan0o 1 Quote Link to comment Share on other sites More sharing options...
o0TarZan0o Posted April 22, 2014 Author Share Posted April 22, 2014 well, why editor relate to this problem?! (of course I had a favorite editor ) I don't have confident enough to throw app to phonegap when it only can run well under firefox ... ps: you have any hybrid app which was approved on both markets (android, ios)? Quote Link to comment Share on other sites More sharing options...
ragnarok Posted April 22, 2014 Share Posted April 22, 2014 The editor Brackets is just a recommendition, if you don't want to set up a local webserver (it's quite good on it's own, but for this case, that's the point of using it). I don't have apps in markets on either platform, but following the book you mentioned I could create webapps that ran on my ipad1 (ios5.x). Perhaps someone else can give you better directions. Quote Link to comment Share on other sites More sharing options...
o0TarZan0o Posted April 22, 2014 Author Share Posted April 22, 2014 You don't have to point to any specific platform, just put game on web server and you can play it on other devices. ps: really we have illusion about real powerful of HTML ... Quote Link to comment Share on other sites More sharing options...
Will Posted May 2, 2014 Share Posted May 2, 2014 - snip - ps: really we have illusion about real powerful of HTML ... Hardly. HTML5 is powerful - it would not be safe if just any JavaScript from any file sitting on your drive could be ran. Hence you have to start a local web server. 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.