gpt4 book ai didi

android - Eclipse & Cocos2d-x : My First Project, 我更改了 HelloWorldScene.cpp,但部署的游戏中没有发生更改?

转载 作者:太空宇宙 更新时间:2023-11-04 13:48:02 25 4
gpt4 key购买 nike

我刚刚开始第一次为 Android 开发。我按照本教程设置了我的 Eclipse IDE,并构建到一个真实的设备上,获得了 cocos2d Logo 和帧速率,标题为“Hello World”。

但是,当我尝试通过改变

// create and initialize a label

auto label = LabelTTF::create("Hello World", "Arial", 24);

// create and initialize a label

auto label = LabelTTF::create("My Awesome Game!", "Arial", 24);

运行游戏时,这些变化不存在...

事实上,我注释掉了整个类,它仍然构建并运行显示“Hello World”...通过注释掉整个类,我选择了所有文本并点击“cmd+/”以便所有“HelloWorldScene.cpp”中的文本已被注释。

我做错了什么?


附言我刚刚注意到控制台中的这些红色文本错误....不知道它们是否有帮助..

[2014-07-22 11:16:47 - KittyKatch] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.damesgames.kittykatch/org.cocos2dx.cpp.AppActivity }
[2014-07-22 11:16:47 - KittyKatch] ActivityManager: Warning: Activity not started, its current task has been brought to the front

还有这些……

Description Resource    Path    Location    Type
Invalid project path: Include path not found (/Users/damianwilliams/Desktop/KittyKatch/cocos2d/cocos/math/kazmath). KittyKatch pathentry Path Entry Problem
Invalid project path: Include path not found (/sources/cxx-stl/gnu-libstdc++/4.8/include). KittyKatch pathentry Path Entry Problem
The value of the field Cocos2dxTextInputWraper.TAG is not used Cocos2dxTextInputWraper.java /libcocos2dx/src/org/cocos2dx/lib line 40 Java Problem
Invalid project path: Include path not found (/platforms/android-18/arch-arm/usr/include). KittyKatch pathentry Path Entry Problem
The import android.util.Log is never used Cocos2dxAccelerometer.java /libcocos2dx/src/org/cocos2dx/lib line 32 Java Problem
Invalid project path: Include path not found (/sources/android/native_app_glue). KittyKatch pathentry Path Entry Problem
Resource leak: 'inputStream' is never closed Cocos2dxETCLoader.java /libcocos2dx/src/org/cocos2dx/lib line 56 Java Problem
The import android.os.Build is never used Cocos2dxAccelerometer.java /libcocos2dx/src/org/cocos2dx/lib line 36 Java Problem
Invalid project path: Duplicate path entries found (/KittyKatch [Output path]), path: [/KittyKatch]. KittyKatch pathentry Path Entry Problem
The method dumpMotionEvent(MotionEvent) from the type Cocos2dxGLSurfaceView is never used locally Cocos2dxGLSurfaceView.java /libcocos2dx/src/org/cocos2dx/lib line 354 Java Problem

最佳答案

右键单击您的项目,

然后点击Build Project,使修改生效。

关于android - Eclipse & Cocos2d-x : My First Project, 我更改了 HelloWorldScene.cpp,但部署的游戏中没有发生更改?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24883783/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com