更新
This commit is contained in:
parent
d028d5ab1c
commit
6389a54bff
|
|
@ -198,9 +198,11 @@ export default class MapConroler extends cc.Component {
|
|||
private magicEffectIndex: number = 0;
|
||||
private magicEffect1: cc.Node = null; // 第一套特效节点
|
||||
private magicEffect2: cc.Node = null; // 第二套特效节点
|
||||
questionArray: any[];
|
||||
questionArray: any[]; //问号块数组
|
||||
blocks2: any[];
|
||||
boom17Blocks: any;
|
||||
boom17Blocks: any; //消除炸弹块数组
|
||||
|
||||
vineBlock: any; //地图藤蔓数组
|
||||
|
||||
// ============================================
|
||||
// Cocos生命周期 - onLoad方法
|
||||
|
|
@ -252,6 +254,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.blocks2 = [];
|
||||
this.adhesiveBlock = []; //粘合快数组
|
||||
this.boom17Blocks = []; //消除炸弹块数组(type=17)
|
||||
this.vineBlock = []; //地图藤蔓数组
|
||||
this.barrierBlock = [];
|
||||
this.teamBlocks = []; //可移动地板块组队
|
||||
this.leftDoors = []; //左门
|
||||
|
|
|
|||
|
|
@ -807,6 +807,8 @@ export default class Wall extends cc.Component {
|
|||
this.rightTween.stop();
|
||||
this.rightTween = null;
|
||||
}
|
||||
|
||||
if (this.openNode) {
|
||||
// 如果门要打开,确保scaleX是1;如果要关闭,确保scaleX接近0
|
||||
if (this.open == true) {
|
||||
if (this.openNode.children[0].scaleX < 1 && this.openNode.children[0].scaleX > 0.01) {
|
||||
|
|
@ -818,12 +820,11 @@ export default class Wall extends cc.Component {
|
|||
this.openNode.children[0].scaleX = 0.01;
|
||||
}
|
||||
}
|
||||
|
||||
// 计算目标scale值
|
||||
let fill = this.openNode.children[0].scaleX == 1 ? 0.01 : 1;
|
||||
if (this.openNode.children[0].scaleX < 0) fill = -fill;
|
||||
|
||||
// 播放左边门的动画
|
||||
if (this.openNode.children[0]) {
|
||||
this.leftTween = cc.tween(this.openNode.children[0])
|
||||
.to(0.3, { scaleX: this.openNode.children[0].scaleX < 0 ? -fill : fill })
|
||||
.call(() => {
|
||||
|
|
@ -834,8 +835,9 @@ export default class Wall extends cc.Component {
|
|||
this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -1 : 1;
|
||||
})
|
||||
.start();
|
||||
|
||||
}
|
||||
// 播放右边门的动画
|
||||
if (this.openNode.children[1]) {
|
||||
this.rightTween = cc.tween(this.openNode.children[1])
|
||||
.to(0.3, { scaleX: this.openNode.children[1].scaleX < 0 ? -fill : fill })
|
||||
.call(() => {
|
||||
|
|
@ -846,19 +848,30 @@ export default class Wall extends cc.Component {
|
|||
this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -1 : 1;
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
if (this.openNode) {
|
||||
if (this.open == true) {
|
||||
this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -0.01 : 0.01;
|
||||
if (this.openNode.children[0])
|
||||
this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -0.01 : 0.01;
|
||||
if (this.openNode.children[1])
|
||||
this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -0.01 : 0.01;
|
||||
}
|
||||
else {
|
||||
this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -1 : 1;
|
||||
if (this.openNode.children[0])
|
||||
this.openNode.children[0].scaleX = this.openNode.children[0].scaleX < 0 ? -1 : 1;
|
||||
if (this.openNode.children[1])
|
||||
this.openNode.children[1].scaleX = this.openNode.children[1].scaleX < 0 ? -1 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
}, 3100);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// 改变冻结门的冻结步数
|
||||
// 功能:当方块踩上冻结门时,减少冻结步数,如果步数为0则解除冻结
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ export class GameConfig {
|
|||
vibrateOpen: true, //震动
|
||||
coinnum: 0, //每局的金币数
|
||||
paid_user: false, //是否是付费用户
|
||||
version: "1.9.72", //版本号
|
||||
version: "1.9.73", //版本号
|
||||
shushu_DistinctId: "", //数数访客ID
|
||||
shushu_AccountId: "", //数数账号ID
|
||||
uid: "", //用户和后端唯一id
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 51 KiB |
|
|
@ -8,8 +8,8 @@
|
|||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"width": 1022,
|
||||
"height": 959,
|
||||
"platformSettings": {},
|
||||
"subMetas": {}
|
||||
}
|
||||
173
assets/custom/Json/level1621.json
Normal file
173
assets/custom/Json/level1621.json
Normal file
|
|
@ -0,0 +1,173 @@
|
|||
{
|
||||
"LEVEL_INFO": [
|
||||
{
|
||||
"risefall": [
|
||||
{
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"vine": 5
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 1,
|
||||
"vine": 4
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 1,
|
||||
"vine": 3
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 2,
|
||||
"vine": 2
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 3,
|
||||
"vine": 1
|
||||
},
|
||||
{
|
||||
"x": 1,
|
||||
"y": 7,
|
||||
"vine": 7
|
||||
},
|
||||
{
|
||||
"x": 2,
|
||||
"y": 7,
|
||||
"vine": 6
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 7,
|
||||
"vine": 5
|
||||
},
|
||||
{
|
||||
"x": 3,
|
||||
"y": 8,
|
||||
"vine": 4
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 8,
|
||||
"vine": 3
|
||||
},
|
||||
{
|
||||
"x": 5,
|
||||
"y": 8,
|
||||
"vine": 2
|
||||
},
|
||||
{
|
||||
"x": 6,
|
||||
"y": 8,
|
||||
"vine": 1
|
||||
}
|
||||
],
|
||||
"id": "1621",
|
||||
"map": [
|
||||
8,
|
||||
10
|
||||
],
|
||||
"time": 80,
|
||||
"gap": []
|
||||
}
|
||||
],
|
||||
"BLOCK_INFO": [
|
||||
[
|
||||
{
|
||||
"block": 1,
|
||||
"color": 1,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": 120,
|
||||
"z": 0
|
||||
},
|
||||
"id": 210
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 1,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": -360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 220
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 1,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 240,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"id": 230
|
||||
},
|
||||
{
|
||||
"block": 20,
|
||||
"color": 1,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 240,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 240
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 1,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"id": 250
|
||||
}
|
||||
]
|
||||
],
|
||||
"WALL_INFO": [
|
||||
[
|
||||
{
|
||||
"id": 1622,
|
||||
"num": 24,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 3
|
||||
},
|
||||
{
|
||||
"id": 1623,
|
||||
"num": 25,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 1624,
|
||||
"num": 26,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 1625,
|
||||
"num": 3,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 1626,
|
||||
"num": 4,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
6
assets/custom/Json/level1621.json.meta
Normal file
6
assets/custom/Json/level1621.json.meta
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"ver": "1.0.2",
|
||||
"uuid": "5c409b1b-0f3c-4768-9f06-73f10c119e1a",
|
||||
"importer": "json",
|
||||
"subMetas": {}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user