Mobile HTML5 Module.

Monkey Targets Forums/HTML5/Mobile HTML5 Module.

FelipeA(Posted 2013) [#1]
Hello,

I didn't want to add this to the module sub-forum because this is a html5 focused module.

I've been developing html5 mobile games for about a year and a half. I know is something that monkey is not really focused and most people just say "make it native". I believe that having an HTML5 target should mean that I should be able to run my game on mobile browsers too or at least use monkey for developing mobile html5 games.

For a while I've had this simple module which has helped me a lot on developing my mobile html5 games and now I want to share it. Right now is only input handling but I am working on the audio part right now which I know is a huge headache even for desktop browser developing.

Here you can download the module which includes a small demo:
https://github.com/ilovepixel/MonkeyHTML5Mobile

Here is the demo. You can test it on mobile or desktop browser:
http://dev.shin.cl/multitouch/

** I've only tested this on an iPhone 5 , iPod 5 and Samsun Galaxy S2.

Greetings,
Felipe


Soap(Posted 2013) [#2]
This is super. Thank you for sharing, Felipe. Good luck with tackling audio issues!


MikeHart(Posted 2013) [#3]
Thanks for sharing, will definately have a look if it contais something for me.

Yes, audio on ios is definately an issue but judging how ios7 tries even more to slow down and cripple html5 ganes, i don't care much there.

I tried the webaudio code that was posted here a while ago but got sound playing anyway. Even on chrome desktop.


FelipeA(Posted 2013) [#4]
I just noticed that the new version of monkey handle touch inputs on html5, that makes this really useless hehe.

I'll just work on the sound stuff for now I guess.