Scripting Engine at Cocos2d-iphone Game Engine

Each Game Engine is different and solves different problems in different ways, so the engine design does vary greatly from engine to engine (even though a lot of principles are shared from engine to engine).

Having a scripting engine is a big plus. This solves the problem of critical functions (file access, leader boards, authentication process…) being exposed to the scripting interface.

  • Cocos2d-iphone (Since Version 2.1) integrates JavaScript bindings.

Resources:

https://github.com/cocos2d/cocos2d-iphone/wiki/cocos2d-and-JavaScript

https://github.com/vlidholt/CocosDragonJS

http://www.learn-cocos2d.com/2012/05/learn-create-cocos2d-game-lua-scripting-physics-tilemaps-arc/

  • Kobold2D which is based on Cocos2D comes with Lua bindings.

Resources:

http://www.learn-cocos2d.com/2011/08/comparison-lua-scripting-corona-sdk-wax-kobold2d/

http://www.kobold2d.com/pages/viewpage.action?pageId=917888

 

Advertisements