播放背景音乐/音效 播放背景音乐/音效 通过下面的方式,播放一个音频文件作为背景音乐或者音效,可以控制音乐是否循环播放。 #include "AudioEngine.h" using namespace cocos2d :: experimental ; // set the background music and co...
进阶话题 广告牌(BillBoard) 3D 粒子系统 进阶话题 广告牌(BillBoard) 广告牌(BillBoard)是一种特殊的精灵对象,它总是面对摄像机,摄像机旋转,广告牌对象也会跟着旋转。广告牌在 3D 游戏中是非常常见的,比如 3D 角色头顶的文字,血条,比如滑雪比赛场景里的树木,岩石。 这就是摄像机(Camera)与广告牌(...
How to call Objective-C functions using JavaScript on iOS/Mac Objective-C Classes Objective-C Methods Usage Executing JavaScript in Objective-C Type Support How to call Ob...
How to call Objective-C functions using JavaScript on iOS/Mac Objective-C Classes Objective-C Methods Usage Executing JavaScript in Objective-C Type Support How to call Obj...
How to call Objective-C functions using JavaScript on iOS/Mac Objective-C Classes Objective-C Methods Usage Executing JavaScript in Objective-C Type Support How to call Ob...