Kobold2D  1.1
Kobold2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines
KKMain.h File Reference
#import "cocos2d.h"
#import "cocos2d-extensions.h"
#import "kkLuaInitScript.h"
Include dependency graph for KKMain.h:

Functions

int KKMain (int argc, char *argv[], KKMainParameters *userParameters)

Detailed Description

Contains the common and platform-specific startup code. Launches the Lua interpreter via Wax.


Function Documentation

int KKMain ( int  argc,
char *  argv[],
KKMainParameters *  userParameters 
)

KKMain handles the cross-platform startup of Kobold2D projects as well as the initialization of Wax and Lua. Kobold2D projects call this method in their main(..) method. The parameters are meant for future expansion in case additional per-app startup parameters need to be passed in which must be set before the AppDelegate takes over.