测试反应 游戏代码 整理
2016-07-30 09:50
155 查看
flag:null,
this.flag = 0
switch(this.flag) {
//调用方法。让方法有循环
case 0:this.showWaite();break; case 1:this.showToSoon();break; case 2:this.showResult();break; case 3:this.showWaite();break; case 4:this.showWaite();break; }
多次循环
计时器的运用
this.randomTime = Math.floor(Math.random()*10+1); this.schedule(this.showGreen,this.randomTime,1,0); //添加定时器
var action = cc.sequence(cc.fadeOut(1.0),cc.fadeIn(1.0)); //淡入 淡出
this.removeAllChildren();//清除所有控件 //??? this.unscheduleAllCallbacks();//清除定时器
this.date2 = new Date();//记录点击时间
相关文章推荐
- 仿照 游戏算法整理 算法一:A*寻路初探 写了一段代码
- android游戏开发之我的小小游戏1——五子棋游戏之界面的优化、代码整理
- 初步整理了一下ASP.NET Portal Starter Kit代码,供大家参考
- 【转载】 [SAS与常用数据库连接代码整理]
- 最近游戏更新 未整理 无图片 续3
- 整理一些Javascript代码
- 游戏代码部分-------server包
- 数据结构代码整理(1)
- 整理出来的得到汉字拼音的代码.
- MINI-FOOLTRS 游戏代码
- 贪食蛇游戏代码
- 整理了一些初学者常用的代码
- 整理了一些asp初学者常用的代码 (6)
- 最近游戏更新 未整理 无图片
- 最近游戏更新 未整理 无图片 续2
- XY52代码整理和分析
- 代码重构--实践家的快乐游戏
- 整理了一些asp初学者常用的代码 (5)
- 初步整理了一下ASP.NET Portal Starter Kit代码,供大家参考
- 我的QQ游戏之对对碰帮你连代码已经公开了