WombatTurkey Posted November 15, 2015 Share Posted November 15, 2015 Hey guys, Was going to have a version of my game available as a stand-alone app instead of offering it through web only. And was wondering if it's possible to stick V8 JavaScript + HTML 5 Canvas + Phaser to all work, let's say under a compiled app? (Basically a program you run instead of visiting the website to play) Edit: I found https://github.com/nwjs/nw.js I think this is it? Link to comment Share on other sites More sharing options...
bruno_ Posted November 15, 2015 Share Posted November 15, 2015 Yes, that is it. Other alternative is GitHub electron. WombatTurkey 1 Link to comment Share on other sites More sharing options...
WombatTurkey Posted November 15, 2015 Author Share Posted November 15, 2015 Yes, that is it. Other alternative is GitHub electron. Nice! I wonder if there is any performance gains when running your phaser game off that compared to in a Chrome or Firefox browser? Since it's an isolated app, I think there would be gains but cannot say for fact as I've done no testing or benchmarks Link to comment Share on other sites More sharing options...
bruno_ Posted November 15, 2015 Share Posted November 15, 2015 They both use chromium, so the performance is similar to Chrome.Chrome running as a browser may consume more RAM than Chromium, but I don't think there will be other significant differences.The best you have to do is test them both. Link to comment Share on other sites More sharing options...
WombatTurkey Posted November 15, 2015 Author Share Posted November 15, 2015 They both use chromium, so the performance is similar to Chrome.Chrome running as a browser may consume more RAM than Chromium, but I don't think there will be other significant differences.The best you have to do is test them both. Thanks. The only major difference I found personally was since it was an isolated app, if you had high ram usage, or a lot of chrome tabs open, Phaser ran smoother. And ofcourse, if you package your game together with all your assets, everything is loaded locally. Thus, saving your webserver with HTTP requests and faster loading times on the clientside. That's only what I've noticed so far, but as you said nothing really 'significant'. Edit: Plus, it's really damn cool opening up an .exe, and your game is like BOOM! Right there, I like that drhayes 1 Link to comment Share on other sites More sharing options...
Recommended Posts