cocos2d-x3.2: 帮我 这是错误. 豪华版《飞机大战》

我看到这个教程。但我已经得到了问题。

http://cn.cocos2d-x.org/tutorial/lists?id=72

https://github.com/superman-t/PlaneGame

BulletSprite.cpp.

bool BulletSprite::init() { if (!Sprite::init()) { return false; } this->schedule(schedule_selector(BulletSprite::ShootBullet)); return true;}
classes/BulletSprite.cpp:8:15: Call to non-static member function without an object argumentclasses/BulletSprite.cpp:8:15: ‘init’ is a protected member of 'cocos2d::Sprite’两个错误.但我不知道。我不能这样做如何解决它。请帮我. 我不能睡3天。我不能修复它。请帮我.

Are you a foreigner?

The sentences are seem to be translated by google.

Sprite::init()是一个protect方法,所以你不能直接在外部调用。

你的BulletSprite要public继承Sprite,在.h文件里

改成Layer:init()

“请帮我. 我不能睡3天。我不能修复它。请帮我.”
我怎么感觉楼主的中文是用谷歌翻译过来的。。。楼主是哪国人?
Which country are you from? Japan?

… korea… i am so sorry… but … i want to study cocos2d-x…

:12:怪不得问人的标题很雷人。。。

:868:
偶尔E往事 和你 。。。有好灵敏的判断能力。。。
竟然 能判断出是外国 人。

Hi, you can go to the english official bbs:

http://discuss.cocos2d-x.org/

yes i do. but…sometimes i need Chinese help.

here is a corrected version.
it’s happy to help foreign friends.

cocos2d-x 3.2 Release Version

upload error :9:

Classes.zip (18 KB)

低调 低调 :900:

:870::870:

class BulletSprite : public Sprite{
//some code
}

能把资源发给我吗 我邮箱735336643@qq.com 好人一生平安

能把游戏资源发给我吗 我qq735336643 谢谢啊

我是把BulletSprite2.cpp给删了,然后那个error就没了。但是运行项目还是有问题,是个白框,什么图片也没有,而且闪了一下就没了