cocos2d-x

Cocos2d-x视频教程

老子叫甜甜 提交于 2019-11-26 19:28:41
1. 我的技术专栏 https://blog.csdn.net/COCO56/column/info/40665 2. 相关推荐 C++ Primer视频教程(初级中级高级): https://blog.csdn.net/COCO56/article/details/95260291 CocosCreator官方教学视频(腾讯超清版)[20180428更新]: https://blog.csdn.net/COCO56/article/details/95042145 3. 下载链接 https://www.cnblogs.com/coco56/p/11223189.html 在 视频教程\Cocos2D-X 那里。 4. cocos2d-xx Lua+JS+C++教学视频 ├─1、cocos2d-Lua教学视频 │ │ 04、详解Cocos Code IDE开发Lua JavaScript Cocos2d-x游戏的使用 │ │ │ ├─01、Lua 语言基础 │ │ 1、Lua语言介绍 │ │ 2、Lua语言基础之基本语法 │ │ 3、Lua语言基础之表 │ │ 4、Lua语言基础之数组 │ │ 5、Lua语言面向对象之复制表的方式面向对象 │ │ 6、Lua语言面向对象之函数闭包的方式面向对象 │ │ 7、使用Lua语言开发Cocos2d-x游戏 │ │ │ ├─02

Android NDK: WARNING: APP_PLATFORM android-9 is larger than android:minSdkVersion 8

眉间皱痕 提交于 2019-11-26 16:12:19
问题 I am getting the following warning when compiling my cocos2d-x project with cygwin. `/cygdrive/e/project/MyGame/proj.android ` /cygdrive/e/android-ndk-r8e/build/core/add-application.mk:128: Android NDK: WARNING:APP_PLATFORM android-9 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml I am using NDK version r8e. My minimum SDK version is 8 in my AndroidManifest.xml but i do not specify APP_PLATFORM as android-9 anywhere. How can i change this to 8. Can anyone tell me how to solve

VS 2015 compiling cocos2d-x 3.3 error “fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration”

一个人想着一个人 提交于 2019-11-26 15:53:09
问题 When I compile cocos2d-x (version 3.3) using visual studio 2015, an error occured, saying: fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration (编译源文件 ..\base\s3tc.cpp) The source code is: #ifdef snprintf #error Macro definition of snprintf conflicts with Standard Library function declaration #endif Anybody can tell me what's wrong? 回答1: Until now, Many libraries & programs used snprintf() function by defining it as _snprintf() , since

Cocos移植到Android的一些问题-中文乱码问题

青春壹個敷衍的年華 提交于 2019-11-26 15:49:02
Android平台版本和设备碎片化很严重,因此从Win32平台移植到Android平台会有很多问题,下面是我们归纳的从Win32平台移植到Android平台遇到的一些问题。 在Android平台中文乱码并不是一个问题,或者说在Android平台是不应该出现中文乱码的。这个问题究其根本是因为我们在Windows下采用开发Android应用导致的问题。默认情况下Windows中文环境是采用GBK编码,源程序文件HelloWorldScene.cpp编码默认也是GBK,如果源程序代码中如果有中文输入,例如下面的代码: [html] view plain copy void HelloWorld::OnClickMenu1(Object* pSender) { NoteDAO::initDB(); NoteDAO::create("2008-08-16 10:01:02", "初始化数据。"); } void HelloWorld::OnClickMenu2(Object* pSender) { string currentTime = MyUtility ::getCurrentTime(); log("%s",currentTime.c_str()); NoteDAO::create(currentTime, "欢迎使用MyNote。"); } 这样程序编译之后的中文编码还是GBK

Getting the dimensions of the soft keyboard

大憨熊 提交于 2019-11-26 07:27:36
问题 Is there a way to know the size of the keyboard that is shown in the screen? I am using Cocos2dx for programming, but I want to know the height of the keyboard shown in screen in the part of Android or the part of Cocos, it does not matter. I know that Keyboard has a getHeight() method but I don\'t want to create new keyboards, i want to use the default one. 回答1: We did it with this myLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {

The Completest Cocos2d-x Tutorial & Guide List [closed]

半城伤御伤魂 提交于 2019-11-26 02:18:56
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++ . Beginners Official wiki links How to start in multi-platform HERE The best one. Amazing, XCODE (MAC) and ECLIPSE (LINUX) tutorial. A simple guide to Start Another multi-platform Guide Awesome guide to

The Completest Cocos2d-x Tutorial & Guide List [closed]

回眸只為那壹抹淺笑 提交于 2019-11-26 01:50:01
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not