摘要:
cocos2d-xPixel Perfect Collision Detection (Using Cocos2d-x)This post found its way because I couldnt find the answer to one of the questions I asked ... 阅读全文
摘要:
1.首先到开发者账号那里去创建AppID,设置好Bundle ID2.到Itunes Center去创建一个开启GameCenter的应用,设置好Bundle ID与第一步一样;3.在game 立面加一些gameCenter 帮助代码4.真机测试一定要 在设置里,gameCenter里面开启沙盒模式... 阅读全文
摘要:
SystemHelper::createLocalNotification(someTask.seconds, SystemHelper::getLocalizedText("Task_Finish"));void SystemHelper::createLocalNotification(unsi... 阅读全文
摘要:
#include #include using namespace std;class card{ private: int a[5][5];//原题 int b[5][5];//解决方案 int c[5][5];/... 阅读全文
摘要:
static const char* getLocalizedText(const char* pKey, const char* pTableName = NULL);const char* SystemHelper::getLocalizedText(const char *pKey, cons... 阅读全文
摘要:
用到一个开源的库:opencore-amr for ioshttps://github.com/feuvan/opencore-amr-iOS1.下载后运行xcode脚本,2.脚本运行完成后,看到目录下test里面有例子,即解压和压缩的例子 我试了下,用amrn-dec.c+(DDMessageE... 阅读全文
摘要:
1.头文件://// CustomMoviePlayerViewController.h// school//// Created by NW on 15/2/4.// Copyright (c) 2015年 Ternturing. All rights reserved.//#import... 阅读全文
摘要:
NSUserDefaultDemo类似android的shareP短小的信息持久化比如说 用户配置信息等。直接通过NSUserDefaults存取。它的实质是使用plist保存的理论存放为手机存储大小。获取[NSUserDefaults standardUserDefaults];如果增加/修改了内... 阅读全文
摘要:
self.label = [[UILabel alloc] init];//这里就不用setframe 了,,,因为后边的layoutconstraint会帮你自适应 self.label.text = @"加载中..."; self.label.textColor = [UIColor whi... 阅读全文
摘要:
场景单例, 做一个场景是公用的,可以在同一个scene上面更换layer class GameScene{public: static GameScene* getInstance(); virtual ~GameScene(); void loadPlayerA... 阅读全文