更新
This commit is contained in:
parent
cca8c0766f
commit
efb8885190
|
|
@ -160,10 +160,12 @@ export default class Block extends cc.Component {
|
|||
blockId: number = 0; //方块ID;
|
||||
stacking: cc.Vec2; //叠加方块
|
||||
adhesive: cc.Vec2; //粘合方块
|
||||
floorOffset: any; //可移动地板块坐标差
|
||||
changeColor: number = 0; //变色块
|
||||
level: number = 0; //叠加方块层数;
|
||||
pz: boolean = false;
|
||||
over: boolean = false; //方块是否失效已消失
|
||||
moveFloorPd: boolean = false; //是否可移动地板块移动
|
||||
collider: any;
|
||||
block_Info: any;
|
||||
_touchListener: any;
|
||||
|
|
@ -182,11 +184,15 @@ export default class Block extends cc.Component {
|
|||
private scheduleCallback3: any = null;
|
||||
isEliminatedByHammer: boolean = false; // 标记是否被锤子消除过
|
||||
|
||||
|
||||
onLoad() {
|
||||
this.pz = false;
|
||||
this.stacking = cc.v2(0, 0);
|
||||
this.adhesive = cc.v2(0, 0);
|
||||
this.floorOffset = [];
|
||||
this.adhesiveNode = [];
|
||||
this.teamBlocks = [];
|
||||
this.moveFloorPd = false;
|
||||
this.collider = this.node.getComponent(cc.PolygonCollider);
|
||||
this.over = false;
|
||||
this.checkCollision = false;
|
||||
|
|
@ -279,6 +285,7 @@ export default class Block extends cc.Component {
|
|||
i = 10000;
|
||||
this.hit = new cc.Node();
|
||||
this.hit.addComponent(cc.Sprite);
|
||||
this.hit.name = "hit";
|
||||
this.hit.parent = this.node;
|
||||
let name = "xz_" + this.block_Info.block;
|
||||
this.hit.getComponent(cc.Sprite).spriteFrame = this.ice_SpriteFrame._spriteFrames[name];
|
||||
|
|
@ -300,6 +307,7 @@ export default class Block extends cc.Component {
|
|||
}
|
||||
|
||||
|
||||
|
||||
//初始化方块类型
|
||||
initType() {
|
||||
if (MapConroler && MapConroler._instance) {
|
||||
|
|
@ -627,6 +635,9 @@ export default class Block extends cc.Component {
|
|||
if (this.block_Info.lock == true) {
|
||||
return;
|
||||
}
|
||||
if (this.block_Info.floor) {
|
||||
return;
|
||||
}
|
||||
let jg = MapConroler._instance.checkPass(this.node, this.allBlocks);
|
||||
|
||||
if (jg >= 0) {
|
||||
|
|
@ -905,6 +916,17 @@ export default class Block extends cc.Component {
|
|||
if (this.block_Info.floor) {
|
||||
if (this.block_Info.floorMove == true) {
|
||||
this.hit.active = false;
|
||||
if (this.teamBlocks.length > 0) {
|
||||
for (let i = 0; i < this.teamBlocks.length; i++) {
|
||||
if (this.teamBlocks[i].uuid != this.node.uuid) {
|
||||
this.teamBlocks[i].zIndex = 200;
|
||||
for (let j = 1; j < this.teamBlocks[i].children.length; j++) {
|
||||
if (this.teamBlocks[i].children[j].name != "moveFloor")
|
||||
this.teamBlocks[i].children[j].active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
@ -953,6 +975,18 @@ export default class Block extends cc.Component {
|
|||
}
|
||||
}
|
||||
this.moveLeft = this.moveRight = this.moveUp = this.moveDown = true;
|
||||
if (this.teamBlocks.length > 0) {
|
||||
for (let i = 0; i < this.teamBlocks.length; i++) {
|
||||
if (this.teamBlocks[i].uuid != this.node.uuid) {
|
||||
let localTemp2 = cc.v2(this.teamBlocks[i].x - 50, this.teamBlocks[i].y + 50);
|
||||
this.teamBlocks[i].getComponent("Block").blockFall(localTemp2, false);
|
||||
for (let j = 1; j < this.teamBlocks[i].children.length; j++) {
|
||||
if (this.teamBlocks[i].children[j].name != "moveFloor" && this.teamBlocks[i].children[j].name != "hit")
|
||||
this.teamBlocks[i].children[j].active = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1366,7 +1400,7 @@ export default class Block extends cc.Component {
|
|||
this.node.zIndex = this.level;
|
||||
let j = 1000;
|
||||
for (let i = 0; i < this.node.children.length; i++) {
|
||||
if (this.node.children[i].name == "New Node") {
|
||||
if (this.node.children[i].name == "hit") {
|
||||
j = i;
|
||||
}
|
||||
if (i > j) {
|
||||
|
|
@ -1432,6 +1466,20 @@ export default class Block extends cc.Component {
|
|||
this.adhesiveNode[i].opacity = 255;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.teamBlocks.length > 1) {
|
||||
for (let j = 0; j < this.teamBlocks.length; j++) {
|
||||
for (let k = 0; k < this.teamBlocks[j].children.length; k++) {
|
||||
if (this.teamBlocks[j].children[k].getComponent("lq_collide") != undefined) {
|
||||
if (this.teamBlocks[j].children[k].getComponent("lq_collide").data_string == "-2") {
|
||||
this.teamBlocks[j].children[k].active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.teamBlocks = [];
|
||||
|
||||
this.node.getChildByName("icon").active = true;
|
||||
if (this.type == BlockType.冻结块) {
|
||||
if (this.node.getChildByName("freeze")) {
|
||||
|
|
@ -1863,6 +1911,16 @@ export default class Block extends cc.Component {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.teamBlocks.length > 1 && this.moveFloorPd == true) {
|
||||
for (let i = 0; i < this.teamBlocks.length; i++) {
|
||||
if (this.teamBlocks[i].uuid != this.node.uuid && this.isTouch == true && this.teamBlocks[i].getComponent("Block").isTouch == false) {
|
||||
LQCollideSystem.update_logic(dt);
|
||||
this.teamBlocks[i].x = this.node.x - this.floorOffset[i].x;
|
||||
this.teamBlocks[i].y = this.node.y - this.floorOffset[i].y;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//精细更改 点击高亮位置
|
||||
|
|
@ -2040,6 +2098,7 @@ export default class Block extends cc.Component {
|
|||
}
|
||||
}
|
||||
|
||||
//设置地板块
|
||||
setFloor() {
|
||||
this.node.getChildByName("icon").active = false;
|
||||
for (let i = 0; i < this.allBlocks.length; i++) {
|
||||
|
|
@ -2069,28 +2128,45 @@ export default class Block extends cc.Component {
|
|||
}
|
||||
}
|
||||
|
||||
setTeamBlocks(teamBlocks) {
|
||||
this.teamBlocks = teamBlocks;
|
||||
}
|
||||
|
||||
setMoveFloor() {
|
||||
this.node.getChildByName("icon").active = false;
|
||||
for (let i = 0; i < this.allBlocks.length; i++) {
|
||||
let floor = cc.instantiate(MapConroler._instance.Block_Prop[11]);
|
||||
floor.parent = this.node;
|
||||
floor.zIndex = 999;
|
||||
let floorX = - 65 + 120 * this.allBlocks[i].x; let floorY = 60 + 120 * this.allBlocks[i].y;
|
||||
floor.setPosition(floorX, floorY);
|
||||
floor.getComponent("Floor").init(this.block_Info.floorTime);
|
||||
}
|
||||
if (this.type == BlockType.冻结块) {
|
||||
if (this.node.getChildByName("freeze")) {
|
||||
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].name == "moveFloor") {
|
||||
this.node.children[j].active = false;
|
||||
if (this.teamBlocks.length < 2) {
|
||||
return;
|
||||
}
|
||||
this.floorOffset = [];
|
||||
for (let i = 0; i < this.teamBlocks.length; i++) {
|
||||
if (this.teamBlocks[i].uuid != this.node.uuid) {
|
||||
console.log("设置一个移动地板块", this.block_Info.floor);
|
||||
const posOffset = cc.v2(
|
||||
this.node.x - this.teamBlocks[i].x,
|
||||
this.node.y - this.teamBlocks[i].y
|
||||
);
|
||||
this.floorOffset[i] = posOffset;
|
||||
const targetNames = ['top', 'down', 'left', 'right'];
|
||||
this.teamBlocks[i].children.forEach(child => {
|
||||
if (child instanceof cc.Node && targetNames.includes(child.name) && child.getComponent("lq_collide").data_string != "-2") {
|
||||
const clonedChild = cc.instantiate(child);
|
||||
clonedChild.getComponent("lq_collide").data_string = "-2";
|
||||
clonedChild.parent = this.node;
|
||||
// 获取子节点相对于父节点的位置
|
||||
const relativePos = child.getPosition();
|
||||
// 调整子节点位置以保证相对位置不变
|
||||
clonedChild.setPosition(
|
||||
relativePos.x - posOffset.x,
|
||||
relativePos.y - posOffset.y
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
setTimeout(() => {
|
||||
this.moveFloorPd = true;
|
||||
}, 100);
|
||||
// console.log(this.teamBlocks[0].getComponent("Block").block_Info.floor, this.block_Info.floor);
|
||||
// console.log(this.block_Info.floor, this.block_Info.block);
|
||||
}
|
||||
|
||||
//射手:后裔伽罗萌芽
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ export default class MapConroler extends cc.Component {
|
|||
adhesiveBlock: any[];
|
||||
barrierBlock: any[];
|
||||
teamBlocks: any[]; //可移动地板块组队
|
||||
floorMove: boolean = false;
|
||||
// mapInfo: number[][] = [];
|
||||
getProgressLevel: number = 0;
|
||||
getProgress: number = 0;
|
||||
|
|
@ -186,6 +187,14 @@ export default class MapConroler extends cc.Component {
|
|||
questionArray: any[];
|
||||
|
||||
onLoad() {
|
||||
//以下为检验关卡
|
||||
// console.log("当前关卡", cc.fx.GameConfig.GM_INFO.level);
|
||||
// setTimeout(() => {
|
||||
// cc.fx.GameConfig.GM_INFO.level += 1;
|
||||
// cc.fx.GameConfig.LEVEL_INFO_init(true, 0, false);
|
||||
// }, 1000);
|
||||
|
||||
|
||||
MiniGameSdk.API.setNewCloudlevel();
|
||||
cc.fx.GameConfig.GM_INFO.review = 0;
|
||||
cc.fx.GameConfig.GM_INFO.reviewBoom = 0;
|
||||
|
|
@ -236,6 +245,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.is_frenzy = false;
|
||||
this.hammerSpecial = false;
|
||||
this.changeColor = false;
|
||||
this.floorMove = false;
|
||||
this.revolving_state = 0;
|
||||
this.hitSoundCount = 0;
|
||||
this.hitSoundTime = 0;
|
||||
|
|
@ -478,7 +488,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.levelLabel = this.node.parent.getChildByName("Top").getChildByName("level");
|
||||
this.coin = this.node.parent.getChildByName("Top").getChildByName("shop").getChildByName("coin");
|
||||
this.timeNumber = cc.fx.GameConfig.LEVEL_INFO[0].time;
|
||||
console.log("当前关卡时间", this.timeNumber);
|
||||
// console.log("当前关卡时间", this.timeNumber);
|
||||
|
||||
this.add_Time = 0;
|
||||
NumberToImage.getTimeMargi3(this.timeNumber, 45, "company_", this.timeLabel)
|
||||
|
|
@ -493,7 +503,7 @@ export default class MapConroler extends cc.Component {
|
|||
for (let i = 0; i < this.levelLabel.children.length; i++) {
|
||||
this.levelLabel.children[i].color = cc.color(0, 0, 0);
|
||||
}
|
||||
console.log("当前关卡", cc.fx.GameConfig.GM_INFO.level + 1);
|
||||
// console.log("当前关卡", cc.fx.GameConfig.GM_INFO.level + 1);
|
||||
|
||||
this.mapWidth = cc.fx.GameConfig.LEVEL_INFO[0].map[0];
|
||||
this.mapHeight = cc.fx.GameConfig.LEVEL_INFO[0].map[1];
|
||||
|
|
@ -575,6 +585,7 @@ export default class MapConroler extends cc.Component {
|
|||
setTimeout(() => {
|
||||
this.wallInit();
|
||||
this.blockInit();
|
||||
|
||||
}, 100);
|
||||
|
||||
|
||||
|
|
@ -627,7 +638,7 @@ export default class MapConroler extends cc.Component {
|
|||
passRateNode.y = 0;
|
||||
}
|
||||
} else {
|
||||
console.log("未找到关卡数据");
|
||||
// console.log("未找到关卡数据");
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
@ -651,6 +662,11 @@ export default class MapConroler extends cc.Component {
|
|||
const startTime = performance.now();
|
||||
for (let i = 0; i < BLOCKS_PER_FRAME && index < blockArray.length; i++) {
|
||||
let blockInfo = blockArray[index];
|
||||
if (blockInfo.floorMove != null && blockInfo.floorMove != undefined) {
|
||||
if (blockInfo.floorMove) {
|
||||
this.floorMove = true;
|
||||
}
|
||||
}
|
||||
// 缓存 Block_Array 访问
|
||||
const blockPrefab = this.Block_Array[blockInfo.block];
|
||||
let block = cc.instantiate(blockPrefab);
|
||||
|
|
@ -662,7 +678,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.blocks.push(block);
|
||||
}
|
||||
else {
|
||||
console.log("创建无色障碍块");
|
||||
// console.log("创建无色障碍块");
|
||||
}
|
||||
if (blockInfo.type == 1) {
|
||||
let info = {
|
||||
|
|
@ -673,27 +689,6 @@ export default class MapConroler extends cc.Component {
|
|||
position: blockInfo.position,
|
||||
stacking: blockInfo.color
|
||||
};
|
||||
if (blockInfo.floor) {
|
||||
info["floor"] = blockInfo.floor;
|
||||
if (blockInfo.floorTime) info["floorTime"] = blockInfo.floorTime;
|
||||
if (blockInfo.floorMove != undefined && blockInfo.floorMove != null) {
|
||||
if (blockInfo.floorMove == true) {
|
||||
//如果数组没有,是新的
|
||||
if (this.teamBlocks.length == 0) this.teamBlocks.push(block);
|
||||
else {
|
||||
//如果数组内有,则判断是不是在同一个地板下
|
||||
if (this.teamBlocks[0].floor == blockInfo.floor) {
|
||||
this.teamBlocks.push(block);
|
||||
}
|
||||
//不在同一个地板下
|
||||
else {
|
||||
this.teamBlocks = [];
|
||||
this.teamBlocks.push(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 缓存 Block_Array 访问
|
||||
|
|
@ -701,10 +696,8 @@ export default class MapConroler extends cc.Component {
|
|||
let blockUp = cc.instantiate(blockUpPrefab);
|
||||
blockUp.parent = this.node;
|
||||
blockUp.setPosition(cc.v2(info.position.x, info.position.y));
|
||||
|
||||
|
||||
block.getComponent("Block").init(blockInfo, null, null, blockUp, null, this.teamBlocks);
|
||||
blockUp.getComponent("Block").init(info, null, null, block, null, this.teamBlocks);
|
||||
block.getComponent("Block").init(blockInfo, null, null, blockUp, null);
|
||||
blockUp.getComponent("Block").init(info, null, null, block, null);
|
||||
if (info.color != 11) {
|
||||
this.blocks.push(blockUp);
|
||||
this.blockNum += 1;
|
||||
|
|
@ -722,17 +715,16 @@ export default class MapConroler extends cc.Component {
|
|||
blockUp.parent = this.node;
|
||||
blockUp.setPosition(cc.v2(info.position.x, info.position.y));
|
||||
|
||||
|
||||
block.getComponent("Block").init(blockInfo, null, null, blockUp, false, this.teamBlocks);
|
||||
block.getComponent("Block").init(blockInfo, null, null, blockUp, false);
|
||||
setTimeout(() => {
|
||||
blockUp.getComponent("Block").init(info, null, null, block, true, this.teamBlocks);
|
||||
blockUp.getComponent("Block").init(info, null, null, block, true);
|
||||
}, 100);
|
||||
if (info.color != 11) {
|
||||
this.blocks.push(blockUp);
|
||||
this.blockNum += 1;
|
||||
}
|
||||
} else {
|
||||
block.getComponent("Block").init(blockInfo, null, null, null, null, this.teamBlocks);
|
||||
block.getComponent("Block").init(blockInfo, null, null, null, null);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -760,7 +752,9 @@ export default class MapConroler extends cc.Component {
|
|||
createBlocks();
|
||||
}, 0);
|
||||
} else {
|
||||
|
||||
if (this.floorMove == true) {
|
||||
this.addMoveFloor();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -2511,6 +2505,78 @@ export default class MapConroler extends cc.Component {
|
|||
// console.log("进度", cc.fx.GameConfig.GM_INFO.getProgressLevel, cc.fx.GameConfig.GM_INFO.getProgress);
|
||||
}
|
||||
|
||||
addMoveFloor() {
|
||||
this.teamBlocks = [];
|
||||
|
||||
for (let i = 0; i < this.blocks.length; i++) {
|
||||
if (this.blocks[i].getComponent("Block").block_Info) {
|
||||
let blockInfo = this.blocks[i].getComponent("Block").block_Info;
|
||||
if (blockInfo.floorMove != undefined) {
|
||||
if (blockInfo.floorMove == true) {
|
||||
if (this.teamBlocks.length == 0) {
|
||||
console.log("放入一个移动地板块");
|
||||
this.teamBlocks.push(this.blocks[i]);
|
||||
this.blocks[i].getComponent("Block").setTeamBlocks(this.teamBlocks);
|
||||
if (i == (this.blocks.length - 1)) {
|
||||
console.log("结束1");
|
||||
this.removeFloor();
|
||||
}
|
||||
} else {
|
||||
if (blockInfo.floor == this.teamBlocks[0].getComponent("Block").block_Info.floor) {
|
||||
this.teamBlocks.push(this.blocks[i]);
|
||||
console.log("放入一个移动地板块");
|
||||
this.blocks[i].getComponent("Block").setTeamBlocks(this.teamBlocks);
|
||||
if (i == (this.blocks.length - 1)) {
|
||||
console.log("结束2");
|
||||
this.removeFloor();
|
||||
}
|
||||
} else {
|
||||
console.log("结束3")
|
||||
this.removeFloor();
|
||||
this.teamBlocks.push(this.blocks[i]);
|
||||
this.blocks[i].getComponent("Block").setTeamBlocks(this.teamBlocks);
|
||||
if (i == (this.blocks.length - 1)) {
|
||||
console.log("结束4");
|
||||
this.removeFloor();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (i == (this.blocks.length - 1)) {
|
||||
console.log("结束5");
|
||||
this.removeFloor();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (i == (this.blocks.length - 1)) {
|
||||
console.log("结束6");
|
||||
this.removeFloor();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (i == (this.blocks.length - 1)) {
|
||||
console.log("结束7");
|
||||
this.removeFloor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
removeFloor() {
|
||||
console.log("结束");
|
||||
if (this.teamBlocks.length > 0) {
|
||||
for (let j = 0; j < this.teamBlocks.length; j++) {
|
||||
this.teamBlocks[j].getComponent("Block").setMoveFloor();
|
||||
}
|
||||
this.teamBlocks = [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
againLevel() {
|
||||
cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
|
||||
this.adhesiveBlock = [];
|
||||
|
|
@ -4590,7 +4656,7 @@ export default class MapConroler extends cc.Component {
|
|||
this.avatar.getSpriteFrame(cc.fx.GameConfig.GM_INFO.useravaterkuang);
|
||||
let icon = this.avatar.getSpriteFrame(cc.fx.GameConfig.GM_INFO.useravatarIcon);
|
||||
let iphone = cc.fx.GameConfig.GM_INFO.useravatarIcon.substring(0, 4);
|
||||
console.log("头像_________", cc.fx.GameConfig.GM_INFO.useravatarIcon, cc.fx.GameConfig.GM_INFO.useravatar);
|
||||
// console.log("头像_________", cc.fx.GameConfig.GM_INFO.useravatarIcon, cc.fx.GameConfig.GM_INFO.useravatar);
|
||||
if (iphone == "icon") {
|
||||
ruzhi.getChildByName("bg").getChildByName("icon").getChildByName("icon").getComponent(cc.Sprite).spriteFrame = icon;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ export default class NumberToImage extends cc.Component {
|
|||
const node = new cc.Node();
|
||||
const sprite = node.addComponent(cc.Sprite);
|
||||
const digit = timeArr[i];
|
||||
console.log(name + digit + "");
|
||||
|
||||
// debugger;
|
||||
sprite.spriteFrame = this.font3._spriteFrames[name + digit + ""];
|
||||
// 将节点添加到目标节点下
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ export default class SceneManager extends cc.Component {
|
|||
this.avatar.getSpriteFrame(cc.fx.GameConfig.GM_INFO.useravaterkuang);
|
||||
let icon = this.avatar.getSpriteFrame(cc.fx.GameConfig.GM_INFO.useravatarIcon);
|
||||
let iphone = cc.fx.GameConfig.GM_INFO.useravatarIcon.substring(0, 4);
|
||||
console.log("头像_________", cc.fx.GameConfig.GM_INFO.useravatarIcon, cc.fx.GameConfig.GM_INFO.useravatar);
|
||||
// console.log("头像_________", cc.fx.GameConfig.GM_INFO.useravatarIcon, cc.fx.GameConfig.GM_INFO.useravatar);
|
||||
if (iphone == "icon") {
|
||||
this.icon.getComponent(cc.Sprite).spriteFrame = icon;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2058,6 +2058,9 @@ var GameTool = {
|
|||
},
|
||||
|
||||
trackErrorToShushu(error: any) {
|
||||
if (error == null) {
|
||||
return;
|
||||
}
|
||||
if (error.message == null || error.message == "null" || error.message == "" || error.message == undefined || error.message == "(null)") {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export default class Floor extends cc.Component {
|
|||
if (this.time <= 0) {
|
||||
if (this.node.parent) {
|
||||
this.node.parent.getComponent("Block").resetFloor();
|
||||
console.log("恢复成普通块", this.node.uuid);
|
||||
// console.log("恢复成普通块", this.node.uuid);
|
||||
}
|
||||
this.node.getChildByName("bingkuai").active = true;
|
||||
const skeleton = this.node.getChildByName("bingkuai").getComponent(sp.Skeleton);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
{
|
||||
"block": 2,
|
||||
"color": 5,
|
||||
"type": 8,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": 240,
|
||||
|
|
@ -24,12 +24,13 @@
|
|||
},
|
||||
"floor": 1,
|
||||
"floorTime": 5,
|
||||
"floorMove": true,
|
||||
"id": 210
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 6,
|
||||
"type": 4,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -300,
|
||||
"y": 240,
|
||||
|
|
@ -38,6 +39,7 @@
|
|||
"freezeTime": 12,
|
||||
"floor": 1,
|
||||
"floorTime": 5,
|
||||
"floorMove": true,
|
||||
"id": 220
|
||||
},
|
||||
{
|
||||
|
|
@ -69,7 +71,7 @@
|
|||
"id": 240
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"block": 5,
|
||||
"color": 3,
|
||||
"type": 0,
|
||||
"position": {
|
||||
|
|
@ -85,220 +87,16 @@
|
|||
{
|
||||
"block": 5,
|
||||
"color": 8,
|
||||
"type": 8,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"x": 180,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"floor": 3,
|
||||
"floorTime": 15,
|
||||
"floorMove": true,
|
||||
"id": 260
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 5,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": 360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 270
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 5,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"id": 280
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 5,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": 120,
|
||||
"z": 0
|
||||
},
|
||||
"id": 290
|
||||
},
|
||||
{
|
||||
"block": 3,
|
||||
"color": 3,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 300
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 2,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"id": 310
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 10,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -300,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 320
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 10,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 330
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 2,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 60,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 340
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 9,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 350
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 2,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": -300,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 2,
|
||||
"id": 360
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 6,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": -120,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 1,
|
||||
"id": 370
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 6,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": -120,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 2,
|
||||
"id": 380
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 8,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 1,
|
||||
"id": 390
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 9,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -360,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 2,
|
||||
"id": 400
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 7,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 1,
|
||||
"id": 410
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 8,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"id": 420
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 6,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"id": 430
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 9,
|
||||
"type": 4,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"freezeTime": 9,
|
||||
"id": 440
|
||||
}
|
||||
]
|
||||
],
|
||||
|
|
|
|||
445
assets/custom/Json/level942.json
Normal file
445
assets/custom/Json/level942.json
Normal file
|
|
@ -0,0 +1,445 @@
|
|||
{
|
||||
"LEVEL_INFO": [
|
||||
{
|
||||
"risefall": [],
|
||||
"id": "466",
|
||||
"map": [
|
||||
9,
|
||||
10
|
||||
],
|
||||
"time": 150,
|
||||
"gap": []
|
||||
}
|
||||
],
|
||||
"BLOCK_INFO": [
|
||||
[
|
||||
{
|
||||
"block": 2,
|
||||
"color": 5,
|
||||
"type": 8,
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"floor": 1,
|
||||
"floorTime": 5,
|
||||
"floorMove": true,
|
||||
"id": 210
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 6,
|
||||
"type": 4,
|
||||
"position": {
|
||||
"x": -300,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"freezeTime": 12,
|
||||
"floor": 1,
|
||||
"floorTime": 5,
|
||||
"floorMove": true,
|
||||
"id": 220
|
||||
},
|
||||
{
|
||||
"block": 3,
|
||||
"color": 1,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": 120,
|
||||
"z": 0
|
||||
},
|
||||
"floor": 2,
|
||||
"floorTime": 10,
|
||||
"floorMove": true,
|
||||
"id": 230
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 2,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 60,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"floor": 2,
|
||||
"floorTime": 10,
|
||||
"floorMove": true,
|
||||
"id": 240
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 3,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"floor": 2,
|
||||
"floorTime": 10,
|
||||
"floorMove": true,
|
||||
"id": 250
|
||||
},
|
||||
{
|
||||
"block": 5,
|
||||
"color": 8,
|
||||
"type": 8,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"floor": 3,
|
||||
"floorTime": 15,
|
||||
"floorMove": true,
|
||||
"id": 260
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 5,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": 360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 270
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 5,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"id": 280
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 5,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": 120,
|
||||
"z": 0
|
||||
},
|
||||
"id": 290
|
||||
},
|
||||
{
|
||||
"block": 3,
|
||||
"color": 3,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 300
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 2,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"id": 310
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 10,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -300,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 320
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 10,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -360,
|
||||
"z": 0
|
||||
},
|
||||
"id": 330
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 2,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 60,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 340
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 9,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"id": 350
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 2,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": -300,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 2,
|
||||
"id": 360
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 6,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": -120,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 1,
|
||||
"id": 370
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 6,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": -120,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 2,
|
||||
"id": 380
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 8,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 180,
|
||||
"y": -240,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 1,
|
||||
"id": 390
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 9,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -360,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 2,
|
||||
"id": 400
|
||||
},
|
||||
{
|
||||
"block": 0,
|
||||
"color": 7,
|
||||
"type": 9,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"adhesiveTime": 1,
|
||||
"id": 410
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 8,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"id": 420
|
||||
},
|
||||
{
|
||||
"block": 2,
|
||||
"color": 6,
|
||||
"type": 0,
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": 240,
|
||||
"z": 0
|
||||
},
|
||||
"id": 430
|
||||
},
|
||||
{
|
||||
"block": 1,
|
||||
"color": 9,
|
||||
"type": 4,
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -480,
|
||||
"z": 0
|
||||
},
|
||||
"freezeTime": 9,
|
||||
"id": 440
|
||||
}
|
||||
]
|
||||
],
|
||||
"WALL_INFO": [
|
||||
[
|
||||
{
|
||||
"id": 467,
|
||||
"num": 2,
|
||||
"color": 7,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 468,
|
||||
"num": 3,
|
||||
"color": 7,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 469,
|
||||
"num": 5,
|
||||
"color": 9,
|
||||
"special": 0,
|
||||
"length": 1
|
||||
},
|
||||
{
|
||||
"id": 470,
|
||||
"num": 13,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 3
|
||||
},
|
||||
{
|
||||
"id": 471,
|
||||
"num": 15,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 472,
|
||||
"num": 17,
|
||||
"color": 1,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 473,
|
||||
"num": 28,
|
||||
"color": 10,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 474,
|
||||
"num": 29,
|
||||
"color": 10,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 475,
|
||||
"num": 25,
|
||||
"color": 2,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 476,
|
||||
"num": 26,
|
||||
"color": 2,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 477,
|
||||
"num": 22,
|
||||
"color": 6,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 478,
|
||||
"num": 23,
|
||||
"color": 6,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 479,
|
||||
"num": 18,
|
||||
"color": 8,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 480,
|
||||
"num": 20,
|
||||
"color": 8,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 481,
|
||||
"num": 12,
|
||||
"color": 3,
|
||||
"special": 0,
|
||||
"length": 3
|
||||
},
|
||||
{
|
||||
"id": 482,
|
||||
"num": 14,
|
||||
"color": 3,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 483,
|
||||
"num": 16,
|
||||
"color": 3,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
},
|
||||
{
|
||||
"id": 484,
|
||||
"num": 8,
|
||||
"color": 5,
|
||||
"special": 0,
|
||||
"length": 2
|
||||
},
|
||||
{
|
||||
"id": 485,
|
||||
"num": 10,
|
||||
"color": 5,
|
||||
"special": 0,
|
||||
"length": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
6
assets/custom/Json/level942.json.meta
Normal file
6
assets/custom/Json/level942.json.meta
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"ver": "1.0.2",
|
||||
"uuid": "683fff53-7210-42f9-a697-b43972fceea5",
|
||||
"importer": "json",
|
||||
"subMetas": {}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user