您的位置:首页 > 其它

素材的多样性

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)
重置一个随机值
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: