Cocos2d-JS提供了一个音频CocosDenshion引擎。具体使用的API是cc.AudioEngine。cc.AudioEngine有几个常用的函数: playMusic(url, loop)。播放背景音乐,参数url是播放文件的路径,参数loop控制是否循环播放,缺省...
分类:
Web程序 时间:
2015-04-06 19:00:36
阅读次数:
266
: 是用来插入背景音乐,但只适用于 ie,其参数设定不多。如下 src="your.mid"设定 midi 档案及路径,可以是相对或绝对。autostart=true是否在音乐档下载完之后就自动播放。true 是,false 否 (内定值)。loop=infinite是否自动反复播放。loop...
分类:
其他好文 时间:
2015-04-06 18:30:55
阅读次数:
104
Cocos2d-JS提供了一个音频CocosDenshion引擎。具体使用的API是cc.AudioEngine。cc.AudioEngine有几个常用的函数:playMusic(url, loop)。播放背景音乐,参数url是播放文件的路径,参数loop控制是否循环播放,缺省情况下false。stopMusic()。停止播放背景音乐。pauseMusic()。暂停播放背景音乐。resumeMus...
分类:
Web程序 时间:
2015-04-05 22:00:05
阅读次数:
158
2.2 loop unrolling 循环展开前面enum一节介绍的是和template联合,引发编译器递归的奇妙作用。template本身无需enum配合也可以达到递归的效果。// test template recursive for loop unrolling
cout << "test 2: template recursive for loop unrolling" << en...
分类:
编程语言 时间:
2015-04-05 17:32:12
阅读次数:
222
{template common/header}{eval $arr = array( 'aa'=>'dz', 'bb'=>'zd' )}{TIMESTAMP}{loop $arr $k $v}{$k} = {$v}{/loop}33...
分类:
Web程序 时间:
2015-04-05 11:46:36
阅读次数:
128
怎么在前台页面调用dedecms自定义表单的内容呢,其实方法很简单,下面是调用表单的代码{dede:loop table='dede_sfgame' sort='' row='5' if=''}[field:ccdec/]{/dede:loop}其中table='dede_sfgame'中的dede...
分类:
其他好文 时间:
2015-04-05 10:24:27
阅读次数:
130
使用Actor的并发,消息传递,Actor类,actor方法,receive和receiveWithin方法,react和reactWithin方法,loop和loopWhile,控制线程执行,
分类:
其他好文 时间:
2015-04-04 14:55:40
阅读次数:
142
问题:
杨辉三角
#include
#include
int c(int x, int y);
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) ...
分类:
其他好文 时间:
2015-04-04 12:19:16
阅读次数:
150
问题:
汉诺塔。
#include
#include
void hanoi(int N, char A, char B, char C);
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int ar...
分类:
其他好文 时间:
2015-04-04 12:17:57
阅读次数:
184
解析引擎概述 模板设计规范 代码参考标记参考:arclist(artlist,likeart,hotart,imglist,imginfolist,coolart,specart)field channel mytag vote friendlink mynews loop channelart.....
分类:
其他好文 时间:
2015-04-04 10:41:03
阅读次数:
133