摘要: #include "main.h"#include "../Classes/AppDelegate.h"#include "cocos2d.h"#include #include #include #include USING_NS_CC;// 500 is enough?#define MAXPATHLEN 500int main(int argc, char **argv){ // get application path int length; char fullpath[MAXPATHLEN]; length = readli 阅读全文
posted @ 2013-06-29 22:45 walkabc 阅读(275) 评论(0) 推荐(0) 编辑
摘要: #include "AppDelegate.h"#include "HelloWorldScene.h"#include "AppMacros.h"USING_NS_CC;/**应用程序代表*/AppDelegate::AppDelegate() {}AppDelegate::~AppDelegate() {}/** * 这个方法会被CCApplication::sharedApplication()->run()调用 * */bool AppDelegate::applicationDidFinishLaunching() { 阅读全文
posted @ 2013-06-29 22:35 walkabc 阅读(247) 评论(0) 推荐(0) 编辑
摘要: #ifndef __CC_APPLICATION_PROTOCOL_H__#define __CC_APPLICATION_PROTOCOL_H__NS_CC_BEGINenum TargetPlatform{ kTargetWindows, kTargetLinux, kTargetMacOS, kTargetAndroid, kTargetIphone, kTargetIpad, kTargetBlackBerry,};/** * @addtogroup platform * @{ */class CC_DLL CCApplicationProto... 阅读全文
posted @ 2013-06-29 22:24 walkabc 阅读(305) 评论(0) 推荐(0) 编辑