2015年12月8日
摘要: 简单的将,就是应用程序关闭之后,再次启动的时候仍然可以访问到这个数据。比如用户的用户名密码之类的。 1 bool HelloWorld::init() 2 { 3 if ( !Layer::init()) 4 { 5 return false; 6 } 7 ... 阅读全文
posted @ 2015-12-08 13:40 四月厨 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 这个就是设置一个函数,每隔多少帧或者多少时间执行一下。首先设置头文件HelloWorldScene.h 1 #ifndef __HELLOWORLD_SCENE_H__ 2 #define __HELLOWORLD_SCENE_H__ 3 4 #include "cocos2d.h" 5 6 c... 阅读全文
posted @ 2015-12-08 11:37 四月厨 阅读(190) 评论(0) 推荐(0) 编辑
摘要: coocs2dx貌似有个限制,最多支持5个点的触摸,这是实际测试了一下,也不知道是不是跟手机性能有关系。 1 bool HelloWorld::init() 2 { 3 if ( !Layer::init()) 4 { 5 return false; 6 }... 阅读全文
posted @ 2015-12-08 11:05 四月厨 阅读(138) 评论(0) 推荐(0) 编辑