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