2013年11月23日

摘要: Cocos2d-x uses FontLabel to draw customer ttf font before v2.0.3(including v2.0.3). Now it uses UIFont directly to draw system fonts and customer ttf fonts. Now, inorder to use customer ttf font, you ... 阅读全文

posted @ 2013-11-23 17:32 Flex/AS Programmer 阅读(464) 评论(0) 推荐(0) 编辑

摘要: Mechanism of Loading Resources 1. Distributed strategy 1.1. Developer guilde 1.2. Notes 2. Centralized strat... 阅读全文

posted @ 2013-11-23 17:09 Flex/AS Programmer 阅读(160) 评论(0) 推荐(0) 编辑

摘要: his page provides information about the relative number of devices that share a certain characteristic, such as Android version or screen size. This information may help you prioritize efforts for sup... 阅读全文

posted @ 2013-11-23 17:04 Flex/AS Programmer 阅读(243) 评论(0) 推荐(0) 编辑

摘要: If you have downloaded android 4.0, you should read the article. $ANDROID_ROOT/tools/android.bat is changed when you download android 4.0, and it is not compatible with previous versions. So you shoul... 阅读全文

posted @ 2013-11-23 17:01 Flex/AS Programmer 阅读(120) 评论(0) 推荐(0) 编辑

摘要: 这篇文章是描述怎么样在ios和android上设置设备的方向。 正如你所知道的,有两种方法来设置设备方向: 1. OpenGL / Cocos2d-x方式 这种方式很快,但是不会旋转UIKit对象(ios)或者小部件(android)。 2. ViewController方式(IOS)或者设置xml(android) 这种方法有一点慢,但是UIKit对象(IOS)或者小部件(android)就会正... 阅读全文

posted @ 2013-11-23 16:58 Flex/AS Programmer 阅读(232) 评论(0) 推荐(0) 编辑

摘要: 原文:http://www.cnblogs.com/MikeZhang/archive/2012/03/24/mysplitfuncpp.html 经常碰到字符串分割的问题,这里总结下,也方便我以后使用。 一、用strtok函数进行字符串分割 原型: char *strtok(char *str, const char *delim); 功能:分解字符串为一组字... 阅读全文

posted @ 2013-11-23 16:45 Flex/AS Programmer 阅读(281) 评论(0) 推荐(0) 编辑

摘要: 1. virtual method or not: It’s better to declare all cpp member methods without “virtual” keyword; But when you’re writing a cpp header file, please check if any methods of the parent class are ... 阅读全文

posted @ 2013-11-23 14:24 Flex/AS Programmer 阅读(243) 评论(0) 推荐(0) 编辑

摘要: To make debugging android games on win32 more convenience, we added some simulate actions to win32 port. action on win32 equal to behavior on android ... 阅读全文

posted @ 2013-11-23 11:48 Flex/AS Programmer 阅读(199) 评论(0) 推荐(0) 编辑

摘要: 我在编译从GitHub上clone下来的《TweeJump》时,出现如下错误:“:Choose a destination with a supported architecture in order to run on this device.” 后来在stack overflow中找到解决方案(Xcode cannot run using the selected device after u... 阅读全文

posted @ 2013-11-23 11:03 Flex/AS Programmer 阅读(1043) 评论(0) 推荐(0) 编辑

摘要: This is a frequently asked question. Multi-touch feature is available on both iOS & Android port since the first version of cocos2d-x. But in iOS, apple turns the switcher off by default, and offers a... 阅读全文

posted @ 2013-11-23 09:23 Flex/AS Programmer 阅读(372) 评论(0) 推荐(0) 编辑

摘要: OverView The purpose of this document is show you how does function CCFileUtils::fullPathForFilename() work on different platforms. The document is based on engine version: cocos2d-x 2.1 CCFi... 阅读全文

posted @ 2013-11-23 07:58 Flex/AS Programmer 阅读(434) 评论(0) 推荐(0) 编辑

摘要: You can use standard c functions, such as fopen, fwrite, to save and read file on different platforms. Of cource, you can use other standard functions to operate with a file. The difficulty is the pat... 阅读全文

posted @ 2013-11-23 07:53 Flex/AS Programmer 阅读(315) 评论(0) 推荐(0) 编辑


Copyright © 2024 Flex/AS Programmer
Powered by .NET 8.0 on Kubernetes