// Learn TypeScript: // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/typescript.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html // Learn Attribute: // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html export default class Define { //定的方向枚举 static left:number = 0; static right:number = 1; static center:number = 2; static down:number = 3; static up:number = 4; //大炮获取方式 /* 方式类别 1.默认获得 2.看广告 3.累计得分 4.金币等级 */ static cannonDefault:number = 1 static cannonVideo:number = 2 static cannonTotalScore:number = 3 static cannonDropGoldLevel:number = 4 static cannonShare:number = 5; static cannonOffLine:number = 6; static cannonMoveSpeed:number = 5000; static strVersion:string = "1.2.5"; static gameId:string = "001"; //自己的游戏 人间大炮 //static gameId:string = "002"; //全民大炮 // public static strIp = "http://192.168.1.103:"; // //public static strIp = "http://39.107.243.224:"; //外网 public static strIp = "https://fullfire.hottoogame.com"; //外网 public static strPort = ""; static bulletMacCount:number = 18; //定义的组 static groupDefult:string = "default"; static groupWall:string = "wall"; static groupBall:string = "ball"; static groupBullet:string = "bullet"; static groupMoveBall:string = "moveBall"; static ballBreakOffsetX:number = 60 static ballBreakOffsetY:number = 150 static ballMaxCount:number = 3; //球体弹起来的最大高度 //static ballRestitutionMaxArr:number[] = [1000,1100,1200,1300]; static ballRestitutionMaxArr:number[] = [1000*0.7,1100*0.7,1200*0.7,1300*0.7]; static ballColorRGBArr:cc.Color[] = [ new cc.Color(113, 211, 62), new cc.Color(42, 216, 195), new cc.Color(29, 197, 204), new cc.Color(31, 129, 218), new cc.Color(37, 49, 197), new cc.Color(86, 37, 204), new cc.Color(122, 36, 211), new cc.Color(164, 29, 204), new cc.Color(228, 25, 138), new cc.Color(231, 45, 45), ]; static goldTextRGBArr:cc.Color[] = [ new cc.Color(255, 242, 11), new cc.Color(63, 235, 170), new cc.Color(46, 197, 252), new cc.Color(43, 100, 255), new cc.Color(255, 97, 244), new cc.Color(255, 74, 77), ]; //加载资源的类型 static loadTypePrefab:number = 0; static viewUrl:string[] = ["MainView","UpgradeView","BattleView", "GameResultView","RankingView","ReviveView", "GameWinView","OffLineRewardView","SelectCannonView","BlackView","SelectSceneView"]; //界面的ID static viewMain:number = 0; static viewUpgrade:number = 1; static viewBattle:number = 2; static viewGameResult:number = 3; static viewRanking:number = 4; static viewRevive:number = 5; static viewGameWin:number = 6; static viewOffLineReward:number = 7; static viewSelectCannon:number = 8; static viewBlack:number = 9; static viewSelectScene:number = 10; static dataKeyGold:string = "dataKeyGold"; static dataKeyLevel:string = "dataKeyLevel"; static dataKeyShootCount:string = "dataKeyShootCount"; static dataKeyMaxScore:string = "dataKeyMaxScore"; static dataKeyFirePower:string = "dataKeyFirePower"; static dataKeyGoldDropLevel:string = "dataKeyGoldDropLevel"; static dataKeyOffLine = "dataKeyOffLine"; static dataKeyLastQuitTime = "dataKeyLastQuitTime"; static datakeyDate = "datakeyDate"; static datakeyCannon = "datakeyCannon"; static dataKeyTotalScore = "dataKeyTotalScore"; //玩家累积积分 static dataKeyCurUseCannonId = "dataKeyCurUseCannonId"; //玩家累积积分 static dataKeyBrate = "dataKeyBrate"; //震动 static datakeyShowAddHomeTag = "datakeyShowAddHomeTag"; //震动 static datakeyScene:string = "datakeyScene" //当前的场景 static soundBackgound:number = 0;//背景音乐 //粒子效果 static effectParticleToground:number = 0; //播放声音 static soundBullet:number = 0; static soundButton:number = 1; static soundGetcoin:number = 2; static soundStonebomb:number = 3; static soundStonetoground:number = 4; }