/** * 定义一些常量 */ //游戏类型 export enum GameType{ none = -1, //初始化 无 normal = 0, //正常模式 关卡模式 challenge = 1, //挑战模式 } export enum SceneName { start = 'StartScene', game = 'MinerGame' } const {ccclass, property} = cc._decorator; @ccclass export default class Define{ public static eneryTime = 300 //300; //体力恢复时间 5分钟 public static maxEnery = 10; //最大体力 public static countTime60 = 60 ; //倒计时 60s public static countTime90 = 90 ; //倒计时 90s public static countTime120 = 120 ; //倒计时 120s public static kaskinnum0 = 11 // public static totalSeZhi = 34 //1-10 色值 public static mubiaosezhi = [ [102,183,200], [253,205,74], [190,229,121], [117,134,237], [97,185,95], [187,125,96], [248,145,135], [205,186,79], [205,105,218], [214,95,94], ] public static readonly cl_gamedata = [ { id:0, dikuangnum:27, zuhenum:51, //51 24 dizuoscale:1, spacex:0, spacey:0, kong:[7,10,13], suo:[16,19,23], senum:8, mubiaoscale:1 } ] } export enum OverType{ relive, gameend, gamewin }