Hot answers tagged html5
9
Yes. There are many ways to wrap an HTML5 game for distribution on iOS. Solutions include CocoonJS, Game Closure, PhoneGap, and Ejecta.
Examples of HTML5 games on iOS include Onslaught! on iPad and Biolab Disaster on iPhone.
3
You could definitely get any game to work using any framework, engine, or language. The question isn't "Can you?", the question is "Should you?"
HTML5 would require quite a lot of solutions to problems that other languages would not have. Until HTML5 gets more powerful, I'd say "No, it is not" to your question. However, don't be surprised that it will be ...
2
There are two possible ways to do this.
The "fast" hack is to call your game's html page from an iframe. This is not recommended because of the iframe implications and cross-browser differences regarding attributes and, more important, you will not be able to capture input from keyboard.
The best way is to create the div and give it the id 'enchant-stage'. ...
1
You'll want to set up a collision map. IE take your background picture and make a copy of it. Color everything that is passable with one color (IE: black) and everything that is impassible with another color (IE: white). Then when doing collision detection, check your characters future position against your collision map, if your characters box contains any ...
1
Have you checked out CocoonJS? It's by far one of the best ways to get hardware accelerated HTML5 games on iOS and Android plus they have a cloud compiler where you can upload a single zip and it will build out for multiple platforms.
Only top voted, non community-wiki answers of a minimum length are eligible