素材的多样性
2016-06-30 08:55
211 查看
this.color = cc.color(parseInt(Math.random()*255),parseInt(Math.random()*255),parseInt(Math.random()*255),255)
var EnemyData = {
enemy_1:{
pic:"res/plane.png",
},
enemy_2:{
pic:"res/test_plane.jpg",
},
}
this.enemyData = EnemyData["enemy_"+type]
this.fireTargetCount = 1+Math.random()*(GameConfig.enemy_fire_speed - 1)
重置一个随机值
var EnemyData = {
enemy_1:{
pic:"res/plane.png",
},
enemy_2:{
pic:"res/test_plane.jpg",
},
}
this.enemyData = EnemyData["enemy_"+type]
this.fireTargetCount = 1+Math.random()*(GameConfig.enemy_fire_speed - 1)
重置一个随机值
相关文章推荐
- 设计师最常忽略的UI页面状态:空白状态
- [LeetCode] Water and Jug Problem 水罐问题
- jenkins安装配置
- String类
- Mesh网格编程(一) 流体水
- Div仿框架方法详解
- OpenCV进阶之路:神经网络识别车牌字符
- JQuery实现的动态Table(转)
- 使用深度学习打造智能聊天机器人
- c# 写的一个xml配置工具,自我感觉很强大(wpf)
- 理工Oj 1341 Who will be punished
- Android中弹出对话框的实现
- sqoop安装指南
- Ambiguous mapping. Cannot map 'XXXXXController' method
- 类加载器的双亲委派及打破双亲委派
- 类加载器的双亲委派及打破双亲委派
- 实现Cacti监控nginx运行状态
- mysql -- 索引总结
- 数和二叉树(第七章)
- hive安装指南