Monday, January 11, 2016

HTML5 cross-platform (mobile/desktop) games


CocoonJS by Ludei

Replaces the PhoneGap(+PG Build) and supply Chromium browser.
It also provide libraries for some native/payment/push etc.
Your code should work on both desktop(without-it) and Mobile(with-it) . Need to look how the native/payment/push  works on desktop.
No special API for the game code itself, you can use any js libraries you want.

Compilation is done on the cloud. The result is a zip with debug&release apks, but sadly they are unsigned. you need to download them and using android java sdk:
%JAVA_HOME%\bin\jarsigner -verbose -keystore <keystore> -storepass <store-pass>  -keypass <key-pass> <apk_unsigned.apk> <key>
<android-sdk>\build-tools\21.1.2\zipalign.exe -v 4 <apk_unsigned.apk> <apk_signed.apk>
Then copy the signed_sdk to the android device (or send via drop-box) and install


Famo.us

Again replace the deployment with Chromium.
Have a special API for the game/app code, you don't work with the DOM regualrly and thus can't use JQuery for example, see here , not sure about the the level of abstraction of prepreated widgets (ready-to-use-list-view etc)
Great performance see this codepen on mobile


Game engines
nice list . another list review

low-level
pixi.js is a popular low-level engine
createjs - set of libs (easeljs,tweenks,soundjs,preloadjs)

turbulenz (no real mobile support)
http://biz.turbulenz.com/developers  - (like the game 'polycraft')
It uses WebGL for rendering, even on 2d games, with great performance on desktops, see this serious of articles on moving to HTML5.
But this means that on a lot of mobile devices the game will not work at all, not even chrome... There is still no native-app for it but the 2013 news says they are working on it.
Another note on the platform, the game engine can be used free of charge, and they encourage you to use their servers for hosting,multi-player, badges etc. The way they make money is 30% of the payment services, if you use theirs.  Note that you don`t need to.


TO TEST:
http://phaser.io/  ,   , http://www.kiwijs.org/ ??
http://www.gameclosure.com/ -movie - - comes with few pre-made "engines" for platformer/menu/maps etc
http://impactjs.com/


TOO BASIC  - http://craftyjs.com/ , http://melonjs.org/
 http://www.pandajs.net/ - no big games as of yet

No comments: