更新新的 长短变化门功能

This commit is contained in:
COMPUTER\EDY 2025-10-29 14:40:49 +08:00
parent 8eaf8b9f7a
commit 8c3c6c02ec
9 changed files with 843 additions and 24 deletions

View File

@ -190,12 +190,12 @@ export default class Block extends cc.Component {
}
//createAd 为是否创建粘合快图片
init(block_Info, posX, posY, node, createAd) {
if (block_Info.floor) {
console.log("floor:", block_Info.floor)
}
if (block_Info.floorTime) {
console.log("floorTime:", block_Info.floorTime)
}
// if (block_Info.floor) {
// console.log("floor:", block_Info.floor)
// }
// if (block_Info.floorTime) {
// console.log("floorTime:", block_Info.floorTime)
// }
this.block_Info = this.jsonDeepClone(block_Info);
if (node) this.block_Info.node = node;
this.type = block_Info.type;
@ -1265,6 +1265,7 @@ export default class Block extends cc.Component {
resetFloor() {
this.block_Info.floor = null;
this.block_Info.floorTime = null;
for (let i = 0; i < this.node.children.length; i++) {
if (this.node.children[i].name == "floor") {
this.node.children[i].active = false;
@ -1281,6 +1282,9 @@ export default class Block extends cc.Component {
this.node.getChildByName("freeze").opacity = 255;
}
}
if (this.type == BlockType.) {
this.initColor();
}
}
initBlocks() {
@ -1871,6 +1875,13 @@ export default class Block extends cc.Component {
this.node.getChildByName("freeze").opacity = 0;
}
}
if (this.type == BlockType.) {
for (let j = 0; j < this.node.children.length; j++) {
if (this.node.children[j].name == "floor") {
this.node.children[j].active = false;
}
}
}
//
// freeze.getChildByName("time").setPosition(posConfig.pos5.x - 10 - freezeX, posConfig.pos5.y - 2 - freezeY);

View File

@ -160,6 +160,7 @@ export default class MapConroler extends cc.Component {
hitSoundTime: number;
hammerSpecial: boolean = false;
changeColor: boolean = false; //是否是变色门关
longAndShortWall: any;
// mapInfo: number[][] = [];
onLoad() {
@ -190,6 +191,7 @@ export default class MapConroler extends cc.Component {
this.teamDoors = [];
this.colorDoors = [];
this.revolvingWallArray = []; //旋转门数组
this.longAndShortWall = [];
this.gameWin = false;
this.gameOver = false;
this.gameStart = false;
@ -870,7 +872,9 @@ export default class MapConroler extends cc.Component {
let info = doorInfo[i];
for (let j = 0; j < this.wallArray.length; j++) {
if (info.num == this.wallArray[j].getChildByName("wall").getComponent("Wall").num) {
this.wallArray[j].getChildByName("wall").getComponent("Wall").setTeamDoors();
let over = false;
if (j == this.wallArray.length - 1) over = true;
this.wallArray[j].getChildByName("wall").getComponent("Wall").setTeamDoors(over);
}
}
}
@ -902,6 +906,9 @@ export default class MapConroler extends cc.Component {
this.freezeWall.push(wall);
else if (wall.getChildByName("wall").getComponent("Wall").special == 6)
this.lockWall.push(wall);
if (wall.getChildByName("wall").getComponent("Wall").longAndShort.length > 0) {
this.longAndShortWall.push(wall);
}
break;
case "left":
node.opacity = 250;
@ -922,6 +929,9 @@ export default class MapConroler extends cc.Component {
this.freezeWall.push(wall);
else if (wall.getChildByName("wall").getComponent("Wall").special == 6)
this.lockWall.push(wall);
if (wall.getChildByName("wall").getComponent("Wall").longAndShort.length > 0) {
this.longAndShortWall.push(wall);
}
break;
case "up":
node.opacity = 250;
@ -944,6 +954,9 @@ export default class MapConroler extends cc.Component {
this.freezeWall.push(wall);
else if (wall.getChildByName("wall").getComponent("Wall").special == 6)
this.lockWall.push(wall);
if (wall.getChildByName("wall").getComponent("Wall").longAndShort.length > 0) {
this.longAndShortWall.push(wall);
}
break;
case "down":
node.opacity = 250;
@ -965,6 +978,9 @@ export default class MapConroler extends cc.Component {
this.freezeWall.push(wall);
else if (wall.getChildByName("wall").getComponent("Wall").special == 6)
this.lockWall.push(wall);
if (wall.getChildByName("wall").getComponent("Wall").longAndShort.length > 0) {
this.longAndShortWall.push(wall);
}
break;
case "rightup": case "upright":
node.opacity = 249;
@ -1539,6 +1555,13 @@ export default class MapConroler extends cc.Component {
this.openWall[i].getChildByName("wall").getComponent("Wall").changeLock();
}
}
if (this.longAndShortWall.length != 0) {
// cc.fx.AudioManager._instance.playEffect("lockDoor", null);
for (let i = 0; i < this.longAndShortWall.length; i++) {
if (this.longAndShortWall[i].getChildByName("wall").getComponent("Wall").length > 0)
this.longAndShortWall[i].getChildByName("wall").getComponent("Wall").changeLongAndShort();
}
}
}
}
@ -1567,6 +1590,10 @@ export default class MapConroler extends cc.Component {
if (wallArray[i].getComponent("Wall").colorArray.length > 0) {
colorArray.push(wallArray[i].getComponent("Wall"));
}
if (wallArray[i].parent.getChildByName("length").active) {
jg = false;
return jg;
}
if (wallArray[i].getComponent("Wall").special == 2) {
console.log("尝试通过开关门:", wallArray[i].getComponent("Wall").open);
}
@ -2824,6 +2851,16 @@ export default class MapConroler extends cc.Component {
else {
if (!this.hammer) {
this.node.parent.getChildByName("Mask").active = true;
this.node.parent.getChildByName("Mask").on(cc.Node.EventType.TOUCH_START, () => {
this.hammerMask.active = false;
this.node.parent.getChildByName("Mask").active = false;
this.hammer = false;
this.ishammer = false;
this.pause = false;
hammerBtn.getComponent("btnControl").setTouch(true);
});
this.hammerMask.active = true;
this.hammer = true;
this.ishammer = true;
@ -3341,8 +3378,8 @@ export default class MapConroler extends cc.Component {
}
else if (this.blocks[i].getComponent("Block").type == 10) {
if (this.blocks[i].getComponent("Block").block_Info.node) {
if (this.blocks[i].getComponent("Block").block_Info.node.getComponent("Block").block_Info.floor != undefined &&
this.blocks[i].getComponent("Block").block_Info.node.getComponent("Block").block_Info.floor != null) {
if (this.blocks[i].getComponent("Block").block_Info.node.getComponent("Block").block_Info.floor == undefined ||
this.blocks[i].getComponent("Block").block_Info.node.getComponent("Block").block_Info.floor == null) {
nomalArray.push(this.blocks[i].getComponent("Block").block_Info.node);
}
}
@ -3376,6 +3413,7 @@ export default class MapConroler extends cc.Component {
}
}
else if (nomalArray.length == 1) {
console.log("消除一个普通方块");
nomalArray[0].getComponent("Block").eliminate(true);
let time = 0;
if (nomalArray[0].getComponent("Block").type == 1 || nomalArray[0].getComponent("Block").type == 9) {
@ -3407,6 +3445,7 @@ export default class MapConroler extends cc.Component {
else {
let count = 2;
if (this.lockArray.length != 0) {
console.log("没有普通快,魔法消除一个带锁块");
for (let i = 0; i < this.lockArray.length; i++) {
// console.log("没有普通快,魔法消除一个带锁块");
this.lockArray[i].getComponent("Block").eliminate(true);
@ -3417,6 +3456,7 @@ export default class MapConroler extends cc.Component {
}
}
if (count != 0 && this.lockArray2.length != 0) {
console.log("没有普通快魔法消除一带锁块2");
for (let i = 0; i < this.lockArray2.length; i++) {
// console.log("没有普通快,魔法消除一个带锁块");
this.lockArray2[i].getComponent("Block").eliminate(true);
@ -3429,6 +3469,7 @@ export default class MapConroler extends cc.Component {
setTimeout(() => {
if (count != 0) {
console.log("没有普通快,魔法消除一个冻结块");
for (let i = 0; i < this.freezeArray.length; i++) {
// console.log("没有普通快,魔法消除一个冻结块");
// this.freezeArray[i].getComponent("Block").eliminate();

View File

@ -130,7 +130,9 @@ export default class Wall extends cc.Component {
leftTween: any;
rightTween: any;
colorArray: any;
longAndShort: number[] = []; // 长短变化的门
order: boolean = true; // 顺序门
length: number = 0; // 门的长度
// LIFE-CYCLE CALLBACKS:
@ -183,6 +185,7 @@ export default class Wall extends cc.Component {
this.color = this.wall_Info.color;
this.special = this.wall_Info.special;
this.num = this.wall_Info.num;
this.length = this.wall_Info.length;
let name2 = "rotate" + this.wall_Info.length;
this.revolvingNode = this.node.parent.getChildByName("revolving").getChildByName(name2);
if (this.wall_Info.colorArray) {
@ -196,14 +199,23 @@ export default class Wall extends cc.Component {
}
this.initType();
if (this.wall_Info.length > 0) {
this.initColor(this.wall_Info.length);
if (!this.wall_Info.longAndShort) this.initColor(this.wall_Info.length);
MapConroler._instance.wall_Pass.push(this);
}
else this.node.removeComponent("cc.Sprite");
else {
this.node.getComponent(cc.Sprite).spriteFrame = null;
}
if (this.posX != null) {
MapConroler._instance.mapBlocksWall[this.posX][this.posY].getComponent("MapBlock").block_Id = "Wall";
//console.log(this.posX,this.posY,MapConroler._instance.mapBlocksWall[this.posX][this.posY].getComponent("MapBlock").block_Id);
}
// 长短变化的门
if (this.wall_Info.longAndShort) {
this.longAndShort = this.wall_Info.longAndShort.toString().split('').map(Number);
this.order = this.wall_Info.order;
}
}
// setTimeout(() => {
// this.node.getChildByName("num").getComponent(cc.Label).string = ":" + this.node.parent.zIndex;
@ -211,12 +223,16 @@ export default class Wall extends cc.Component {
}
setTeamDoors() {
setTeamDoors(over) {
if (this.wall_Info.length > 0) {
this.setLongAndShort();
MapConroler._instance.teamDoors = [];
}
MapConroler._instance.teamDoors.push(this);
this.teamDoors = MapConroler._instance.teamDoors;
if (over == true) {
this.setLongAndShort();
}
}
//创建门的颜色
@ -232,6 +248,7 @@ export default class Wall extends cc.Component {
var spriteFrame = this.wall_SpriteFrames._spriteFrames[name];
if (this.node.getComponent(cc.Sprite)) this.node.getComponent(cc.Sprite).spriteFrame = spriteFrame;
if (this.node.getChildByName("icon")) this.node.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = spriteFrame;
// if (this.node.getChildByName("length")) this.node.parent.getChildByName("length").getComponent(cc.Sprite).spriteFrame = spriteFrame;
}
if (this.down_SpriteFrames) {
let name2 = this.color + "down" + (length + double);
@ -319,7 +336,6 @@ export default class Wall extends cc.Component {
break;
}
if (this.wall_Info.colorArray) {
if (this.wall_Info.length > 0) {
this.maskNode.active = true;
this.setMask();
@ -436,7 +452,7 @@ export default class Wall extends cc.Component {
let color = this.colorArray[1];
if (this.down_SpriteFrames) {
let name = color + "down" + (this.wall_Info.length + double);
let name = color + "down" + (this.length + double);
var spriteFrame = this.down_SpriteFrames._spriteFrames[name];
this.maskNode.getChildByName("color_icon").getComponent(cc.Sprite).spriteFrame = spriteFrame;
}
@ -461,7 +477,7 @@ export default class Wall extends cc.Component {
if (this.colorArray.length > 1) {
let color = this.colorArray[1];
if (this.wall_SpriteFrames) {
let name = color + "color" + (this.wall_Info.length + double);
let name = color + "color" + (this.length + double);
var spriteFrame = this.wall_SpriteFrames._spriteFrames[name];
this.maskNode.getChildByName("color_icon").getComponent(cc.Sprite).spriteFrame = spriteFrame;
}
@ -523,10 +539,10 @@ export default class Wall extends cc.Component {
this.updateColor();
}
//更新变色门颜色
updateColor() {
this.color = this.colorArray[0];
console.log("改變顏色", this.color);
// debugger;
// console.log("改變顏色", this.color);
let direction = this.node.parent.name;
let double = 0;
if (direction == "left" || direction == "right") {
@ -538,7 +554,7 @@ export default class Wall extends cc.Component {
if (this.wall_SpriteFrames) {
let name = this.color + "color" + (this.wall_Info.length + double);
console.log("变色名称:", name);
// console.log("变色名称:", name);
var spriteFrame = this.wall_SpriteFrames._spriteFrames[name];
if (this.node.getComponent(cc.Sprite)) this.node.getComponent(cc.Sprite).spriteFrame = spriteFrame;
if (this.node.getChildByName("icon")) this.node.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = spriteFrame;
@ -572,7 +588,7 @@ export default class Wall extends cc.Component {
}
}
//添加遮罩
//添加变色门遮罩
setMask() {
let direction = this.node.parent.name;
let double = 0;
@ -676,5 +692,127 @@ export default class Wall extends cc.Component {
}
}
//初始化的时候,处理一组门的长短变化状态
setLongAndShort() {
//数组为空返回
if (MapConroler._instance.teamDoors.length <= 0) {
return;
}
//上一个墙壁数组并不是长短门返回
if (!MapConroler._instance.teamDoors[0].wall_Info.longAndShort) {
return;
}
let start = MapConroler._instance.teamDoors[0];
let over = MapConroler._instance.teamDoors[0].length != 3 ? MapConroler._instance.teamDoors[1] : MapConroler._instance.teamDoors[2];
let end = null;
if (MapConroler._instance.teamDoors[0].length == 3 && MapConroler._instance.teamDoors[0].longAndShort[0] == 1) {
end = MapConroler._instance.teamDoors[1];
}
if (MapConroler._instance.teamDoors[0].longAndShort[0] == MapConroler._instance.teamDoors[0].wall_Info.length) {
over = null;
end = null;
}
if (MapConroler._instance.teamDoors[0].order == false) {
//上来是开满的
if (MapConroler._instance.teamDoors[0].longAndShort[0] > MapConroler._instance.teamDoors[0].longAndShort[1]) {
// console.log("是全开的", this.wall_Info.num, MapConroler._instance.teamDoors[0].longAndShort);
start = MapConroler._instance.teamDoors[0];
over = null;
end = null;
} else { //上来是缺口的
// console.log("是缺口的", this.wall_Info.num, MapConroler._instance.teamDoors[0].longAndShort);
start = MapConroler._instance.teamDoors[1];
over = MapConroler._instance.teamDoors[0];
if (MapConroler._instance.teamDoors.length == 3) {
if (MapConroler._instance.teamDoors[0].longAndShort[0] == 2) {
start = MapConroler._instance.teamDoors[1];
over = MapConroler._instance.teamDoors[0];
}
else if (MapConroler._instance.teamDoors[0].longAndShort[0] == 1) {
start = MapConroler._instance.teamDoors[2];
over = MapConroler._instance.teamDoors[0];
end = MapConroler._instance.teamDoors[1];
}
}
}
}
// console.log("数组长度:", MapConroler._instance.teamDoors.length);
start.runLongAndShort(true);
if (over) over.runLongAndShort(false);
if (end) end.runLongAndShort(false);
//下一帧执行
}
//长短门改变变化
runLongAndShort(type) {
// console.log(this.node.parent.name);
//顺向的, 在第一个。
console.log("执行:", this.longAndShort[0], this.longAndShort[1]);
if (type == true) {
this.length = this.longAndShort[0];
console.log(this.wall_Info.num, this.length, this.wall_Info.length);
this.initColor(this.longAndShort[0]);
}
else {
console.log(this.wall_Info.num, "隐身");
this.node.getComponent(cc.Sprite).spriteFrame = null;
this.node.parent.getChildByName("length").active = true;
}
setTimeout(() => {
this.longAndShort.reverse();
}, 1);
}
//改变长短门变化状态
changeLongAndShort() {
for (let i = 0; i < this.teamDoors.length; i++) {
this.teamDoors[i].node.parent.getChildByName("length").active = false;
}
let start = this.teamDoors[0];
let over = this.teamDoors.length != 3 ? this.teamDoors[1] : this.teamDoors[2];
let end = null;
if (this.teamDoors[0].length == 3 && this.teamDoors[0].longAndShort[0] == 1) {
end = this.teamDoors[1];
}
if (this.teamDoors[0].length == 2 && this.teamDoors[0].longAndShort[0] == 1) {
end = this.teamDoors[1];
}
if (this.teamDoors[0].longAndShort[0] == this.teamDoors[0].wall_Info.length) {
over = null;
end = null;
}
if (this.teamDoors[0].order == false) {
//上来是开满的
if (this.teamDoors[0].longAndShort[0] > this.teamDoors[0].longAndShort[1]) {
// console.log("是全开的", this.wall_Info.num, MapConroler._instance.teamDoors[0].longAndShort);
start = this.teamDoors[0];
over = null;
end = null;
} else { //上来是缺口的
// console.log("是缺口的", this.wall_Info.num, MapConroler._instance.teamDoors[0].longAndShort);
start = this.teamDoors[1];
over = this.teamDoors[0];
if (this.teamDoors.length == 3) {
if (this.teamDoors[0].longAndShort[0] == 2) {
start = this.teamDoors[1];
over = this.teamDoors[0];
}
else if (this.teamDoors[0].longAndShort[0] == 1) {
start = this.teamDoors[2];
over = this.teamDoors[0];
end = this.teamDoors[1];
}
}
}
}
// console.log("数组长度:", MapConroler._instance.teamDoors.length);
start.runLongAndShort(true);
if (over) over.runLongAndShort(false);
if (end) end.runLongAndShort(false);
}
// update (dt) {}
}

View File

@ -0,0 +1,178 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "581",
"map": [
8,
10
],
"time": 3000,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": -120,
"y": 120,
"z": 0
},
"id": 210
},
{
"block": 13,
"color": 5,
"type": 0,
"position": {
"x": 0,
"y": -240,
"z": 0
},
"id": 220
},
{
"block": 18,
"color": 5,
"type": 0,
"position": {
"x": 120,
"y": -240,
"z": 0
},
"id": 230
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": 120,
"z": 0
},
"id": 240
},
{
"block": 20,
"color": 5,
"type": 0,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"id": 250
},
{
"block": 22,
"color": 5,
"type": 0,
"position": {
"x": 0,
"y": 120,
"z": 0
},
"id": 260
}
]
],
"WALL_INFO": [
[
{
"id": 582,
"num": 11,
"color": 5,
"special": 0,
"length": 2,
"longAndShort": 21,
"order": true
},
{
"id": 583,
"num": 13,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 21,
"order": true
},
{
"id": 584,
"num": 12,
"color": 5,
"special": 0,
"length": 3,
"longAndShort": 32,
"order": true
},
{
"id": 585,
"num": 14,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 32,
"order": true
},
{
"id": 586,
"num": 16,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 32,
"order": true
},
{
"id": 587,
"num": 2,
"color": 5,
"special": 0,
"length": 2,
"longAndShort": 12,
"order": true
},
{
"id": 588,
"num": 3,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 12,
"order": true
},
{
"id": 589,
"num": 23,
"color": 5,
"special": 0,
"length": 3,
"longAndShort": 13,
"order": true
},
{
"id": 590,
"num": 24,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 13,
"order": true
},
{
"id": 591,
"num": 25,
"color": 5,
"special": 0,
"length": 0,
"longAndShort": 13,
"order": true
}
]
]
}

View File

@ -37,12 +37,15 @@
},
{
"__id__": 119
},
{
"__id__": 139
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 139
"__id__": 142
},
"_opacity": 255,
"_color": {
@ -5152,6 +5155,115 @@
"fileId": "0dE0P0/9FCQ6EtKeyVhCMh",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "length",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 140
}
],
"_prefab": {
"__id__": 141
},
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 138,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-71.171,
-73.484,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6db2aafd-c221-4be9-a20b-5bb361fe22ef"
},
"_type": 3,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 1,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "f2c494b7-b6df-488f-b194-358235b0f180"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "03XKmOLTFHR6jQACxUAHx3",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@ -379,6 +379,9 @@
"type": 4,
"special": 0,
"color": 0,
"maskNode": null,
"maskWidth": 138,
"maskHeight": 69,
"wall_SpriteFrames": {
"__uuid__": "f2c494b7-b6df-488f-b194-358235b0f180"
},

View File

@ -37,12 +37,15 @@
},
{
"__id__": 119
},
{
"__id__": 139
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 139
"__id__": 142
},
"_opacity": 255,
"_color": {
@ -5150,6 +5153,115 @@
"fileId": "aeCCFODu1H16nXIA3d5Vpb",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "length",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 140
}
],
"_prefab": {
"__id__": 141
},
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 146
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-69.998,
-73.268,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4f65ed94-5d59-48ce-b94f-e199044365cf"
},
"_type": 3,
"_sizeMode": 1,
"_fillType": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 1,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "f2c494b7-b6df-488f-b194-358235b0f180"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 139
},
"asset": {
"__uuid__": "1c619601-a6ae-4c45-be2c-20b0d95e950f"
},
"fileId": "c6/Efh0FJLXowcB9mrd+li",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@ -37,12 +37,15 @@
},
{
"__id__": 119
},
{
"__id__": 139
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 139
"__id__": 142
},
"_opacity": 255,
"_color": {
@ -5150,6 +5153,115 @@
"fileId": "970Ry1rz1C/5B8Jq1XgWom",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "length",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 140
}
],
"_prefab": {
"__id__": 141
},
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 61,
"height": 146
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
6.333,
-73.465,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4f65ed94-5d59-48ce-b94f-e199044365cf"
},
"_type": 3,
"_sizeMode": 1,
"_fillType": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 1,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "f2c494b7-b6df-488f-b194-358235b0f180"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 139
},
"asset": {
"__uuid__": "1c619601-a6ae-4c45-be2c-20b0d95e950f"
},
"fileId": "a9S14qX6xPhZx9OfzWCz38",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@ -37,12 +37,15 @@
},
{
"__id__": 119
},
{
"__id__": 139
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 139
"__id__": 142
},
"_opacity": 255,
"_color": {
@ -5150,6 +5153,115 @@
"fileId": "f8Za6jHHxMuafaHTJpkVyj",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "length",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 140
}
],
"_prefab": {
"__id__": 141
},
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 138,
"height": 69
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-72,
-0.642,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6db2aafd-c221-4be9-a20b-5bb361fe22ef"
},
"_type": 3,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 1,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "f2c494b7-b6df-488f-b194-358235b0f180"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "31A7oB/qpCLZ5GHE6UfGuW",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {