Open Source Custom Browser Component For Fast iOS Games Created With HTML5/Javascript

JavaScriptCore is Apple’s javascript interpreter that you can use to directly render Javascript graphics using OpenGL, and audio with OpenAL bypassing using a UIWebView for much higher performance.

Previously I mentioned JavaScriptCore and ImpactJS and pointed out a simple example showing how you can use Javascript core within your apps.

Dominic Szablewski the developer of ImpactJS has released a new open source project called Ejecta providing a special “browser” specifically for running Javascript based games at high performance.

Here’s a brief summary of Ejecta as stated on the developer page:

Ejecta is like a Browser without the Browser. It’s specially crafted for Games and Animations. It has no DIVs, no Tables, no Forms – only Canvas and Audio elements. This focus makes it fast.

JavaScript code is executed directly by a JavaScript VM (JavaScriptCore), the HTML5 Canvas API is implemented in native code with OpenGL, Audio is implemented with OpenAL. Several other APIs (touch, accelerometer, localStorage) behave like those in a real browser.

Many HTML5 Games run out of the box, or with minimal modifications – with better performance, better sound support, Game Center integration and more.

Not only that, but also provided are a number of tutorials including a guide on extending Ejecta .

You can find everything through the Ejecta homepage here.

An awesome project for anyone looking to create games using HTML5.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Open Source Custom Browser Component For Fast iOS Games Created With HTML5/Javascript

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *