这行命令:
// 星星产生后消失时间的随机范围
maxStarDuration: 0,
minStarDuration: 0,
《快速制作一个小游戏》源代码:
properties: {
starPrefab: {
default: null,
type: cc.Prefab
},
// 星星产生后消失时间的随机范围
maxStarDuration: 0,
minStarDuration: 0,
// 地面节点,用于确定星星生成的高度
ground: {
default: null,
type: cc.Node
},
// Player 节点,用于获取主角弹跳的高度,和控制主角行动开关
player: {
default: null,
type: cc.Node
},
// score label 的引用
scoreDisplay: {
default: null,
tooltip: "The score 66666",
type: cc.Label
},
// 得分音效资源
scoreAudio: {
default: null,
type: cc.AudioClip
},
},
