基于WiEngine游戏发动机-角色基本效果

基于WiEngine游戏引擎--角色基本效果streak效果有点像彗星的尾巴,用来表示物体移动速度快。streak有strip,

基于WiEngine游戏引擎--角色基本效果


streak效果有点像彗星的尾巴,用来表示物体移动速度快。streak有strip, spot, blade, line四种类型,本例中使用的使spot,对于wiEngine的结构体为MS_STYLE_SPOT。

定义streak,如下:

wyAudioManager::getInstance()->playBackgroundMusic(RES("R.raw.bg"), FORMAT_WAV, -1);