function MyApp:ctor() --表示MyApp的构造函数
MyApp.super.ctor(self)
end
function MyApp:run() --MyApp类的run()函数
CCFileUtils:sharedFileUtils():addSearchPath("res/") --添加路径(所有的路径都在res中放着)
self:enterScene("MainScene") --进入场景
end
return MyApp
文章简单介绍从Cocos2d-x向Cocos Creator转移过程中,原先的Action动作在Creator中如何实现。
本文给出cocos2d-x中CCSpriteFrameCache类的使用思路,并对比了Cocos Creator 3.8环境下的实现方案,但有关更高级的缓存方案并没有讨论,请注意。
Quick-Cocos2d-X 核心framework 目录结构与功能介绍 在前一篇文章 Quick-Cocos2D-X 并成功运行示例代码 中我们介绍了 Windows 下,从下载,熟悉工程包中每个目录的用处,成功使用 Quick-Cocos2d-X 所带的Player成功运行示例代码,并创建工程的快速启动图标。 在本文中,我们将要去了解 Qu
Cocos2D-X 讨论学习群:244959010
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M