Cocos2d JS 之消灭星星(十) 关卡配置

关卡配置,包括每个关卡的通关分数和当前关卡的星星数量

  1 /*
  2  * 关卡配置
  3  * 每一关的通过分数和星星数量配置档
  4  */
  5 var levelData =
  6 [
  7  {level:1, standards:1000, starNumber:4},
  8  {level:2, standards:3000, starNumber:4},
  9  {level:3, standards:5000, starNumber:4},
 10  {level:4, standards:7000, starNumber:4},
 11  {level:5, standards:9000, starNumber:4},
 12  {level:6, standards:11000, starNumber:4},
 13  {level:7, standards:13000, starNumber:4},
 14  {level:8, standards:15000, starNumber:4},
 15  {level:9, standards:17000, starNumber:4},
 16  {level:10, standards:19000, starNumber:5},
 17  {level:11, standards:21000, starNumber:5},
 18  {level:12, standards:23000, starNumber:5},
 19  {level:13, standards:25000, starNumber:5},
 20  {level:14, standards:27000, starNumber:5},
 21  {level:15, standards:29000, starNumber:5},
 22  {level:16, standards:31000, starNumber:5},
 23  {level:17, standards:33000, starNumber:5},
 24  {level:18, standards:35000, starNumber:5},
 25  {level:19, standards:37000, starNumber:5},
 26  {level:20, standards:39000, starNumber:6},
 27  {level:21, standards:41000, starNumber:6},
 28  {level:22, standards:43000, starNumber:6},
 29  {level:23, standards:45000, starNumber:6},
 30  {level:24, standards:47000, starNumber:6},
 31  {level:25, standards:49000, starNumber:6},
 32  {level:26, standards:51000, starNumber:6},
 33  {level:27, standards:53000, starNumber:6},
 34  {level:28, standards:55000, starNumber:6},
 35  {level:29, standards:57000, starNumber:6},
 36  {level:30, standards:59000, starNumber:7},
 37  {level:31, standards:61000, starNumber:7},
 38  {level:32, standards:63000, starNumber:7},
 39  {level:33, standards:65000, starNumber:7},
 40  {level:34, standards:67000, starNumber:7},
 41  {level:35, standards:69000, starNumber:7},
 42  {level:36, standards:71000, starNumber:7},
 43  {level:37, standards:73000, starNumber:7},
 44  {level:38, standards:75000, starNumber:7},
 45  {level:39, standards:77000, starNumber:7},
 46  {level:40, standards:79000, starNumber:8},
 47  {level:41, standards:81000, starNumber:8},
 48  {level:42, standards:83000, starNumber:8},
 49  {level:43, standards:85000, starNumber:8},
 50  {level:44, standards:87000, starNumber:8},
 51  {level:45, standards:89000, starNumber:8},
 52  {level:46, standards:91000, starNumber:8},
 53  {level:47, standards:101000, starNumber:8},
 54  {level:48, standards:103000, starNumber:8},
 55  {level:49, standards:105000, starNumber:8},
 56  {level:50, standards:107000, starNumber:9},
 57  {level:51, standards:109000, starNumber:9},
 58  {level:52, standards:111000, starNumber:9},
 59  {level:53, standards:113000, starNumber:9},
 60  {level:54, standards:115000, starNumber:9},
 61  {level:55, standards:117000, starNumber:9},
 62  {level:56, standards:119000, starNumber:9},
 63  {level:57, standards:121000, starNumber:9},
 64  {level:58, standards:123000, starNumber:9},
 65  {level:59, standards:125000, starNumber:9},
 66  {level:60, standards:127000, starNumber:10},
 67  {level:61, standards:129000, starNumber:10},
 68  {level:62, standards:131000, starNumber:10},
 69  {level:63, standards:133000, starNumber:10},
 70  {level:64, standards:135000, starNumber:10},
 71  {level:65, standards:137000, starNumber:10},
 72  {level:66, standards:139000, starNumber:10},
 73  {level:67, standards:141000, starNumber:10},
 74  {level:68, standards:143000, starNumber:10},
 75  {level:69, standards:145000, starNumber:10},
 76  {level:80, standards:147000, starNumber:11},
 77  {level:71, standards:149000, starNumber:11},
 78  {level:72, standards:151000, starNumber:11},
 79  {level:73, standards:153000, starNumber:11},
 80  {level:74, standards:155000, starNumber:11},
 81  {level:75, standards:157000, starNumber:11},
 82  {level:76, standards:159000, starNumber:11},
 83  {level:77, standards:161000, starNumber:11},
 84  {level:78, standards:163000, starNumber:11},
 85  {level:79, standards:165000, starNumber:11},
 86  {level:80, standards:167000, starNumber:12},
 87  {level:81, standards:169000, starNumber:12},
 88  {level:82, standards:171000, starNumber:12},
 89  {level:83, standards:173000, starNumber:12},
 90  {level:812, standards:175000, starNumber:12},
 91  {level:85, standards:177000, starNumber:12},
 92  {level:86, standards:179000, starNumber:12},
 93  {level:87, standards:181000, starNumber:12},
 94  {level:88, standards:183000, starNumber:12},
 95  {level:89, standards:185000, starNumber:12},
 96  {level:90, standards:187000, starNumber:13},
 97  {level:91, standards:189000, starNumber:13},
 98  {level:92, standards:191000, starNumber:13},
 99  {level:93, standards:193000, starNumber:13},
100  {level:94, standards:195000, starNumber:13},
101  {level:95, standards:197000, starNumber:13},
102  {level:96, standards:199000, starNumber:13},
103  {level:97, standards:201000, starNumber:13},
104  {level:98, standards:203000, starNumber:13},
105  {level:99, standards:205000, starNumber:13},
106  {level:100, standards:207000, starNumber:14}
107  ];
时间: 2024-08-04 14:23:04

Cocos2d JS 之消灭星星(十) 关卡配置的相关文章

Cocos2d JS 之消灭星星(十二) 游戏帮助

前面游戏的各个部分都完善了,游戏共一百关,后面还有使用粒子系统的部分,给游戏添加特效:写得有点粗糙 1 /* 2 * @游戏帮助说明 3 */ 4 var GameHelpLayout = ccui.Layout.extend( 5 { 6 ctor:function() 7 { 8 this._super(); 9 this.zinit(); 10 this.setBackButton(); 11 }, 12 //还回按钮 13 setBackButton:function() 14 { 15

Cocos2d JS 之消灭星星(九) 处理星星类之——移动和消灭星星

1 /* 2 * 本层拥有处理星星的实例化以及对星星的操作 3 * 1/排列星星 4 * 2/移动和删除星星 5 */ 6 var GameStarLayout = ccui.Layout.extend( 7 { 8 size:null, 9 starArr:[],//存放点击与被点击状态的星星资源 10 starObjArr:[],//存放游戏中星星的二位数组 11 firstTouchStar:null,//第一次选择的星星,用于判断两次选择的星星颜色是否一致 12 isSelected:f

Cocos2d JS 之消灭星星(六) 创建星星类

1 /* 2 * 创建星星类(所有的星星都在这里创建,星星拥有的所有性都在这里实现) 3 */ 4 var GameCreateStar = ccui.ImageView.extend( 5 { 6 type:0,//星星的类型(不同数字代表不同颜色的星星); 7 isSelected:false,//是否选中 8 col:null,//水平方向排列位置(0-9) 9 row:null,//竖直方向排列位置(0-9) 10 normal:null,//通常状态图片纹理 11 selected:n

Cocos2d JS 之消灭星星(三) 进入游戏过渡场景

1 /* 2 * 游戏过渡场景,主要作用是在每次进入游戏或者进入下一关卡时进行过渡,显示当前的关卡以及通过该关卡要达到的分数; 3 */ 4 var TransitionScene = ccui.Layout.extend( 5 { 6 size:null, 7 ctor:function() 8 { 9 this._super(); 10 this.zinit(); 11 this.setLabel(); 12 this.gotoGameMainScene(); 13 }, 14 //设置显示

Cocos2d JS 之消灭星星(七) 处理星星类之——排列星星

1 /* 2 * 本层拥有处理星星的实例化以及对星星的操作 3 */ 4 var GameStarLayout = ccui.Layout.extend( 5 { 6 size:null, 7 starArr:[],//存放点击与被点击状态的星星资源 8 starObjArr:[],//存放游戏中星星的二位数组 9 ctor:function() 10 { 11 this._super(); 12 this.zinit(); 13 this.layoutStar(); 14 }, 15 //将星

Cocos2d JS 之消灭星星(五) 游戏主场景

1 /* 2 * 游戏主场景 3 */ 4 var GameMainScene = ccui.Layout.extend( 5 { 6 ctor:function() 7 { 8 this._super(); 9 this.zinit(); 10 this.setTopInfor(); 11 this.addStarLayout(); 12 }, 13 //游戏主场景顶部显示信息 14 setTopInfor:function() 15 { 16 var gameTopInfo = new Ga

Cocos2d JS 之消灭星星(四) 游戏主场景顶部显示

1 /* 2 * 游戏主场景顶部显示信息 3 */ 4 var GameTopInformation = ccui.Layout.extend( 5 { 6 size:null, 7 isPause:false,//是否暂停游戏 8 maxScoreLabel:null,//最高纪录 9 getScoreNum:null,//当前得分 10 currentLevel:null,//当前关卡 11 ctor:function() 12 { 13 this._super(); 14 this.zin

Cocos2d JS 之消灭星星(十一) 本地保存玩家信息

当玩家退去游戏后,下次进入游戏可以接着上一次的游戏进度继续游戏; 1 /* 2 * win7下本地存储玩家的数据 3 */ 4 var PlayerLocalData = {}; 5 /* 6 * 玩家数据结构 7 */ 8 var playerData = function() 9 { 10 var playerD = [ 11 { 12 currentLevel:1, //玩家关卡 13 gameScore:0, //游戏得分 14 maxScore:0 //游戏最高得分 15 }]; 16

Cocos2d-x 3.4 之 消灭星星 > 第三篇(终) <

***************************************转载请注明出处:http://blog.csdn.net/lttree******************************************** 满满的泪啊, 从5月22日写的第一篇,于6月6日结束. 中间各种课程.上机.大作业穿插,焦头烂额的, 最后终于做出来差不多的样子了... PS:写博客这几天,宿舍一直停电状态...真是醉了.. 本篇实现的功能: > 粒子特效 > 音乐音效 > 漂浮文字