Android 最完整的 Cocos2d-x 教程和指南列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10711047/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The Completest Cocos2d-x Tutorial & Guide List
提问by vgonisanz
I'm developing a game using Cocos2d-x to Android and iPhone. At the beggining, I had a lot of problems to start using this library, so, in this question, I want to collect all basic, medium and expert tutorials because there are a lot of info questions doing the same mistakes. When I Started, I had to look a lot in many sites using my friend Google. Hope this helps people start now. All in c++.
我正在使用 Cocos2d-x 为 Android 和 iPhone 开发游戏。一开始,我在开始使用这个库时遇到了很多问题,所以,在这个问题中,我想收集所有基础、中等和专家教程,因为有很多信息问题都犯了同样的错误。当我开始时,我不得不使用我的朋友谷歌在许多网站上查看很多。希望这可以帮助人们现在开始。全部在 C++ 中。
Beginners
初学者
- Official wiki links
- How to start in multi-platform HEREThe best one. Amazing, XCODE (MAC) and ECLIPSE (LINUX) tutorial.
- A simple guide to Start
- Another multi-platform Guide
- Awesome guide to start programming on Eclipse + Androidand DEBUG, thanks to Marcio Andrey
- Another wayto integrate cocos2d-x on Android
- Social Example, Facebook + email + Twitter on iOS and Android HERE
- 官方维基链接
- 如何开始多平台这里最好的一个。惊人的,XCODE (MAC) 和 ECLIPSE (LINUX) 教程。
- 一个简单的开始指南
- 另一个多平台指南
- 在Eclipse + Android和DEBUG上开始编程的很棒的指南,感谢Marcio Andrey
- 在 Android 上集成 cocos2d-x 的另一种方法
- 社交示例,iOS 和 Android 上的 Facebook + 电子邮件 + Twitter 在这里
Medium
中等的
- Scrolling scenes. Using CCParallaxNode. Space game example
- InfiniteParadax Class Here, to repeat same backgrounds all time.
- Slider codeHEREthe video.
- Split screen using 2 layers Here
- Sharped Label TTF, Better labels
- 滚动场景。使用 CCParallaxNode。太空游戏示例
- InfiniteParadax 类在这里,一直重复相同的背景。
- 滑块代码这里的视频。
- 此处使用 2 层分屏
- Sharped Label TTF,更好的标签
ADVANCED
先进的
- Integrating OpenFeint with cocos2d-x. I only found This example, Heremore details.
- Archievement on GameCenter. Here
Extensions
扩展
- I have not tested all, but work fine walzer's Extensions
- MarkusPfundstein's extensions
- DualFace extensions, actually in development
- 我还没有测试所有,但工作正常walzer 的扩展
- MarkusPfundstein的扩展
- DualFace扩展,实际上正在开发中
Code Examples
代码示例
- Clawoo examples
- Simple Game 1
- Simple Game 1 - part 2
- Simple Game 1 - part 3
- BreakOut
- Pong
- Cute a pult
- TileBased game
- Asteroids
- Bada.com
- Ballon Ride
- Demo and links collection
- supersuraccoon-cocos2d demos (Not all C++)
- supersuraccoon-cocos2d links collection
- Another code example: Tiny Wings Remake on Android using Cocos2d-X
- Clawoo 示例
- 简单游戏 1
- 简单游戏 1 - 第 2 部分
- 简单游戏 1 - 第 3 部分
- 爆发
- 乒乓
- 可爱一坨
- 基于瓷砖的游戏
- 小行星
- 八达网
- 气球之旅
- 演示和链接集合
- supersuraccoon-cocos2d 演示(并非所有 C++)
- supersuraccoon-cocos2d 链接集合
- 另一个代码示例:使用 Cocos2d-X 在 Android 上重新制作 Tiny Wings
TIPS
提示
- Audio format Supported
If you use Linux, please, don't use cocos2d-android or cocos2d-android-1, is decreated. Try to use cocos2d-x
If you use Linux, and don't know how to use native code, Take a look in development
CCLOG("String"); Don't work on Eclipse log cat, but CCLog do it!
Max textures size/resolution Here
Iphone use RETINA to draw textures in HD, but don't are used on Android. My solution is use RETINA on iphone, and setscale compiling only in Android. Multi-resolution Wiki. In Example:
- 支持的音频格式
如果你使用 Linux,请不要使用 cocos2d-android 或 cocos2d-android-1, is decreated。尝试使用 cocos2d-x
如果你使用 Linux,并且不知道如何使用原生代码,请查看开发
CCLOG("字符串"); 不要在 Eclipse log cat 上工作,但是 CCLog 做到了!
最大纹理尺寸/分辨率在这里
Iphone 使用 RETINA 绘制高清纹理,但在 Android 上不使用。我的解决方案是在 iphone 上使用 RETINA,只在 Android 中使用 setscale 编译。多分辨率维基。在示例中:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) this->setObjectScale(1); #endif // CC_PLATFORM_IOS
- Your first example must be the official on the WIKI
- 你的第一个例子必须是WIKI上的官方
**官方页面 COCOS2D-X**
What will need this question?
这个问题需要什么?
- XML Tutorial, i have nothing in this area. Actually, i'm working in some code. I will do a Tutorial. The library can be use is libxml2
- Creating menus example
- Slider menu example
- Gestures class don′t implemented yet
- XML 教程,我在这方面一无所知。实际上,我正在处理一些代码。我会做一个教程。可以使用的库是libxml2
- 创建菜单示例
- 滑块菜单示例
- 手势类尚未实现
If you have problems, use tag Cocos2d-x in Stackoverflow, and I will try to help you.
如果你有问题,在 Stackoverflow 中使用标签 Cocos2d-x,我会尽力帮助你。
I have already read the FAQbut 90 % of questions cocos2d/android related present the same problem, using obsolete libraries. I just want help people to start using cocos2d-x. All additional info will be Welcome.
我已经阅读了FAQ,但是 90% 与 cocos2d/android 相关的问题都存在同样的问题,使用过时的库。我只是想帮助人们开始使用 cocos2d-x。欢迎所有其他信息。
采纳答案by Jav_Rock
Here you got complementaries discussions about the topic, it can be interesting.
在这里你有关于这个话题的补充讨论,它可能很有趣。
回答by Di Wu
Another code example: Tiny Wings Remake on Android using Cocos2d-X
回答by Justin at CartoonSmart
Good list. The Angry Ninjas Starter Kitwill have a Cocos2d-X update soon.
好清单。该愤怒的忍者入门套件将很快有是Cocos2d-X的更新。
回答by jptsetung
Cocos2d-x within uikit tutorial http://jpsarda.tumblr.com/post/24983791554/mixing-cocos2d-x-uikit
uikit 教程中的 Cocos2d-x http://jpsarda.tumblr.com/post/24983791554/mixing-cocos2d-x-uikit
回答by Daniel Fernández Bermúdez
https://github.com/dualface/cocos2d-x-extensions/blob/master/TODO.tasks, he is developing nice features on cocos2d-x
https://github.com/dualface/cocos2d-x-extensions/blob/master/TODO.tasks,他正在 cocos2d-x 上开发不错的功能
回答by jptsetung
Cocos2d-x within your classic Android (Java) app tuto http://jpsarda.tumblr.com/post/26000816688/integrate-cocos2d-x-c-into-an-android-application
Cocos2d-x 在您的经典 Android (Java) 应用程序教程中http://jpsarda.tumblr.com/post/26000816688/integrate-cocos2d-xc-into-an-android-application