mirror of https://github.com/axmolengine/axmol.git
df3c449b4f
Fix up how fonts are loaded in Cocos2dx for iOS to work transparently with custom font filenames/paths such as 'MyCustomFont.ttf' or 'fonts/MyCustomFont.ttf'. Referring to fonts by these paths would be OK on Android but can't be used on iOS since fonts must be referred to by family name on iOS; we must use 'MyCustomFont' when referring to that particular font in both examples on iOS. Hence add the code to strip out the folder path and extension on iOS so that the font path 'MyCustomFont.ttf' and 'fonts/MyCustomFont.ttf' can be used transparently across all platforms. This is required especially in the case where we have custom fonts being referenced from CCB files, since CCB files store the font names with the .ttf extension included. |
||
---|---|---|
CocosDenshion | ||
cocos2dx | ||
document | ||
extensions | ||
external | ||
licenses | ||
samples | ||
scripting | ||
template | ||
tools | ||
.gitignore | ||
.gitmodules | ||
AUTHORS | ||
CHANGELOG | ||
README.mdown | ||
build-nacl.sh | ||
build-win32.bat | ||
cocos2d-win32.vc2010.sln | ||
cocos2d-win32.vc2012.sln | ||
create-android-project.bat | ||
create-android-project.sh | ||
create-blackberry-project.sh | ||
create-blackberry-project.vbs | ||
install-templates-msvc.bat | ||
install-templates-xcode.sh | ||
make-all-linux-project.sh |
README.mdown
cocos2d-x
cocos2d-x is a multi-platform 2D game framework in C++, branched on cocos2d-iphone and licensed under MIT. The master branch on github uses OpenGL ES 1.1 rendering, while gles20 branch uses OpenGL ES 2.0 rendering. Currently we focus on gles20 developmenet.
Supported Platforms
- iOS: stable, well tested on iOS 5.x ~ 6.x SDK.
- Android: stable, well tested on 2.0~4.x, ndk r5 ~ r8. If you use gles20 branch or cocos2d-x v2.0 above, only android 2.3 and higher are supported
- Windows Phone 8 and Win8 Metro: stable, it's in another repo http://github.com/cocos2d-x/cocos2dx-win8.
- Bada: cocos2d-x v1.x supports Bada SDK 1.0 & 2.0. Bada support was deprecated since cocos2d-x v2.0.
- BlackBerry: stable, contribued by staffs in RIM, supports Playbook & BB10.
- Marmalade: stable since cocos2d-x v0.11.0, contributed by Marmalade's staff.
- Native Client (NaCl): contributed by the Native Client authors.
- Windows: stable, well tested on WinXP/Vista/Win7. Please upgrde the drive of your video card if you meet problems on OpenGL functions
- Linux: support but not very stable.
You can visit our continuous integration system http://ci.cocos2d-x.org to check the stability on edge version.
Supported Programming Languages
- C++ is the major programming language of cocos2d-x. Tons of top-chart cocos2d-x games were written in C++.
- Lua binding is also widely used. Glu mobile, Zynga, UCWEB, 4399, Renren Games are using lua on cocos2d-x.
- Javascript binding is our recommendation since 2012 H2. Cocos2d community are cooperating on the same Javasciprt API on cocos2d-iphone/-x/-html5.
Documentations
Contact us
- Forum: http://forum.cocos2d-x.org
- Twitter: http://www.twitter.com/cocos2dx
- Weibo: http://t.sina.com.cn/cocos2dx