HTML and CSS Reference
Releasing a Cocos2d-html5 App to a Native App
project can easily be run on HTML5-ready browsers. It also supports running game code as a native application via
the Cocos2d JSB without code modification.
The Power of Distributing an HTML5 Game as a Native Package
JS Bindings layer
Figure 24-21. Cocos2d JSB
is extended by JSB to support Cocos2d-x types, structures, and objects. SpiderMonkey is Mozilla's open source
security checks, and debugging scripts. You can find the Cocos2d-x JSB wrapper code under the directory [Cocos2d-x
Setting Up the Cocos2d JSB Environment
Cocos2d-x is a multi-platform 2D game engine. As an example, the porting steps that follow focus on Android and iOS.
Most of the steps for porting to these two platforms are the same, and I will point out the few differences.