BigRob154 Posted June 16, 2013 Share Posted June 16, 2013 Are there any plans to integrate support for Ejecta?It's kinda JavaScript runtime for iOS with accelerated OpenGL ES backend for Canvas2D. HTML5 Apps are running at near native speed in iOS.This would be really cool Developing HTML5 Games with Phaser and run them on an iOS at full speed without the need of WebKit / UIWebView. Link to comment Share on other sites More sharing options...
rich Posted June 16, 2013 Share Posted June 16, 2013 It's something I personally don't have time to look into right now, but if someone else wants to then I'm happy to modify Phaser until it works (to a certain degree anyway). Link to comment Share on other sites More sharing options...
BigRob154 Posted June 17, 2013 Author Share Posted June 17, 2013 Thanks for the info.I just had a quick look and modified the 'css3D' and 'touch' check. Ejecta can't create dynamic HTML Elements besides Canvases.But then I hit a bigger wall. It seems that Phaser loads Images as a Base64 Data-URL which won't work in Ejecta. Edit:I'm going to write a patch file for phaser.js which gets loaded after Phaser and modifies some parts to be compatible with Ejecta. Tinker time. Link to comment Share on other sites More sharing options...
rich Posted June 17, 2013 Share Posted June 17, 2013 It definitely doesn't load images as base64, just normal image tag. It also doesn't create any DOM objects aside from one single canvas element Link to comment Share on other sites More sharing options...
BigRob154 Posted June 17, 2013 Author Share Posted June 17, 2013 Okay, wired. The iOS Simulator logged a Base64 Data-URL. Time for some further investigation I guess. Link to comment Share on other sites More sharing options...
rich Posted June 17, 2013 Share Posted June 17, 2013 Ah that's just the Phaser logo in the Bootscreen, it doesn't use base64 to load external images at all, so you can safely comment that out. Link to comment Share on other sites More sharing options...
eterps Posted June 18, 2013 Share Posted June 18, 2013 Also worth looking into: CocoonJS Intel XDK (previously AppMobi) GameClosure Each of these has a similar concept - converting canvas into GL code to produce native apps. They also do Android as well, so you aren't just limited to iOS / Xcode as with Ejecta. I haven't tried them with Phaser (yet), but hope to try out Cocoon within the next week. Link to comment Share on other sites More sharing options...
nem0ff Posted June 18, 2013 Share Posted June 18, 2013 eterps:GameClosure isn't HTML5 to native converting tool.It is native game engine which uses Javascript as language. Link to comment Share on other sites More sharing options...
eterps Posted June 19, 2013 Share Posted June 19, 2013 @nem0ff : True, however they had a pretty cool blog post a while back where they took a game made in Construct 2 and "compiled" it with their toolset. Theoretically, the same thing could be done with a Phaser game. http://www.gameclosure.com/blog/2013/03/space-blaster-meets-mobile Link to comment Share on other sites More sharing options...
nem0ff Posted June 19, 2013 Share Posted June 19, 2013 They didn't "compile" the game, they have ported it. Link to comment Share on other sites More sharing options...
eterps Posted June 19, 2013 Share Posted June 19, 2013 Yes, they ported it to their platform. I used quotes around 'compile' because it's a loose definition. They used their toolchain to build an apk for distribution in the Google Play market. The point is, if you have a game written with Phaser, you can modify (port) the code to work with GameClosure's tools and create a native iOS or Android app. Link to comment Share on other sites More sharing options...
nem0ff Posted June 19, 2013 Share Posted June 19, 2013 I can port the game to any engine, framework etc.But I do not want to significantly modify the code for that. Link to comment Share on other sites More sharing options...
endel Posted December 24, 2013 Share Posted December 24, 2013 I've spent a little time to get Phaser running under Ejecta/iOS.Please take a look at the following pull-requests:Ejecta/#262Phaser/#280 Link to comment Share on other sites More sharing options...
mariogarranz Posted January 24, 2014 Share Posted January 24, 2014 Any idea about what happened with #13? Were those changes added? Anyone managed to port their Phaser games as iOS/Android natives? I'm really interested in this Link to comment Share on other sites More sharing options...
Recommended Posts