This commit is contained in:
COMPUTER\EDY 2025-11-07 19:57:59 +08:00
parent 6cf179abaa
commit 0abe2eaf68
45 changed files with 28899 additions and 2227 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
// Learn life-cycle callbacks: // Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@ -18,19 +18,19 @@ export default class NewClass extends cc.Component {
reinforce: cc.Prefab = null; reinforce: cc.Prefab = null;
@property(cc.Prefab) @property(cc.Prefab)
soil: cc.Prefab = null; soil: cc.Prefab = null;
tipArray:any;
controlArray:any; tipArray: any;
canTouch:boolean; controlArray: any;
Reinforce:boolean; canTouch: boolean;
Soil:boolean; Reinforce: boolean;
mapHeight:number; Soil: boolean;
mapHeight: number;
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
// onLoad () {} // onLoad () {}
start () { start() {
this.tipArray = []; this.tipArray = [];
this.controlArray = []; this.controlArray = [];
this.canTouch = true; this.canTouch = true;
@ -39,21 +39,21 @@ export default class NewClass extends cc.Component {
this.mapHeight = 0; this.mapHeight = 0;
} }
setPosition(tip){ setPosition(tip) {
tip.setPosition(30,-25); tip.setPosition(30, -25);
if(this.tipArray.length > 0){ if (this.tipArray.length > 0) {
let length = this.tipArray.length+1; let length = this.tipArray.length + 1;
let posY = Math.ceil(length/8) - 1; let posY = Math.ceil(length / 8) - 1;
let posX = length - Math.floor(posY)*8 - 1; let posX = length - Math.floor(posY) * 8 - 1;
tip.setPosition(30 + 48*posX,-25 -48*posY + this.mapHeight); tip.setPosition(30 + 48 * posX, -25 - 48 * posY + this.mapHeight);
} }
} }
//清空所有 //清空所有
removeAllTip(){ removeAllTip() {
if(!this.canTouch) return; if (!this.canTouch) return;
if(this.tipArray.length > 0){ if (this.tipArray.length > 0) {
cc.fx.AudioManager._instance.playEffect("qingkong",null); cc.fx.AudioManager._instance.playEffect("qingkong", null);
for(let i=0; i<this.tipArray.length;i++){ for (let i = 0; i < this.tipArray.length; i++) {
let tip = this.tipArray[i]; let tip = this.tipArray[i];
tip.active = false; tip.active = false;
tip.removeFromParent(this.Map); tip.removeFromParent(this.Map);
@ -62,27 +62,27 @@ export default class NewClass extends cc.Component {
this.tipArray = []; this.tipArray = [];
this.controlArray = []; this.controlArray = [];
var drawingReset = cc.fx.GameConfig.CLICK_DATA.drawingReset + 1; var drawingReset = cc.fx.GameConfig.CLICK_DATA.drawingReset + 1;
cc.fx.GameConfig.CLICK_SET("drawingReset",drawingReset); cc.fx.GameConfig.CLICK_SET("drawingReset", drawingReset);
cc.fx.Notifications.emit(cc.fx.Message.removeTip,"remove"); cc.fx.Notifications.emit(cc.fx.Message.removeTip, "remove");
this.mapHeight = 0; this.mapHeight = 0;
} }
} }
//撤回一步 //撤回一步
back_Click(){ back_Click() {
if(!this.canTouch) return; if (!this.canTouch) return;
if(this.tipArray.length > 0){ if (this.tipArray.length > 0) {
cc.fx.AudioManager._instance.playEffect("chehui",null); cc.fx.AudioManager._instance.playEffect("chehui", null);
let tip = this.tipArray[this.tipArray.length-1]; let tip = this.tipArray[this.tipArray.length - 1];
tip.active = false; tip.active = false;
tip.removeFromParent(this.Map); tip.removeFromParent(this.Map);
tip = null; tip = null;
this.tipArray.pop(); this.tipArray.pop();
this.controlArray.pop(); this.controlArray.pop();
var drawingBack = cc.fx.GameConfig.CLICK_DATA.drawingBack + 1; var drawingBack = cc.fx.GameConfig.CLICK_DATA.drawingBack + 1;
cc.fx.GameConfig.CLICK_SET("drawingBack",drawingBack); cc.fx.GameConfig.CLICK_SET("drawingBack", drawingBack);
cc.fx.Notifications.emit(cc.fx.Message.removeTip,"back"); cc.fx.Notifications.emit(cc.fx.Message.removeTip, "back");
if(this.tipArray.length >= 24){ if (this.tipArray.length >= 24) {
if((this.tipArray.length )%8 == 0){ if ((this.tipArray.length) % 8 == 0) {
this.mapMove(false); this.mapMove(false);
} }
} }
@ -90,88 +90,88 @@ export default class NewClass extends cc.Component {
} }
//点击事件 //点击事件
btn_Click(target,data){ btn_Click(target, data) {
var GameManager = this.node.parent.getComponent("GameManager"); var GameManager = this.node.parent.getComponent("GameManager");
if(GameManager.btnClick == true){ if (GameManager.btnClick == true) {
GameManager.btnClick = false; GameManager.btnClick = false;
cc.fx.Notifications.emit(cc.fx.Message.guideNext); cc.fx.Notifications.emit(cc.fx.Message.guideNext);
} }
cc.fx.Notifications.emit(cc.fx.Message.control,data); cc.fx.Notifications.emit(cc.fx.Message.control, data);
if(!this.canTouch) return; if (!this.canTouch) return;
let prefab = this.tip; let prefab = this.tip;
if(data == "reinforce" || data == "soil"){ if (data == "reinforce" || data == "soil") {
prefab = this[data]; prefab = this[data];
if(data == "reinforce"){ if (data == "reinforce") {
if(this.Reinforce){ if (this.Reinforce) {
this.Reinforce = false; this.Reinforce = false;
this.back_Click(); this.back_Click();
return; return;
}else{ } else {
cc.fx.AudioManager._instance.playEffect("jineng",null); cc.fx.AudioManager._instance.playEffect("jineng", null);
this.Reinforce = true; this.Reinforce = true;
this.Soil = false; this.Soil = false;
} }
} }
else if(data == "soil"){ else if (data == "soil") {
if(this.Soil){ if (this.Soil) {
this.Soil = false; this.Soil = false;
this.back_Click(); this.back_Click();
return; return;
}else{ } else {
cc.fx.AudioManager._instance.playEffect("jineng",null); cc.fx.AudioManager._instance.playEffect("jineng", null);
this.Soil = true; this.Soil = true;
this.Reinforce = false; this.Reinforce = false;
} }
} }
} }
else{ else {
cc.fx.AudioManager._instance.playEffect("fangxiang",null); cc.fx.AudioManager._instance.playEffect("fangxiang", null);
this.Reinforce = false; this.Reinforce = false;
this.Soil = false; this.Soil = false;
} }
let tip = cc.instantiate(prefab); let tip = cc.instantiate(prefab);
if(data == "up") tip.angle = 180; if (data == "up") tip.angle = 180;
if(data == "left") tip.angle = -90; if (data == "left") tip.angle = -90;
if(data == "right") tip.angle = 90; if (data == "right") tip.angle = 90;
tip.parent = this.Map; tip.parent = this.Map;
if(this.controlArray[this.controlArray.length-1] == "reinforce" || if (this.controlArray[this.controlArray.length - 1] == "reinforce" ||
this.controlArray[this.controlArray.length-1] == "soil"){ this.controlArray[this.controlArray.length - 1] == "soil") {
if(data == "reinforce" || data == "soil"){ if (data == "reinforce" || data == "soil") {
this.tipArray[this.tipArray.length-1].removeFromParent(); this.tipArray[this.tipArray.length - 1].removeFromParent();
this.tipArray[this.tipArray.length-1] = null; this.tipArray[this.tipArray.length - 1] = null;
this.tipArray.pop(); this.tipArray.pop();
this.controlArray.pop(); this.controlArray.pop();
} }
} }
this.setPosition(tip); this.setPosition(tip);
this.tipArray.push(tip); this.tipArray.push(tip);
this.controlArray.push(data); this.controlArray.push(data);
if(this.tipArray.length >= 25){ if (this.tipArray.length >= 25) {
if((this.tipArray.length - 1)%8 == 0){ if ((this.tipArray.length - 1) % 8 == 0) {
this.mapMove(true); this.mapMove(true);
} }
} }
} }
//地图放不下了上下移动 //地图放不下了上下移动
mapMove(type){ mapMove(type) {
if(type) this.mapHeight += 48; if (type) this.mapHeight += 48;
else this.mapHeight -= 48; else this.mapHeight -= 48;
for(let i=0; i<this.tipArray.length;i++){ for (let i = 0; i < this.tipArray.length; i++) {
let tip = this.tipArray[i]; let tip = this.tipArray[i];
if(type)tip.y += 48; if (type) tip.y += 48;
else tip.y -= 48; else tip.y -= 48;
} }
} }
//点击开始 创建河道 //点击开始 创建河道
start_Click(){ start_Click() {
if(!this.canTouch) return; if (!this.canTouch) return;
this.canTouch = false; this.canTouch = false;
cc.fx.AudioManager._instance.playEffect("build",null); cc.fx.AudioManager._instance.playEffect("build", null);
cc.fx.Notifications.emit(cc.fx.Message.startGame,this.controlArray); cc.fx.Notifications.emit(cc.fx.Message.startGame, this.controlArray);
} }
// update (dt) {} // update (dt) {}

View File

@ -188,14 +188,6 @@ export default class GameManager extends cc.Component {
// 加载失败时仍尝试进入 HomeScene // 加载失败时仍尝试进入 HomeScene
} else { } else {
} }
// cc.tween(this.progress)
// .to(0.2, { fillRange: 1 })
// .start();
// cc.tween(this.lizi)
// .to(0.2, { x: 320 })
// .call(() => {
// })
// .start();
setTimeout(() => { setTimeout(() => {
cc.director.loadScene("HomeScene"); cc.director.loadScene("HomeScene");
}, 300); }, 300);

View File

@ -105,15 +105,13 @@ export default class JiaZai extends cc.Component {
if (cc.fx.GameConfig.GM_INFO.otherUid != "") { if (cc.fx.GameConfig.GM_INFO.otherUid != "") {
this.getShareInfo(); this.getShareInfo();
} }
console.log("最新版本___________");
this.node.getChildByName("zhuanchang").zIndex = 1000; this.node.getChildByName("zhuanchang").zIndex = 1000;
this.closeLoad(); this.closeLoad();
this.checkShare(); this.checkShare();
this.closeAvatar(); this.closeAvatar();
this.setShareInfo(); this.setShareInfo();
this.checkTasks(); this.checkTasks();
// this.checkDailyQuests();
//console.log("进入首页获取的share", cc.fx.GameConfig.GM_INFO.otherUid, cc.fx.GameConfig.GM_INFO.otherLevel);
cc.game.setFrameRate(63); cc.game.setFrameRate(63);
LQCollideSystem.is_enable = true; LQCollideSystem.is_enable = true;
@ -1400,13 +1398,23 @@ export default class JiaZai extends cc.Component {
} }
if (data.code == 1) { if (data.code == 1) {
this.getcard.active = true; this.getcard.active = true;
this.getcard.zIndex = 999;
let pauseNode = this.getcard.getChildByName("mcReward"); let pauseNode = this.getcard.getChildByName("mcReward");
pauseNode.scale = 0.3; pauseNode.scale = 0.3;
cc.tween(pauseNode) cc.tween(pauseNode)
.to(0.2, { scale: 1.05 }, { easing: 'backOut' }) .to(0.2, { scale: 1.05 }, { easing: 'backOut' })
.to(0.15, { scale: 1.0 }, { easing: 'sineOut' }) .to(0.15, { scale: 1.0 }, { easing: 'sineOut' })
.start(); .start();
NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.monthTime, 40, 20, "month_", this.cardTime, true) NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.monthTime, 40, 20, "month_", this.cardTime, true);
cc.fx.GameTool.changeCoin(500);
this.updateCoin();
const dataTemp = {
change_reason: "month",
id: "1001",
num: 500,
compensate: false
}
cc.fx.GameTool.shushu_Track("resource_get", dataTemp);
} }
}) })
} }
@ -1562,6 +1570,7 @@ export default class JiaZai extends cc.Component {
} }
else { else {
cc.fx.GameConfig.GM_INFO.otherLevel = 0; cc.fx.GameConfig.GM_INFO.otherLevel = 0;
cc.fx.GameConfig.GM_INFO.otherUid = "";
} }
// 可以在这里处理关卡信息和 UID // 可以在这里处理关卡信息和 UID
} }
@ -1570,15 +1579,6 @@ export default class JiaZai extends cc.Component {
onCardReward() { onCardReward() {
this.getcard.active = false; this.getcard.active = false;
cc.fx.GameTool.changeCoin(500);
this.updateCoin();
const dataTemp = {
change_reason: "month",
id: "1001",
num: 500,
compensate: false
}
cc.fx.GameTool.shushu_Track("resource_get", dataTemp);
} }
setFirstMusic() { setFirstMusic() {

View File

@ -165,6 +165,7 @@ export default class MapConroler extends cc.Component {
// mapInfo: number[][] = []; // mapInfo: number[][] = [];
onLoad() { onLoad() {
MiniGameSdk.API.setNewCloudlevel(); MiniGameSdk.API.setNewCloudlevel();
cc.fx.GameConfig.GM_INFO.review = 0; cc.fx.GameConfig.GM_INFO.review = 0;
cc.fx.GameConfig.GM_INFO.reviewBoom = 0; cc.fx.GameConfig.GM_INFO.reviewBoom = 0;
@ -1742,7 +1743,6 @@ export default class MapConroler extends cc.Component {
if (direction == "left") { if (direction == "left") {
if (this.mapBlocksWall[x - 1][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x - 1][y].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x - 1][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x - 1][y].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x - 1][y].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x - 1][y].getComponent("MapBlock").block_Id != id) {
console.log("左侧有物体")
jg = false; jg = false;
return jg; return jg;
} }
@ -1753,7 +1753,6 @@ export default class MapConroler extends cc.Component {
if ((x - 2) >= 0) { if ((x - 2) >= 0) {
if (this.mapBlocksWall[x - 2][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x - 2][y].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x - 2][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x - 2][y].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x - 2][y].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x - 2][y].getComponent("MapBlock").block_Id != id) {
console.log("左侧有物体")
jg = false; jg = false;
return jg; return jg;
} }
@ -1766,8 +1765,6 @@ export default class MapConroler extends cc.Component {
else if (direction == "right") { else if (direction == "right") {
if (this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id != id) {
console.log("右侧有物体", (x + 1), y)
console.log(this.mapBlocksWall[x + 1][y].getComponent("MapBlock").block_Id)
jg = false; jg = false;
return jg; return jg;
} }
@ -1778,7 +1775,6 @@ export default class MapConroler extends cc.Component {
if ((x + 2) <= this.mapBlocksWall.length - 1) { if ((x + 2) <= this.mapBlocksWall.length - 1) {
if (this.mapBlocksWall[x + 2][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x + 2][y].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x + 2][y].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x + 2][y].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x + 2][y].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x + 2][y].getComponent("MapBlock").block_Id != id) {
console.log("右侧有物体")
jg = false; jg = false;
return jg; return jg;
} }
@ -1791,7 +1787,6 @@ export default class MapConroler extends cc.Component {
if (direction == "up") { if (direction == "up") {
if (this.mapBlocksWall[x][y + 1].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y + 1].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x][y + 1].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y + 1].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x][y + 1].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x][y + 1].getComponent("MapBlock").block_Id != id) {
console.log("上侧有物体")
jg = false; jg = false;
return jg; return jg;
} }
@ -1802,7 +1797,6 @@ export default class MapConroler extends cc.Component {
if ((y + 2) <= this.mapBlocksWall[x].length - 1) { if ((y + 2) <= this.mapBlocksWall[x].length - 1) {
if (this.mapBlocksWall[x][y + 2].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y + 2].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x][y + 2].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y + 2].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x][y + 2].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x][y + 2].getComponent("MapBlock").block_Id != id) {
console.log("上侧有物体")
jg = false; jg = false;
return jg; return jg;
} }
@ -1813,10 +1807,8 @@ export default class MapConroler extends cc.Component {
} }
} }
if (direction == "down") { if (direction == "down") {
if (this.mapBlocksWall[x][y - 1].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y - 1].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x][y - 1].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y - 1].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x][y - 1].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x][y - 1].getComponent("MapBlock").block_Id != id) {
// console.log("下侧有物体1")
jg = false; jg = false;
return jg; return jg;
} }
@ -1827,7 +1819,6 @@ export default class MapConroler extends cc.Component {
if ((y - 2) >= 0) { if ((y - 2) >= 0) {
if (this.mapBlocksWall[x][y - 2].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y - 2].getComponent("MapBlock").block_Id != "Wall" if (this.mapBlocksWall[x][y - 2].getComponent("MapBlock").block_Id != "" && this.mapBlocksWall[x][y - 2].getComponent("MapBlock").block_Id != "Wall"
&& this.mapBlocksWall[x][y - 2].getComponent("MapBlock").block_Id != id) { && this.mapBlocksWall[x][y - 2].getComponent("MapBlock").block_Id != id) {
// console.log("下侧有物体2")
jg = false; jg = false;
return jg; return jg;
} }
@ -1837,6 +1828,7 @@ export default class MapConroler extends cc.Component {
} }
} }
} }
// console.log("检测物体各方向是否有别的物块", jg); // console.log("检测物体各方向是否有别的物块", jg);
return jg; return jg;
} }
@ -2155,7 +2147,8 @@ export default class MapConroler extends cc.Component {
againLevel() { againLevel() {
cc.fx.AudioManager._instance.playEffect("anniu_Big", null); cc.fx.AudioManager._instance.playEffect("anniu_Big", null);
this.adhesiveBlock = []; this.adhesiveBlock = [];
console.log(MapConroler._instance.powerState); this.powerState = cc.fx.GameTool.getUserPowerTime();
console.log("无限体力状态", MapConroler._instance.powerState);
if (cc.fx.GameConfig.GM_INFO.hp < 1 && MapConroler._instance.powerState == false) { if (cc.fx.GameConfig.GM_INFO.hp < 1 && MapConroler._instance.powerState == false) {
MiniGameSdk.API.showToast("体力值不足"); MiniGameSdk.API.showToast("体力值不足");
setTimeout(() => { setTimeout(() => {
@ -2313,6 +2306,7 @@ export default class MapConroler extends cc.Component {
homeBtn() { homeBtn() {
this.powerState = cc.fx.GameTool.getUserPowerTime();
if (this.powerState) { if (this.powerState) {
this.returnHome(); this.returnHome();
return; return;
@ -2434,6 +2428,8 @@ export default class MapConroler extends cc.Component {
}); });
setTimeout(() => { setTimeout(() => {
cc.fx.GameConfig.GM_INFO.otherLevel = 0;
cc.fx.GameConfig.GM_INFO.otherUid = "";
cc.director.loadScene("HomeScene"); cc.director.loadScene("HomeScene");
}, 1200); }, 1200);
} }

View File

@ -217,6 +217,7 @@ export default class SceneManager extends cc.Component {
} }
returnHome() { returnHome() {
if (this.node.getChildByName("Pause").getChildByName("btn").getComponent("btnControl")._touch) { if (this.node.getChildByName("Pause").getChildByName("btn").getComponent("btnControl")._touch) {
this.closePause(); this.closePause();
if (MapConroler._instance.gameStart == true) { if (MapConroler._instance.gameStart == true) {
@ -240,6 +241,7 @@ export default class SceneManager extends cc.Component {
} }
} }
this.node.getChildByName("Pause").getChildByName("btn").getComponent("btnControl").setTouch(false); this.node.getChildByName("Pause").getChildByName("btn").getComponent("btnControl").setTouch(false);
cc.fx.AudioManager._instance.playEffect("zhuan1", null); cc.fx.AudioManager._instance.playEffect("zhuan1", null);
this.node.getChildByName("zhuanchang").active = true; this.node.getChildByName("zhuanchang").active = true;
@ -253,6 +255,8 @@ export default class SceneManager extends cc.Component {
}); });
setTimeout(() => { setTimeout(() => {
cc.fx.GameConfig.GM_INFO.otherLevel = 0;
cc.fx.GameConfig.GM_INFO.otherUid = "";
cc.director.loadScene("HomeScene"); cc.director.loadScene("HomeScene");
}, 1200); }, 1200);
} }

View File

@ -1,7 +1,5 @@
import NumberToImage from "../../NumberToImage"; import NumberToImage from "../../NumberToImage";
import List, { ListType } from "./List";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass

View File

@ -399,8 +399,8 @@ var GameTool = {
//关卡上限 //关卡上限
maxLevel() { maxLevel() {
let jg = false; let jg = false;
if (cc.fx.GameConfig.GM_INFO.level > 629) { if (cc.fx.GameConfig.GM_INFO.level > 649) {
cc.fx.GameConfig.GM_INFO.level = 630; cc.fx.GameConfig.GM_INFO.level = 650;
jg = true; jg = true;
} }
return jg; return jg;

View File

@ -0,0 +1,309 @@
/*******************************************************************************
* 作者: 水煮肉片饭(27185709@qq.com)
* 版本: v1.3
* 描述: 圆角矩形
*******************************************************************************/
const CENTER_IDATA = [0, 9, 11, 0, 11, 1, 2, 8, 10, 2, 4, 8, 3, 5, 7, 3, 7, 6];
export enum SizeMode { 'CUSTOM: 自定义尺寸', 'TRIMMED: 原始尺寸裁剪透明像素', 'RAW: 图片原始尺寸' }
const { ccclass, property, menu } = cc._decorator;
@ccclass('Corner')
class Corner {
@property({ displayName: CC_DEV && '↙ 左下' })
leftBottom: boolean = true;
@property({ displayName: CC_DEV && '↘ 右下' })
rightBottom: boolean = true;
@property({ displayName: CC_DEV && '↗ 右上' })
rightTop: boolean = true;
@property({ displayName: CC_DEV && '↖ 左上' })
leftTop: boolean = true;
visible: boolean[] = null;
}
@ccclass
@menu('Comp/RoundBox')
export default class RoundBox extends cc.RenderComponent {
@property({ type: cc.SpriteAtlas, serializable: false, readonly: true, displayName: CC_DEV && 'Atlas' })
private atlas: cc.SpriteAtlas = null;
@property
private _spriteFrame: cc.SpriteFrame = null;
@property({ type: cc.SpriteFrame, displayName: CC_DEV && 'Sprite Frame' })
get spriteFrame() { return this._spriteFrame; }
set spriteFrame(value: cc.SpriteFrame) {
this._spriteFrame = value;
this.updateSpriteFrame();
this.updateSizeMode();
}
@property
private _sizeMode: SizeMode = SizeMode['TRIMMED: 原始尺寸裁剪透明像素'];
@property({ type: cc.Enum(SizeMode), displayName: CC_DEV && 'Size Mode' })
get sizeMode() { return this._sizeMode; }
set sizeMode(value: SizeMode) {
this._sizeMode = value;
this.updateSizeMode();
}
@property
private _radius: number = 100;
@property({ displayName: CC_DEV && '圆角半径' })
get radius() { return this._radius; }
set radius(value: number) {
this._radius = Math.max(value, 0);
this['setVertsDirty']();
}
@property
private _segment: number = 5;
@property({ type: cc.Integer, displayName: CC_DEV && '线段数量' })
get segment() { return this._segment; }
set segment(value: number) {
this._segment = Math.max(value, 1);
this.createBuffer();
this.updateIndice();
this['setVertsDirty']();
this.node['_renderFlag'] |= cc['RenderFlow'].FLAG_OPACITY_COLOR;
}
@property
private _corner: Corner = new Corner();
@property({ displayName: CC_DEV && '圆角可见性' })
get corner() { return this._corner; }
set corner(value: Corner) {
this._corner = value;
this.updateCorner();
this.createBuffer();
this.updateIndice();
this['setVertsDirty']();
this.node['_renderFlag'] |= cc['RenderFlow'].FLAG_OPACITY_COLOR;
}
private renderData = null; //提交给GPU的渲染数据包括vDatas、uintVDatas、iDatas
private xyOffset: number = 1e8; //顶点坐标数据,在顶点数组中的偏移
private uvOffset: number = 1e8; //顶点uv数据在顶点数组中的偏移
private colorOffset: number = 1e8; //顶点颜色数据,在顶点数组中的偏移
private step: number = 0; //单个顶点数据的长度例如顶点格式“x,y,u,v,color” step = 5
private local: number[] = []; //顶点本地坐标
protected _resetAssembler() {
//定制Assembler
let assembler = this['_assembler'] = new cc['Assembler']();
assembler.updateRenderData = this.updateVData.bind(this);
assembler.updateColor = this.updateColor.bind(this);
assembler.init(this);
//定制RenderData
this.renderData = new cc['RenderData']();
this.renderData.init(assembler);
//初始化顶点格式
let vfmt = assembler.getVfmt();
let fmtElement = vfmt._elements;
for (let i = fmtElement.length - 1; i > -1; this.step += fmtElement[i--].bytes >> 2);
let fmtAttr = vfmt._attr2el;
this.xyOffset = fmtAttr.a_position.offset >> 2;
this.uvOffset = fmtAttr.a_uv0.offset >> 2;
this.colorOffset = fmtAttr.a_color.offset >> 2;
}
protected onLoad() {
this.updateSpriteFrame();
this.updateSizeMode();
this.updateCorner();
this.createBuffer();
this.updateIndice();
this.node.on(cc.Node.EventType.ANCHOR_CHANGED, this.onAnchorChanged, this);
this.node.on(cc.Node.EventType.SIZE_CHANGED, this.onSizeChanged, this);
}
protected onDestroy() {
super.onDestroy();
this.node.off(cc.Node.EventType.ANCHOR_CHANGED, this.onAnchorChanged, this);
this.node.off(cc.Node.EventType.SIZE_CHANGED, this.onSizeChanged, this);
}
//更新圆角数据
private updateCorner() {
let corner = this._corner;
corner.visible = [corner.leftBottom, corner.rightBottom, corner.rightTop, corner.leftTop];
}
//设置顶点个数和三角形个数
private createBuffer() {
let cornerCnt = 0;
for (let i = 0, visible = this._corner.visible; i < 4; visible[i++] && ++cornerCnt);
let vertices = new Float32Array(5 * (12 + cornerCnt * (this._segment - 1)));
let indices = new Uint16Array(3 * (6 + cornerCnt * this._segment));
this.renderData.updateMesh(0, vertices, indices);
}
//Web平台将renderData的数据提交给GPU渲染vDatas使用世界坐标
//原生平台并不会执行该函数引擎另外实现了渲染函数vDatas使用本地坐标
private fillBuffers(comp: cc.RenderComponent, renderer: any) {
let vData = this.renderData.vDatas[0];
let iData = this.renderData.iDatas[0];
renderer.worldMatDirty && this.fitXY(vData);
let buffer = renderer._meshBuffer;
let offsetInfo = buffer.request(vData.length, iData.length);
let vertexOffset = offsetInfo.byteOffset >> 2;
let vbuf = buffer._vData;
if (vData.length + vertexOffset > vbuf.length) {
vbuf.set(vData.subarray(0, vbuf.length - vertexOffset), vertexOffset);
} else {
vbuf.set(vData, vertexOffset);
}
let ibuf = buffer._iData;
let indiceOffset = offsetInfo.indiceOffset;
let vertexId = offsetInfo.vertexOffset;
for (let i = 0, len = iData.length; i < len; ibuf[indiceOffset++] = vertexId + iData[i++]);
}
//可以传入cc.SpriteFrame图集帧支持合批推荐或单张图片cc.Texture2D
private updateSpriteFrame() {
let frame = this._spriteFrame;
this['_assembler'].fillBuffers = frame ? this.fillBuffers.bind(this) : () => { };
let material = this.getMaterial(0) || cc.Material.getBuiltinMaterial('2d-sprite');
material.define("USE_TEXTURE", true);
material.setProperty("texture", frame ? frame.getTexture() : null);
if (CC_EDITOR) {
if (frame && frame.isValid && frame['_atlasUuid']) {
cc.assetManager.loadAny(frame['_atlasUuid'], (err, asset: cc.SpriteAtlas) => {
this.atlas = asset;
});
} else {
this.atlas = null;
}
}
}
//根据尺寸模式,修改节点尺寸
private updateSizeMode() {
if (!this._spriteFrame) return;
switch (this._sizeMode) {
case SizeMode['TRIMMED: 原始尺寸裁剪透明像素']: this.node.setContentSize(this._spriteFrame['_rect'].size); break;
case SizeMode['RAW: 图片原始尺寸']: this.node.setContentSize(this._spriteFrame['_originalSize']); break;
}
}
//计算VData数据包括xy,uv,color
private updateVData() {
let vData = this.renderData.vDatas[0];
let local = cc.sys.isNative ? vData : this.local;
let node = this.node;
let cw = node.width, ch = node.height;
let l = -cw * node.anchorX;
let b = -ch * node.anchorY;
let r = cw * (1 - node.anchorX);
let t = ch * (1 - node.anchorY);
let radius = Math.min(this._radius, Math.min(cw, ch) / 2);
let lo = l + radius;
let bo = b + radius;
let ro = r - radius;
let to = t - radius;
let corner = this._corner;
local[0] = lo; local[1] = corner.leftBottom ? bo : b;
local[5] = l; local[6] = local[1];
local[10] = lo; local[11] = b;
local[15] = ro; local[16] = corner.rightBottom ? bo : b;
local[20] = ro; local[21] = b;
local[25] = r; local[26] = local[16];
local[30] = ro; local[31] = corner.rightTop ? to : t;
local[35] = r; local[36] = local[31];
local[40] = ro; local[41] = t;
local[45] = lo; local[46] = corner.leftTop ? to : t;
local[50] = lo; local[51] = t;
local[55] = l; local[56] = local[46];
let radian = Math.PI / (this._segment << 1);
let cos = Math.cos(radian);
let sin = Math.sin(radian);
let visible = corner.visible;
for (let i = 0, offset = 60, step = this.step; i < 4; ++i) {
if (!visible[i]) continue;
let id = 3 * i * step;
let ox = local[id];
let oy = local[id + 1];
id += step;
let deltX = local[id] - ox;
let deltY = local[id + 1] - oy;
for (let j = 0, len = this._segment - 1; j < len; ++j) {
local[offset] = ox + deltX * cos - deltY * sin;
local[offset + 1] = oy + deltY * cos + deltX * sin;
deltX = local[offset] - ox;
deltY = local[offset + 1] - oy;
offset += step;
}
}
!cc.sys.isNative && this.fitXY(vData);
for (let i = 0, len = vData.length, step = this.step; i < len; i += step) {
vData[i + 2] = (local[i] - l) / cw;
vData[i + 3] = 1 - (local[i + 1] - b) / ch;
}
this.fitUV(vData);
}
//自动适配XY修改顶点xy数据后需主动调用该函数
private fitXY(vData: Float32Array) {
let m = this.node['_worldMatrix'].m;
let m0 = m[0], m1 = m[1], m4 = m[4], m5 = m[5], m12 = m[12], m13 = m[13];
for (let i = this.xyOffset, len = vData.length, step = this.step, local = this.local; i < len; i += step) {
let x = local[i], y = local[i + 1];
vData[i] = x * m0 + y * m4 + m12;
vData[i + 1] = x * m1 + y * m5 + m13;
}
}
//自动适配UV修改顶点uv数据后需主动调用该函数
private fitUV(vData: Float32Array) {
let frame = this._spriteFrame;
if (frame === null) return;
let atlasW = frame['_texture'].width, atlasH = frame['_texture'].height;
let frameRect = frame['_rect'];
//计算图集帧在大图中的UV坐标
if (frame['_rotated']) {//如果图集帧发生旋转计算UV时需回正
for (let i = this.uvOffset, id = 0, len = vData.length, step = this.step; i < len; i += step, ++id) {
let tmp = vData[i];
vData[i] = ((1 - vData[i + 1]) * frameRect.height + frameRect.x) / atlasW;
vData[i + 1] = (tmp * frameRect.width + frameRect.y) / atlasH;
}
} else {//如果图集帧未发生旋转,正常计算即可
for (let i = this.uvOffset, id = 0, len = vData.length, step = this.step; i < len; i += step, ++id) {
vData[i] = (vData[i] * frameRect.width + frameRect.x) / atlasW;
vData[i + 1] = (vData[i + 1] * frameRect.height + frameRect.y) / atlasH;
}
}
}
//计算顶点颜色
private updateColor() {
let uintVData = this.renderData.uintVDatas[0];
let color = this.node.color['_val'];
for (let i = this.colorOffset, len = uintVData.length, step = this.step; i < len; uintVData[i] = color, i += step);
}
//计算顶点索引
private updateIndice() {
let iData = this.renderData.iDatas[0];
for (let i = CENTER_IDATA.length - 1; i > -1; iData[i] = CENTER_IDATA[i--]);
let offset = CENTER_IDATA.length;
let visible = this._corner.visible;
let id = 36;
for (let i = 0; i < 4; ++i) {
if (!visible[i]) continue;
let o = 3 * i;
let a = o + 1;
let b = id / 3;
for (let j = 0, len = this._segment - 1; j < len; ++j) {
iData[offset++] = o;
iData[offset++] = a;
iData[offset++] = b;
a = b++;
id += 3;
}
iData[offset++] = o;
iData[offset++] = a;
iData[offset++] = o + 2;
}
}
//修改节点锚点后,更新顶点数据
private onAnchorChanged() {
this['setVertsDirty']();
}
//修改节点尺寸后更新顶点数据并根据sizeMode设置图片宽高
private onSizeChanged() {
this['setVertsDirty']();
if (this._spriteFrame) {
switch (this._sizeMode) {
case SizeMode['TRIMMED: 原始尺寸裁剪透明像素']:
let rect = this._spriteFrame['_rect'].size;
if (this.node.width === rect.width && this.node.height === rect.height) return;
break;
case SizeMode['RAW: 图片原始尺寸']:
let size = this._spriteFrame['_originalSize'];
if (this.node.width === size.width && this.node.height === size.height) return;
break;
}
}
this._sizeMode = SizeMode['CUSTOM: 自定义尺寸'];
}
}

View File

@ -107,7 +107,6 @@ export default class setUi extends cc.Component {
this.effect.children[0].active = true; this.effect.children[0].active = true;
this.effect.children[1].active = false; this.effect.children[1].active = false;
} }
} }
@ -141,6 +140,7 @@ export default class setUi extends cc.Component {
MapConroler._instance.returnHome(); MapConroler._instance.returnHome();
} }
else { else {
MapConroler._instance.powerState = cc.fx.GameTool.getUserPowerTime();
if (MapConroler._instance.powerState == false) { if (MapConroler._instance.powerState == false) {
let pauseNode = null; let pauseNode = null;
if (cc.fx.GameConfig.GM_INFO.winStreak < 10 || cc.fx.GameConfig.GM_INFO.otherLevel > 0) { if (cc.fx.GameConfig.GM_INFO.winStreak < 10 || cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
@ -196,9 +196,12 @@ export default class setUi extends cc.Component {
//游戏开始后 //游戏开始后
else { else {
//没有无限体力 //没有无限体力
MapConroler._instance.powerState = cc.fx.GameTool.getUserPowerTime();
if (MapConroler._instance.powerState == false) { if (MapConroler._instance.powerState == false) {
console.log("没有无限体力", MapConroler._instance.powerState);
//首页重开按钮 //首页重开按钮
if (customEventData != "hp") { if (customEventData != "hp") {
console.log("从首页一级页面点击重开直接重开");
let pauseNode = null; let pauseNode = null;
if (cc.fx.GameConfig.GM_INFO.winStreak < 10 || cc.fx.GameConfig.GM_INFO.otherLevel > 0) { if (cc.fx.GameConfig.GM_INFO.winStreak < 10 || cc.fx.GameConfig.GM_INFO.otherLevel > 0) {
this.exit.active = true; this.exit.active = true;
@ -216,6 +219,7 @@ export default class setUi extends cc.Component {
pauseNode.getChildByName("Health").getChildByName("queding").active = true; pauseNode.getChildByName("Health").getChildByName("queding").active = true;
} }
else { else {
console.log("从二级页面点击重开");
if (cc.fx.GameConfig.GM_INFO.otherLevel == 0) { if (cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
cc.fx.GameTool.setWinStreak("fail"); cc.fx.GameTool.setWinStreak("fail");
} }
@ -224,7 +228,9 @@ export default class setUi extends cc.Component {
} }
//有无限体力 //有无限体力
else { else {
console.log("______有无限体力", MapConroler._instance.powerState);
if (customEventData != "hp") { if (customEventData != "hp") {
console.log("从首页一级页面点击重开直接重开");
if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) { if (cc.fx.GameConfig.GM_INFO.winStreak >= 10 && cc.fx.GameConfig.GM_INFO.otherLevel == 0) {
let pauseNode = null; let pauseNode = null;
this.win.active = true; this.win.active = true;
@ -237,10 +243,12 @@ export default class setUi extends cc.Component {
pauseNode.getChildByName("Health").getChildByName("queding").active = true; pauseNode.getChildByName("Health").getChildByName("queding").active = true;
} }
else { else {
console.log("没有连胜,直接重开");
MapConroler._instance.againLevel(); MapConroler._instance.againLevel();
} }
} }
else { else {
console.log("从二级页面点击重开");
cc.fx.GameTool.setWinStreak("fail"); cc.fx.GameTool.setWinStreak("fail");
MapConroler._instance.againLevel(); MapConroler._instance.againLevel();
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,425 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>Black0.png</key>
<dict>
<key>frame</key>
<string>{{72,2},{33,35}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,1},{33,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black1.png</key>
<dict>
<key>frame</key>
<string>{{122,230},{23,35}}</string>
<key>offset</key>
<string>{-1,1}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{4,0},{23,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black11.png</key>
<dict>
<key>frame</key>
<string>{{2,241},{13,31}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{10,3},{13,31}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black2.png</key>
<dict>
<key>frame</key>
<string>{{93,76},{31,35}}</string>
<key>offset</key>
<string>{-1,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{31,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black3.png</key>
<dict>
<key>frame</key>
<string>{{105,39},{29,35}}</string>
<key>offset</key>
<string>{-1,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,1},{29,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black4.png</key>
<dict>
<key>frame</key>
<string>{{97,193},{33,35}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,1},{33,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black5.png</key>
<dict>
<key>frame</key>
<string>{{107,2},{29,33}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{2,2},{29,33}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black6.png</key>
<dict>
<key>frame</key>
<string>{{72,39},{31,35}}</string>
<key>offset</key>
<string>{-1,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,1},{31,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black7.png</key>
<dict>
<key>frame</key>
<string>{{66,135},{33,35}}</string>
<key>offset</key>
<string>{0,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{33,35}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black8.png</key>
<dict>
<key>frame</key>
<string>{{64,194},{31,37}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{31,37}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>Black9.png</key>
<dict>
<key>frame</key>
<string>{{60,96},{31,37}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{31,37}}</string>
<key>sourceSize</key>
<string>{33,37}</string>
</dict>
<key>custom0.png</key>
<dict>
<key>frame</key>
<string>{{36,49},{34,45}}</string>
<key>offset</key>
<string>{0,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{34,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom1.png</key>
<dict>
<key>frame</key>
<string>{{38,96},{20,45}}</string>
<key>offset</key>
<string>{0,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{7,0},{20,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom2.png</key>
<dict>
<key>frame</key>
<string>{{34,147},{30,45}}</string>
<key>offset</key>
<string>{0,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{2,0},{30,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom3.png</key>
<dict>
<key>frame</key>
<string>{{34,194},{28,45}}</string>
<key>offset</key>
<string>{-1,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{2,1},{28,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom4.png</key>
<dict>
<key>frame</key>
<string>{{36,2},{34,45}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,1},{34,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom5.png</key>
<dict>
<key>frame</key>
<string>{{2,194},{30,45}}</string>
<key>offset</key>
<string>{-1,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{30,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom6.png</key>
<dict>
<key>frame</key>
<string>{{2,147},{30,45}}</string>
<key>offset</key>
<string>{0,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{2,0},{30,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom7.png</key>
<dict>
<key>frame</key>
<string>{{2,100},{34,45}}</string>
<key>offset</key>
<string>{0,1}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{34,45}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom8.png</key>
<dict>
<key>frame</key>
<string>{{2,51},{32,47}}</string>
<key>offset</key>
<string>{-1,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{32,47}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>custom9.png</key>
<dict>
<key>frame</key>
<string>{{2,2},{32,47}}</string>
<key>offset</key>
<string>{-1,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{32,47}}</string>
<key>sourceSize</key>
<string>{34,47}</string>
</dict>
<key>white0.png</key>
<dict>
<key>frame</key>
<string>{{126,76},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white1.png</key>
<dict>
<key>frame</key>
<string>{{124,171},{19,27}}</string>
<key>offset</key>
<string>{-1,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white2.png</key>
<dict>
<key>frame</key>
<string>{{93,233},{21,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{21,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white3.png</key>
<dict>
<key>frame</key>
<string>{{122,142},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white4.png</key>
<dict>
<key>frame</key>
<string>{{64,233},{21,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{21,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white5.png</key>
<dict>
<key>frame</key>
<string>{{122,113},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white6.png</key>
<dict>
<key>frame</key>
<string>{{101,134},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white7.png</key>
<dict>
<key>frame</key>
<string>{{93,113},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white8.png</key>
<dict>
<key>frame</key>
<string>{{95,172},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
<key>white9.png</key>
<dict>
<key>frame</key>
<string>{{66,172},{19,27}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{1,0},{19,27}}</string>
<key>sourceSize</key>
<string>{21,27}</string>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>2</integer>
<key>realTextureFileName</key>
<string>careerFont.png</string>
<key>size</key>
<string>{256,256}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:9ea2451e2c54bf90b1931b139c36c490$</string>
<key>textureFileName</key>
<string>careerFont.png</string>
</dict>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -0,0 +1,295 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>beginBtn.png</key>
<dict>
<key>frame</key>
<string>{{2,685},{570,176}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{570,176}}</string>
<key>sourceSize</key>
<string>{570,176}</string>
</dict>
<key>cityBg.png</key>
<dict>
<key>frame</key>
<string>{{2,2},{962,634}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{962,634}}</string>
<key>sourceSize</key>
<string>{962,634}</string>
</dict>
<key>cityName.png</key>
<dict>
<key>frame</key>
<string>{{849,1052},{179,40}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{179,40}}</string>
<key>sourceSize</key>
<string>{179,40}</string>
</dict>
<key>customDi.png</key>
<dict>
<key>frame</key>
<string>{{574,685},{352,89}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{352,89}}</string>
<key>sourceSize</key>
<string>{352,89}</string>
</dict>
<key>customTitle.png</key>
<dict>
<key>frame</key>
<string>{{892,776},{230,32}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{230,32}}</string>
<key>sourceSize</key>
<string>{230,32}</string>
</dict>
<key>fenKuang.png</key>
<dict>
<key>frame</key>
<string>{{926,1132},{236,62}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{236,62}}</string>
<key>sourceSize</key>
<string>{236,62}</string>
</dict>
<key>gun1.png</key>
<dict>
<key>frame</key>
<string>{{604,638},{360,45}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{360,45}}</string>
<key>sourceSize</key>
<string>{360,45}</string>
</dict>
<key>gun2.png</key>
<dict>
<key>frame</key>
<string>{{2,638},{600,45}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{600,45}}</string>
<key>sourceSize</key>
<string>{600,45}</string>
</dict>
<key>gun3.png</key>
<dict>
<key>frame</key>
<string>{{966,2},{810,45}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{810,45}}</string>
<key>sourceSize</key>
<string>{810,45}</string>
</dict>
<key>icon_kuang0.png</key>
<dict>
<key>frame</key>
<string>{{2,1107},{168,168}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{168,168}}</string>
<key>sourceSize</key>
<string>{168,168}</string>
</dict>
<key>icon_kuang1.png</key>
<dict>
<key>frame</key>
<string>{{574,776},{274,316}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{274,316}}</string>
<key>sourceSize</key>
<string>{274,316}</string>
</dict>
<key>icon_kuang2.png</key>
<dict>
<key>frame</key>
<string>{{2,863},{242,299}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{242,299}}</string>
<key>sourceSize</key>
<string>{242,299}</string>
</dict>
<key>icon_kuang3.png</key>
<dict>
<key>frame</key>
<string>{{551,1052},{242,296}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{242,296}}</string>
<key>sourceSize</key>
<string>{242,296}</string>
</dict>
<key>jia.png</key>
<dict>
<key>frame</key>
<string>{{926,789},{38,38}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{38,38}}</string>
<key>sourceSize</key>
<string>{38,38}</string>
</dict>
<key>manKuang.png</key>
<dict>
<key>frame</key>
<string>{{926,894},{236,62}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{236,62}}</string>
<key>sourceSize</key>
<string>{236,62}</string>
</dict>
<key>rank1.png</key>
<dict>
<key>frame</key>
<string>{{928,685},{102,34}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{102,34}}</string>
<key>sourceSize</key>
<string>{102,34}</string>
</dict>
<key>rank2.png</key>
<dict>
<key>frame</key>
<string>{{892,1008},{141,32}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{141,32}}</string>
<key>sourceSize</key>
<string>{141,32}</string>
</dict>
<key>rank3.png</key>
<dict>
<key>frame</key>
<string>{{926,860},{66,32}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{66,32}}</string>
<key>sourceSize</key>
<string>{66,32}</string>
</dict>
<key>rank4.png</key>
<dict>
<key>frame</key>
<string>{{926,829},{89,29}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<false/>
<key>sourceColorRect</key>
<string>{{0,0},{89,29}}</string>
<key>sourceSize</key>
<string>{89,29}</string>
</dict>
<key>staffKuang1.png</key>
<dict>
<key>frame</key>
<string>{{303,1063},{198,246}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{198,246}}</string>
<key>sourceSize</key>
<string>{198,246}</string>
</dict>
<key>staffKuang2.png</key>
<dict>
<key>frame</key>
<string>{{303,863},{198,246}}</string>
<key>offset</key>
<string>{0,0}</string>
<key>rotated</key>
<true/>
<key>sourceColorRect</key>
<string>{{0,0},{198,246}}</string>
<key>sourceSize</key>
<string>{198,246}</string>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>2</integer>
<key>realTextureFileName</key>
<string>careerUI.png</string>
<key>size</key>
<string>{1024,2048}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:4c876253524b1cd2dadda5c7f0cf6a95$</string>
<key>textureFileName</key>
<string>careerUI.png</string>
</dict>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -24,16 +24,19 @@
"__id__": 5 "__id__": 5
}, },
{ {
"__id__": 8 "__id__": 9
}, },
{ {
"__id__": 11 "__id__": 12
},
{
"__id__": 15
} }
], ],
"_active": true, "_active": true,
"_components": [], "_components": [],
"_prefab": { "_prefab": {
"__id__": 14 "__id__": 18
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
@ -84,7 +87,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "New Sprite(Splash)", "_name": "bg",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
@ -109,8 +112,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 200, "width": 198,
"height": 200 "height": 246
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -162,10 +165,10 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91" "__uuid__": "81eb532f-0b17-497f-8816-fb7b79510fa4"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 1,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -175,7 +178,9 @@
"_fillStart": 0, "_fillStart": 0,
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": {
"__uuid__": "933f7976-6238-4e66-bef6-a7e118893b12"
},
"_id": "" "_id": ""
}, },
{ {
@ -186,12 +191,12 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "f0xXtNtjdI9J4jmOqz3XAO", "fileId": "03h/yIG2hLHZSyk9jJ+AJa",
"sync": false "sync": false
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "level", "_name": "icon",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
@ -204,20 +209,20 @@
} }
], ],
"_prefab": { "_prefab": {
"__id__": 7 "__id__": 8
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 15,
"g": 0, "g": 255,
"b": 0, "b": 0,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 22.25, "width": 124,
"height": 50.4 "height": 124
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -228,8 +233,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-1.083, 0,
-76.891, 31.109,
0, 0,
0, 0,
0, 0,
@ -254,7 +259,7 @@
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.Label", "__type__": "31670ww/2BCzL5bnJFdBuT7",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
@ -266,26 +271,24 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_srcBlendFactor": 770, "_spriteFrame": {
"_dstBlendFactor": 771, "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
"_string": "1", },
"_N$string": "1", "_sizeMode": 0,
"_fontSize": 40, "_radius": 11,
"_lineHeight": 40, "_segment": 5,
"_enableWrapText": true, "_corner": {
"_N$file": null, "__id__": 7
"_isSystemFontUsed": true, },
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "" "_id": ""
}, },
{
"__type__": "Corner",
"leftBottom": true,
"rightBottom": true,
"rightTop": true,
"leftTop": true
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
@ -294,7 +297,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "c3gvb6kbZHc5f5r4PZ6uqE", "fileId": "6c9kbYYzROW581yj6a4ppI",
"sync": false "sync": false
}, },
{ {
@ -308,11 +311,11 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 9 "__id__": 10
} }
], ],
"_prefab": { "_prefab": {
"__id__": 10 "__id__": 11
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
@ -324,8 +327,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 160, "width": 128,
"height": 50.4 "height": 40.32
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -336,8 +339,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
2.166, 0,
-35.77, -60.241,
0, 0,
0, 0,
0, 0,
@ -366,7 +369,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 9
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -376,10 +379,10 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "玩家名字", "_string": "匿名玩家",
"_N$string": "玩家名字", "_N$string": "匿名玩家",
"_fontSize": 40, "_fontSize": 32,
"_lineHeight": 40, "_lineHeight": 32,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": null, "_N$file": null,
"_isSystemFontUsed": true, "_isSystemFontUsed": true,
@ -407,7 +410,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "icon", "_name": "level",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 1
@ -416,24 +419,24 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 12 "__id__": 13
} }
], ],
"_prefab": { "_prefab": {
"__id__": 13 "__id__": 14
}, },
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 255, "r": 70,
"g": 8, "g": 137,
"b": 8, "b": 191,
"a": 255 "a": 255
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 100, "width": 91.77,
"height": 100 "height": 41.58
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@ -444,8 +447,116 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-1.083,
-97.801,
0, 0,
42.24, 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.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "99999",
"_N$string": "99999",
"_fontSize": 33,
"_lineHeight": 33,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c3gvb6kbZHc5f5r4PZ6uqE",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
}
],
"_prefab": {
"__id__": 17
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 142,
"height": 142
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
50.378,
-70.304,
0, 0,
0, 0,
0, 0,
@ -474,7 +585,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 11 "__id__": 15
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
@ -484,9 +595,7 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": null,
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
@ -509,7 +618,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "6c9kbYYzROW581yj6a4ppI", "fileId": "0d84wMeDFEv6jS0w8o0PMq",
"sync": false "sync": false
}, },
{ {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
import CollisionDetection from "./CollisionDetection"; import Utils from "../../Script/module/Pay/Utils";
import MapConroler from "./Map";
import Utils from "./module/Pay/Utils";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ -23,7 +22,6 @@ export default class Career extends cc.Component {
start() { start() {
console.log("根据服务器信息去拿当日前6以及省市第一信息"); console.log("根据服务器信息去拿当日前6以及省市第一信息");
let careerInfo = Utils.getDailyQuestInfo(() => { let careerInfo = Utils.getDailyQuestInfo(() => {
debugger;
this.careerInfo = careerInfo; this.careerInfo = careerInfo;
this.init(); this.init();
}); });

View File

@ -0,0 +1,90 @@
import NumberToImage from "../../Script/NumberToImage";
const { ccclass, property } = cc._decorator;
@ccclass
export default class CareerItem extends cc.Component {
/**数据 */
public data: any = null;
/**索引 0表示第一项*/
public itemIndex: number = 0;
@property(cc.SpriteFrame)
defaultsprite: cc.SpriteFrame = null;
@property(cc.SpriteAtlas)
ui: cc.SpriteAtlas = null;
/**数据改变时调用 */
public dataChanged() {
let useravatarIcon = this.data.useravatarIcon;
useravatarIcon = "kuang_" + (parseInt(useravatarIcon) + 1);
this.node.getChildByName("icon").getComponent(cc.Sprite).spriteFrame =
this.ui.getSpriteFrame(useravatarIcon);
console.log("用户头像框:", this.data.useravatarIcon, useravatarIcon);
this.data.username = cc.fx.GameTool.subName(this.data.username, 7);
let name = this.data.username;
if (name == "user") name = "匿名玩家";
// this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
this.node.getChildByName("nameLab").getComponent(cc.Label).string = name + "";
// this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.levelAmount;
NumberToImage.numberToImageNodes3((this.data.rank), 43, 15, "rank_", this.node.getChildByName("rankLab"), true);
NumberToImage.numberToImageNodes3(this.data.levelAmount, 43, 15, "level_", this.node.getChildByName("totalLab"), true);
// this.node.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
this.node.getChildByName("rank").getChildByName("one").active = false;
this.node.getChildByName("rank").getChildByName("two").active = false;
this.node.getChildByName("rank").getChildByName("three").active = false;
if (this.data.rank == 1) {
this.node.getChildByName("rank").getChildByName("one").active = true;
this.node.getChildByName("rankLab").active = false;
}
else if (this.data.rank == 2) {
this.node.getChildByName("rank").getChildByName("two").active = true;
this.node.getChildByName("rankLab").active = false;
}
else if (this.data.rank == 3) {
this.node.getChildByName("rank").getChildByName("three").active = true;
this.node.getChildByName("rankLab").active = false;
} else {
this.node.getChildByName("rankLab").active = true;
}
if (this.data.useravatar == "" || this.data.useravatar == null || this.data.useravatar == undefined
) {
this.node.getChildByName("pic").getComponent(cc.Sprite).spriteFrame = this.defaultsprite;
}
else if (this.data.useravatar == "0" || this.data.useravatar == "1" || this.data.useravatar == "2"
|| this.data.useravatar == "3") {
let useravatar = this.data.useravatar;
let useravatarTemp = "icon_" + useravatar;
console.log("用户头像:", useravatarTemp);
this.node.getChildByName("pic").getComponent(cc.Sprite).spriteFrame = this.ui.getSpriteFrame(useravatarTemp);
}
else this.setPic();
}
public setPic() {
// console.log("设置头像:", this.data.useravatar);
// this.node.getChildByName("pic").getChildByName("icon").active = false;
this.node.getChildByName("pic").active = false;
var self = this;
let url = this.data.useravatar;
cc.assetManager.loadRemote(url, { ext: '.png' }, (err, texture: cc.Texture2D) => {
if (texture) {
this.node.getChildByName("pic").active = true;
var sprite = this.node.getChildByName("pic").getComponent(cc.Sprite);
sprite.spriteFrame = new cc.SpriteFrame(texture);
// console.log(this.data.rank,"设置头像成功",err);
}
else {
// console.log("设置头像失败",url);
// console.log(err, texture)
}
})
}
}

View File

@ -0,0 +1,594 @@
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import CareerItem from "./CareerItem"
const { ccclass, property } = cc._decorator;
/**列表排列方式 */
export enum ListType {
/**水平排列 */
Horizontal = 1,
/**垂直排列 */
Vertical = 2,
/**网格排列 */
Grid = 3
}
/**网格布局中的方向 */
export enum StartAxisType {
/**水平排列 */
Horizontal = 1,
/**垂直排列 */
Vertical = 2,
}
/**
*
* cocos_example的listView改动而来
* @author chenkai 2020.7.8
* @example
* 1.cocos的ScrollView组件ListList属性即可
*
*/
@ccclass
export default class CareerList extends cc.Component {
//==================== 属性面板 =========================
/**列表选项 */
@property({ type: cc.Node, tooltip: "列表项" })
public itemRender: cc.Node = null;
/**排列方式 */
@property({ type: cc.Enum(ListType), tooltip: "排列方式" })
public type: ListType = ListType.Vertical;
/**网格布局中的方向 */
@property({ type: cc.Enum(StartAxisType), tooltip: "网格布局中的方向", visible() { return this.type == ListType.Grid } })
public startAxis: StartAxisType = StartAxisType.Horizontal;
/**列表项之间X间隔 */
@property({ type: cc.Integer, tooltip: "列表项X间隔", visible() { return (this.type == ListType.Horizontal || this.type == ListType.Grid) } })
public spaceX: number = 0;
/**列表项之间Y间隔 */
@property({ type: cc.Integer, tooltip: "列表项Y间隔", visible() { return this.type == ListType.Vertical || this.type == ListType.Grid } })
public spaceY: number = 0;
/**上间距 */
@property({ type: cc.Integer, tooltip: "上间距", visible() { return (this.type == ListType.Vertical || this.type == ListType.Grid) } })
public padding_top: number = 0;
/**下间距 */
@property({ type: cc.Integer, tooltip: "下间距", visible() { return (this.type == ListType.Vertical || this.type == ListType.Grid) } })
public padding_buttom: number = 0;
/**左间距 */
@property({ type: cc.Integer, tooltip: "左间距", visible() { return (this.type == ListType.Horizontal || this.type == ListType.Grid || this.type == ListType.Vertical) } })
public padding_left: number = 0;
@property(cc.Integer)
public _padding: number = 0;
/**右间距 */
@property({ type: cc.Integer, tooltip: "右间距", visible() { return (this.type == ListType.Horizontal || this.type == ListType.Grid) } })
public padding_right: number = 0;
//====================== 滚动容器 ===============================
/**列表滚动容器 */
public scrollView: cc.ScrollView = null;
/**scrollView的内容容器 */
private content: cc.Node = null;
//======================== 列表项 ===========================
/**列表项数据 */
private itemDataList: Array<any> = [];
/**应创建的实例数量 */
private spawnCount: number = 0;
/**存放列表项实例的数组 */
private itemList: Array<cc.Node> = [];
/**item的高度 */
private itemHeight: number = 0;
/**item的宽度 */
private itemWidth: number = 0;
/**存放不再使用中的列表项 */
private itemPool: Array<cc.Node> = [];
//======================= 计算参数 ==========================
/**距离scrollView中心点的距离超过这个距离的item会被重置一般设置为 scrollVIew.height/2 + item.heigt/2 + space因为这个距离item正好超出scrollView显示范围 */
private halfScrollView: number = 0;
/**上一次content的X值用于和现在content的X值比较得出是向左还是向右滚动 */
private lastContentPosX: number = 0;
/**上一次content的Y值用于和现在content的Y值比较得出是向上还是向下滚动 */
private lastContentPosY: number = 0;
/**网格行数 */
private gridRow: number = 0;
/**网格列数 */
private gridCol: number = 0;
/**刷新时间单位s */
private updateTimer: number = 0;
/**刷新间隔单位s */
private updateInterval: number = 0.1;
/**是否滚动容器 */
private bScrolling: boolean = false;
/**刷新的函数 */
private updateFun: Function = function () { };
onLoad() {
this.itemHeight = this.itemRender.height;
this.itemWidth = this.itemRender.width;
this.scrollView = this.node.getComponent(cc.ScrollView);
this.content = this.scrollView.content;
this.content.anchorX = 0;
this.content.anchorY = 1;
this.content.removeAllChildren();
this.scrollView.node.on("scrolling", this.onScrolling, this);
}
/**
* (使)
* @param itemDataList item数据列表
*/
public setData(itemDataList: Array<any>) {
// 检查 itemDataList 是否为有效数组,如果不是则初始化为空数组
this.itemDataList = itemDataList.slice();
this.updateContent();
}
/**计算列表的各项参数 */
private countListParam() {
let dataLen = this.itemDataList.length;
if (this.type == ListType.Vertical) {
this.scrollView.horizontal = false;
this.scrollView.vertical = true;
this.content.width = this.content.parent.width;
this.content.height = dataLen * this.itemHeight + (dataLen - 1) * this.spaceY + this.padding_top + this.padding_buttom;
this.spawnCount = Math.round(this.scrollView.node.height / (this.itemHeight + this.spaceY)) + 2; //计算创建的item实例数量比当前scrollView容器能放下的item数量再加上2个
this.halfScrollView = this.scrollView.node.height / 2 + this.itemHeight / 2 + this.spaceY; //计算bufferZoneitem的显示范围
this.updateFun = this.updateV;
} else if (this.type == ListType.Horizontal) {
this.scrollView.horizontal = true;
this.scrollView.vertical = false;
this.content.width = dataLen * this.itemWidth + (dataLen - 1) * this.spaceX + this.padding_left + this.padding_right;
this.content.height = this.content.parent.height;
this.spawnCount = Math.round(this.scrollView.node.width / (this.itemWidth + this.spaceX)) + 2;
this.halfScrollView = this.scrollView.node.width / 2 + this.itemWidth / 2 + this.spaceX;
this.updateFun = this.udpateH;
} else if (this.type == ListType.Grid) {
if (this.startAxis == StartAxisType.Vertical) {
this.scrollView.horizontal = false;
this.scrollView.vertical = true;
this.content.width = this.content.parent.width;
//如果left和right间隔过大导致放不下一个item则left和right都设置为0相当于不生效
if (this.padding_left + this.padding_right + this.itemWidth + this.spaceX > this.content.width) {
this.padding_left = 0;
this.padding_right = 0;
console.error("padding_left或padding_right过大");
}
this.gridCol = Math.floor((this.content.width - this.padding_left - this.padding_right) / (this.itemWidth + this.spaceX));
this.gridRow = Math.ceil(dataLen / this.gridCol);
this.content.height = this.gridRow * this.itemHeight + (this.gridRow - 1) * this.spaceY + this.padding_top + this.padding_buttom;
this.spawnCount = Math.round(this.scrollView.node.height / (this.itemHeight + this.spaceY)) * this.gridCol + this.gridCol * 2;
this.halfScrollView = this.scrollView.node.height / 2 + this.itemHeight / 2 + this.spaceY;
this.updateFun = this.updateGrid_V;
} else if (this.startAxis == StartAxisType.Horizontal) {
this.scrollView.horizontal = true;
this.scrollView.vertical = false;
//计算高间隔
this.content.height = this.content.parent.height;
//如果left和right间隔过大导致放不下一个item则left和right都设置为0相当于不生效
if (this.padding_top + this.padding_buttom + this.itemHeight + this.spaceY > this.content.height) {
this.padding_top = 0;
this.padding_buttom = 0;
console.error("padding_top或padding_buttom过大");
}
this.gridRow = Math.floor((this.content.height - this.padding_top - this.padding_buttom) / (this.itemHeight + this.spaceY));
this.gridCol = Math.ceil(dataLen / this.gridRow);
this.content.width = this.gridCol * this.itemWidth + (this.gridCol - 1) * this.spaceX + this.padding_left + this.padding_right;
this.spawnCount = Math.round(this.scrollView.node.width / (this.itemWidth + this.spaceX)) * this.gridRow + this.gridRow * 2;
this.halfScrollView = this.scrollView.node.width / 2 + this.itemWidth / 2 + this.spaceX;
this.updateFun = this.updateGrid_H;
}
}
}
/**
*
* @param startIndex 0
* @param offset scrollView偏移量
*/
private createList(startIndex: number, offset: cc.Vec2) {
//当需要显示的数据长度 > 虚拟列表长度, 删除最末尾几个数据时列表需要重置位置到scrollView最底端
if (this.itemDataList.length > this.spawnCount && (startIndex + this.spawnCount - 1) >= this.itemDataList.length) {
startIndex = this.itemDataList.length - this.spawnCount;
offset = this.scrollView.getMaxScrollOffset();
//当需要显示的数据长度 <= 虚拟列表长度, 隐藏多余的虚拟列表项
} else if (this.itemDataList.length <= this.spawnCount) {
startIndex = 0;
}
for (let i = 0; i < this.spawnCount; i++) {
let item: cc.Node;
//需要显示的数据索引在数据范围内则item实例显示出来
if (i + startIndex < this.itemDataList.length) {
if (this.itemList[i] == null) {
item = this.getItem();
this.itemList.push(item);
item.parent = this.content;
} else {
item = this.itemList[i];
}
//需要显示的数据索引超过了数据范围则item实例隐藏起来
} else {
//item实例数量 > 需要显示的数据量
if (this.itemList.length > (this.itemDataList.length - startIndex)) {
item = this.itemList.pop();
item.removeFromParent();
this.itemPool.push(item);
}
continue;
}
let itemRender: CareerItem = item.getComponent(CareerItem);
itemRender.itemIndex = i + startIndex;
itemRender.data = this.itemDataList[i + startIndex];
itemRender.dataChanged();
if (this.type == ListType.Vertical) {
// item左边对齐padding_left
item.setPosition(this.padding_left + item.width / 2, -item.height * (0.5 + i + startIndex) - this.spaceY * (i + startIndex) - this.padding_top);
} else if (this.type == ListType.Horizontal) {
item.setPosition(item.width * (0.5 + i + startIndex) + this.spaceX * (i + startIndex) + this.padding_left, -this.content.height / 2);
} else if (this.type == ListType.Grid) {
if (this.startAxis == StartAxisType.Vertical) {
var row = Math.floor((i + startIndex) / this.gridCol);
var col = (i + startIndex) % this.gridCol;
item.setPosition(item.width * (0.5 + col) + this.spaceX * col + this.padding_left, -item.height * (0.5 + row) - this.spaceY * row - this.padding_top);
item.opacity = 255;
} else if (this.startAxis == StartAxisType.Horizontal) {
var row = (i + startIndex) % this.gridRow;
var col = Math.floor((i + startIndex) / this.gridRow);
item.setPosition(item.width * (0.5 + col) + this.spaceX * col + this.padding_left, -item.height * (0.5 + row) - this.spaceY * row - this.padding_top);
item.opacity = 255;
}
}
}
this.scrollView.scrollToOffset(offset);
}
/**获取一个列表项 */
private getItem() {
if (this.itemPool.length == 0) {
return cc.instantiate(this.itemRender);
} else {
return this.itemPool.pop();
}
}
update(dt) {
if (this.bScrolling == false) {
return;
}
this.updateTimer += dt;
if (this.updateTimer < this.updateInterval) {
return;
}
this.updateTimer = 0;
this.bScrolling = false;
this.updateFun();
}
onScrolling() {
this.bScrolling = true;
}
/**垂直排列 */
private updateV() {
let items = this.itemList;
let item;
let bufferZone = this.halfScrollView;
let isUp = this.scrollView.content.y > this.lastContentPosY;
let offset = (this.itemHeight + this.spaceY) * items.length;
for (let i = 0; i < items.length; i++) {
item = items[i];
let viewPos = this.getPositionInView(item);
if (isUp) {
//item上滑时超出了scrollView上边界将item移动到下方复用item移动到下方的位置必须不超过content的下边界
if (viewPos.y > bufferZone && item.y - offset - this.padding_buttom > -this.content.height) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex + items.length;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.y = item.y - offset;
}
} else {
//item下滑时超出了scrollView下边界将item移动到上方复用item移动到上方的位置必须不超过content的上边界
if (viewPos.y < -bufferZone && item.y + offset + this.padding_top < 0) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex - items.length;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.y = item.y + offset;
}
}
}
this.lastContentPosY = this.scrollView.content.y;
}
/**水平排列 */
private udpateH() {
let items = this.itemList;
let item;
let bufferZone = this.halfScrollView;
let isRight = this.scrollView.content.x > this.lastContentPosX;
let offset = (this.itemWidth + this.spaceX) * items.length;
for (let i = 0; i < items.length; i++) {
item = items[i];
let viewPos = this.getPositionInView(item);
if (isRight) {
//item右滑时超出了scrollView右边界将item移动到左方复用item移动到左方的位置必须不超过content的左边界
if (viewPos.x > bufferZone && item.x - offset - this.padding_left > 0) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex - items.length;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.x = item.x - offset;
}
} else {
//item左滑时超出了scrollView左边界将item移动到右方复用item移动到右方的位置必须不超过content的右边界
if (viewPos.x < -bufferZone && item.x + offset + this.padding_right < this.content.width) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex + items.length;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.x = item.x + offset;
}
}
}
this.lastContentPosX = this.scrollView.content.x;
}
/**网格垂直排列 */
private updateGrid_V() {
let items = this.itemList;
let item: cc.Node;
let bufferZone = this.halfScrollView;
let isUp = this.scrollView.content.y > this.lastContentPosY;
let offset = (this.itemHeight + this.spaceY) * (this.spawnCount / this.gridCol);
for (let i = 0; i < items.length; i++) {
item = items[i];
let viewPos = this.getPositionInView(item);
if (isUp) {
//item上滑时超出了scrollView上边界将item移动到下方复用item移动到下方的位置必须不超过content的下边界
if (viewPos.y > bufferZone && item.y - offset - this.padding_buttom > -this.content.height) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex + (this.spawnCount / this.gridCol) * this.gridCol;
if (this.itemDataList[itemIndex] != null) {
item.y = item.y - offset;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.opacity = 255;
} else {
item.y = item.y - offset;
itemRender.itemIndex = itemIndex;
item.opacity = 0;
}
}
} else {//item下滑时超出了scrollView下边界将item移动到上方复用item移动到上方的位置必须不超过content的上边界
if (viewPos.y < -bufferZone && item.y + offset + this.padding_top < 0) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex - (this.spawnCount / this.gridCol) * this.gridCol;
if (this.itemDataList[itemIndex] != null) {
item.y = item.y + offset;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.opacity = 255;
} else {
item.y = item.y + offset;
itemRender.itemIndex = itemIndex;
item.opacity = 0;
}
}
}
}
this.lastContentPosY = this.scrollView.content.y;
}
/**网格水平排列 */
private updateGrid_H() {
let items = this.itemList;
let item;
let bufferZone = this.halfScrollView;
let isRight = this.scrollView.content.x > this.lastContentPosX;
let offset = (this.itemWidth + this.spaceX) * (this.spawnCount / this.gridRow);
for (let i = 0; i < items.length; i++) {
item = items[i];
let viewPos = this.getPositionInView(item);
if (isRight) {
//item右滑时超出了scrollView右边界将item移动到左方复用item移动到左方的位置必须不超过content的左边界
if (viewPos.x > bufferZone && item.x - offset - this.padding_left > 0) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex - (this.spawnCount / this.gridRow) * this.gridRow;
if (this.itemDataList[itemIndex] != null) {
item.x = item.x - offset;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.opacity = 255;
} else {
item.x = item.x - offset;
itemRender.itemIndex = itemIndex;
item.opacity = 0;
}
}
} else {
//item左滑时超出了scrollView左边界将item移动到右方复用item移动到右方的位置必须不超过content的右边界
if (viewPos.x < -bufferZone && item.x + offset + this.padding_right < this.content.width) {
let itemRender: CareerItem = item.getComponent(CareerItem);
let itemIndex = itemRender.itemIndex + (this.spawnCount / this.gridRow) * this.gridRow;
if (this.itemDataList[itemIndex] != null) {
item.x = item.x + offset;
itemRender.itemIndex = itemIndex;
itemRender.data = this.itemDataList[itemIndex];
itemRender.dataChanged();
item.opacity = 255;
} else {
item.x = item.x + offset;
itemRender.itemIndex = itemIndex;
item.opacity = 0;
}
}
}
}
this.lastContentPosX = this.scrollView.content.x;
}
/**获取item在scrollView的局部坐标 */
private getPositionInView(item) {
let worldPos = item.parent.convertToWorldSpaceAR(item.position);
let viewPos = this.scrollView.node.convertToNodeSpaceAR(worldPos);
return viewPos;
}
/**获取列表数据 */
public getListData() {
return this.itemDataList;
}
/**
*
* @param data
*/
public addItem(data: any) {
this.itemDataList.push(data);
this.updateContent();
}
/**
*
* @param index 01
* @param data
*/
public addItemAt(index: number, data: any) {
if (this.itemDataList[index] != null || this.itemDataList.length == index) {
this.itemDataList.splice(index, 1, data);
this.updateContent();
}
}
/**
*
* @param index ,01
*/
public deleteItem(index: number) {
if (this.itemDataList[index] != null) {
this.itemDataList.splice(index, 1);
this.updateContent();
}
}
/**
*
* @param index ,01
* @param data
*/
public changeItem(index: number, data: any) {
if (this.itemDataList[index] != null) {
this.itemDataList[index] = data;
this.updateContent();
}
}
/**获取第一个Item的位置 */
private updateContent() {
//显示列表实例为0个
if (this.itemList.length == 0) {
this.countListParam();
this.createList(0, new cc.Vec2(0, 0));
//显示列表的实例不为0个则需要重新排列item实例数组
} else {
if (this.type == ListType.Vertical) {
this.itemList.sort((a: any, b: any) => {
return b.y - a.y;
});
} else if (this.type == ListType.Horizontal) {
this.itemList.sort((a: any, b: any) => {
return a.x - b.x;
});
} else if (this.type == ListType.Grid) {
if (this.startAxis == StartAxisType.Vertical) {
this.itemList.sort((a: any, b: any) => {
return a.x - b.x;
});
this.itemList.sort((a: any, b: any) => {
return b.y - a.y;
});
} else if (this.startAxis == StartAxisType.Horizontal) {
this.itemList.sort((a: any, b: any) => {
return b.y - a.y;
});
this.itemList.sort((a: any, b: any) => {
return a.x - b.x;
});
}
}
this.countListParam();
//获取第一个item实例需要显示的数据索引
var startIndex = this.itemList[0].getComponent(CareerItem).itemIndex;
if (this.type == ListType.Grid && this.startAxis == StartAxisType.Vertical) {
startIndex += (startIndex + this.spawnCount) % this.gridCol;
} else if (this.type == ListType.Grid && this.startAxis == StartAxisType.Horizontal) {
startIndex += (startIndex + this.spawnCount) % this.gridRow;
}
//getScrollOffset()和scrollToOffset()的x值是相反的
var offset: cc.Vec2 = this.scrollView.getScrollOffset();
offset.x = - offset.x;
this.createList(startIndex, offset);
}
}
/**销毁 */
public onDestroy() {
//清理列表项
let len = this.itemList.length;
for (let i = 0; i < len; i++) {
if (cc.isValid(this.itemList[i], true)) {
this.itemList[i].destroy();
}
}
this.itemList.length = 0;
//清理对象池
len = this.itemPool.length;
for (let i = 0; i < len; i++) {
if (cc.isValid(this.itemPool[i], true)) {
this.itemPool[i].destroy();
}
}
this.itemPool.length = 0;
//清理列表数据
this.itemDataList.length = 0;
}
}

View File

@ -0,0 +1,96 @@
import NumberToImage from "../../Script/NumberToImage";
import List from "./CareerList";
const { ccclass, property } = cc._decorator;
//排行榜
@ccclass
export default class CareerManager extends cc.Component {
@property(cc.Sprite) //用户头像换图
phone: cc.Sprite = null;
private rankList: List; //排行榜
listData: any; //总列表信息
selfData: any; //自己信息
rankNumber: number; //用户自己排名 有可能不在排行榜内99+
rankTotal: number; //获取排行榜用户数量 现在为100
onLoad() {
// this.init();
}
//初始化数据
init(data) {
this.rankList = cc.find("ScrollView", this.node).getComponent(List);
this.listData = data;
this.selfData = null;
this.rankNumber = 100;
this.rankTotal = 100;
this.rankList.setData(data);
this.getRank();
}
start() {
}
//调用获取排行榜接口
public getRank() {
let dataFile = {
length: 100
}
cc.fx.GameTool.getRank(dataFile, data => this.getRankData(data));
}
//实际设置排行数据
public getRankData(data) {
if (data) {
// console.log(data);
cc.fx.GameTool.getRankData(data, this, 6);
this.setPic(this.selfData.pic);
}
}
//返回按钮
public backClick() {
cc.director.loadScene("LoadScene");
}
//最上方用户动画
//设置头像 处理的逻辑比较多,不用公共类的了
public setPic(pic) {
this.phone.node.parent.getChildByName("icon").active = false;
this.phone.node.active = false;
fetch(pic)
.then(response => {
return response.headers.get('Content-Length');
})
.then(errNo => {
if (errNo == "5093") {
this.phone.node.parent.getChildByName("icon").active = true;
}
})
.catch(error => {
// console.error('Error fetching X-Info:', error);
});
var self = this;
cc.assetManager.loadRemote(pic, { ext: '.png' }, (err, texture: cc.Texture2D) => {
if (texture) {
self.phone.node.active = true;
self.phone.spriteFrame = new cc.SpriteFrame(texture);
}
else {
}
})
}
public setData(data) {
this.selfData = data;
this.rankList.setData(this.listData);
if (data.length > 0) {
this.rankNumber = data[0].rank;
this.rankTotal = data.length;
}
}
}

View File

@ -0,0 +1,90 @@
import NumberToImage from "../../Script/NumberToImage";
const { ccclass, property } = cc._decorator;
@ccclass
export default class Item extends cc.Component {
/**数据 */
public data: any = null;
/**索引 0表示第一项*/
public itemIndex: number = 0;
@property(cc.SpriteFrame)
defaultsprite: cc.SpriteFrame = null;
@property(cc.SpriteAtlas)
ui: cc.SpriteAtlas = null;
/**数据改变时调用 */
public dataChanged() {
let useravatarIcon = this.data.useravatarIcon;
useravatarIcon = "kuang_" + (parseInt(useravatarIcon) + 1);
this.node.getChildByName("icon").getComponent(cc.Sprite).spriteFrame =
this.ui.getSpriteFrame(useravatarIcon);
console.log("用户头像框:", this.data.useravatarIcon, useravatarIcon);
this.data.username = cc.fx.GameTool.subName(this.data.username, 7);
let name = this.data.username;
if (name == "user") name = "匿名玩家";
// this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
this.node.getChildByName("nameLab").getComponent(cc.Label).string = name + "";
// this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.levelAmount;
NumberToImage.numberToImageNodes3((this.data.rank), 43, 15, "rank_", this.node.getChildByName("rankLab"), true);
NumberToImage.numberToImageNodes3(this.data.levelAmount, 43, 15, "level_", this.node.getChildByName("totalLab"), true);
// this.node.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
this.node.getChildByName("rank").getChildByName("one").active = false;
this.node.getChildByName("rank").getChildByName("two").active = false;
this.node.getChildByName("rank").getChildByName("three").active = false;
if (this.data.rank == 1) {
this.node.getChildByName("rank").getChildByName("one").active = true;
this.node.getChildByName("rankLab").active = false;
}
else if (this.data.rank == 2) {
this.node.getChildByName("rank").getChildByName("two").active = true;
this.node.getChildByName("rankLab").active = false;
}
else if (this.data.rank == 3) {
this.node.getChildByName("rank").getChildByName("three").active = true;
this.node.getChildByName("rankLab").active = false;
} else {
this.node.getChildByName("rankLab").active = true;
}
if (this.data.useravatar == "" || this.data.useravatar == null || this.data.useravatar == undefined
) {
this.node.getChildByName("pic").getComponent(cc.Sprite).spriteFrame = this.defaultsprite;
}
else if (this.data.useravatar == "0" || this.data.useravatar == "1" || this.data.useravatar == "2"
|| this.data.useravatar == "3") {
let useravatar = this.data.useravatar;
let useravatarTemp = "icon_" + useravatar;
console.log("用户头像:", useravatarTemp);
this.node.getChildByName("pic").getComponent(cc.Sprite).spriteFrame = this.ui.getSpriteFrame(useravatarTemp);
}
else this.setPic();
}
public setPic() {
// console.log("设置头像:", this.data.useravatar);
// this.node.getChildByName("pic").getChildByName("icon").active = false;
this.node.getChildByName("pic").active = false;
var self = this;
let url = this.data.useravatar;
cc.assetManager.loadRemote(url, { ext: '.png' }, (err, texture: cc.Texture2D) => {
if (texture) {
this.node.getChildByName("pic").active = true;
var sprite = this.node.getChildByName("pic").getComponent(cc.Sprite);
sprite.spriteFrame = new cc.SpriteFrame(texture);
// console.log(this.data.rank,"设置头像成功",err);
}
else {
// console.log("设置头像失败",url);
// console.log(err, texture)
}
})
}
}

View File

@ -2,12 +2,12 @@
"LEVEL_INFO": [ "LEVEL_INFO": [
{ {
"risefall": [], "risefall": [],
"id": "5", "id": "631",
"map": [ "map": [
8, 8,
10 8
], ],
"time": 200, "time": 110,
"gap": [] "gap": []
} }
], ],
@ -15,91 +15,321 @@
[ [
{ {
"block": 1, "block": 1,
"color": 1, "color": 6,
"type": 4,
"position": {
"x": -120,
"y": -240,
"z": 0
},
"freezeTime": 6,
"id": 210
},
{
"block": 23,
"color": 6,
"type": 4,
"position": {
"x": -120,
"y": -120,
"z": 0
},
"freezeTime": 6,
"id": 220
},
{
"block": 23,
"color": 6,
"type": 4,
"position": {
"x": -240,
"y": -120,
"z": 0
},
"freezeTime": 6,
"id": 230
},
{
"block": 23,
"color": 6,
"type": 4,
"position": {
"x": 240,
"y": 0,
"z": 0
},
"freezeTime": 6,
"id": 240
},
{
"block": 23,
"color": 6,
"type": 4,
"position": {
"x": 360,
"y": 0,
"z": 0
},
"freezeTime": 6,
"id": 250
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": 120,
"y": 240,
"z": 0
},
"id": 260
},
{
"block": 1,
"color": 2,
"type": 0, "type": 0,
"position": { "position": {
"x": -120, "x": -120,
"y": 240, "y": 240,
"z": 0 "z": 0
}, },
"id": 210 "id": 270
},
{
"block": 12,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": -480,
"z": 0
},
"id": 220
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": -240,
"y": -480,
"z": 0
},
"id": 230
}, },
{ {
"block": 1, "block": 1,
"color": 4, "color": 8,
"type": 9, "type": 0,
"position": { "position": {
"x": 0, "x": -120,
"y": -360,
"z": 0
},
"id": 280
},
{
"block": 1,
"color": 8,
"type": 0,
"position": {
"x": 360,
"y": 240,
"z": 0
},
"id": 290
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 240,
"y": 120,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 120,
"y": -360,
"z": 0
},
"id": 310
},
{
"block": 22,
"color": 2,
"type": 0,
"position": {
"x": 360,
"y": -240, "y": -240,
"z": 0 "z": 0
}, },
"adhesiveTime": 2, "id": 320
"lockTime": 3, },
"id": 240 {
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"id": 330
},
{
"block": 2,
"color": 9,
"type": 0,
"position": {
"x": 240,
"y": -360,
"z": 0
},
"id": 340
}, },
{ {
"block": 2, "block": 2,
"color": 10, "color": 10,
"type": 0,
"position": {
"x": 120,
"y": -240,
"z": 0
},
"id": 350
},
{
"block": 1,
"color": 10,
"type": 9, "type": 9,
"position": { "position": {
"x": 0, "x": 0,
"y": -120, "y": 0,
"z": 0
},
"adhesiveTime": 2,
"id": 360
},
{
"block": 1,
"color": 10,
"type": 9,
"position": {
"x": -120,
"y": 120,
"z": 0 "z": 0
}, },
"adhesiveTime": 1, "adhesiveTime": 1,
"lockTime": 3, "id": 370
"id": 250
}, },
{ {
"block": 21, "block": 2,
"color": 10, "color": 5,
"type": 0, "type": 8,
"position": { "position": {
"x": 240, "x": 0,
"y": 240, "y": -360,
"z": 0 "z": 0
}, },
"id": 260 "id": 380
},
{
"block": 0,
"color": 2,
"type": 8,
"position": {
"x": 120,
"y": 0,
"z": 0
},
"id": 390
},
{
"block": 0,
"color": 6,
"type": 6,
"position": {
"x": -240,
"y": 0,
"z": 0
},
"boomTime": 40,
"id": 400
} }
] ]
], ],
"WALL_INFO": [ "WALL_INFO": [
[ [
{ {
"id": 6, "id": 632,
"num": 11, "num": 0,
"color": 1, "color": 10,
"special": 0, "special": 0,
"length": 2 "length": 2
}, },
{ {
"id": 7, "id": 633,
"num": 13, "num": 1,
"color": 1, "color": 10,
"special": 0, "special": 0,
"length": 0 "length": 0
},
{
"id": 634,
"num": 3,
"color": 8,
"special": 0,
"length": 1
},
{
"id": 635,
"num": 9,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 636,
"num": 11,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 637,
"num": 13,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 638,
"num": 15,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 639,
"num": 22,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 640,
"num": 23,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 641,
"num": 20,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 642,
"num": 10,
"color": 2,
"special": 3,
"length": 2,
"freeze": 4
},
{
"id": 643,
"num": 12,
"color": 2,
"special": 3,
"length": 0,
"freeze": 4
} }
] ]
] ]

View File

@ -0,0 +1,345 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "632",
"map": [
8,
9
],
"time": 150,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 4,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": 60,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 5,
"type": 0,
"position": {
"x": 360,
"y": 180,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 5,
"type": 0,
"position": {
"x": -240,
"y": 180,
"z": 0
},
"id": 230
},
{
"block": 1,
"color": 1,
"type": 0,
"position": {
"x": -120,
"y": 60,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 120,
"y": -60,
"z": 0
},
"id": 250
},
{
"block": 0,
"color": 2,
"type": 0,
"position": {
"x": 360,
"y": 300,
"z": 0
},
"id": 260
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": 360,
"y": -60,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 2,
"type": 4,
"position": {
"x": 360,
"y": -420,
"z": 0
},
"freezeTime": 6,
"id": 280
},
{
"block": 1,
"color": 3,
"type": 1,
"position": {
"x": -120,
"y": 300,
"z": 0
},
"stacking": 9,
"id": 290
},
{
"block": 1,
"color": 3,
"type": 1,
"position": {
"x": 120,
"y": 180,
"z": 0
},
"stacking": 7,
"id": 300
},
{
"block": 1,
"color": 6,
"type": 1,
"position": {
"x": 120,
"y": 300,
"z": 0
},
"stacking": 7,
"id": 310
},
{
"block": 0,
"color": 2,
"type": 1,
"position": {
"x": 0,
"y": -420,
"z": 0
},
"stacking": 7,
"id": 320
},
{
"block": 0,
"color": 4,
"type": 1,
"position": {
"x": -240,
"y": -420,
"z": 0
},
"stacking": 7,
"id": 330
},
{
"block": 18,
"color": 7,
"type": 1,
"position": {
"x": -120,
"y": -420,
"z": 0
},
"stacking": 5,
"id": 340
},
{
"block": 4,
"color": 7,
"type": 14,
"position": {
"x": 120,
"y": -420,
"z": 0
},
"id": 350
},
{
"block": 2,
"color": 4,
"type": 14,
"position": {
"x": 240,
"y": -300,
"z": 0
},
"id": 360
},
{
"block": 1,
"color": 9,
"type": 14,
"position": {
"x": -120,
"y": -60,
"z": 0
},
"id": 370
},
{
"block": 0,
"color": 4,
"type": 14,
"position": {
"x": -240,
"y": -180,
"z": 0
},
"id": 380
}
]
],
"WALL_INFO": [
[
{
"id": 633,
"num": 2,
"color": 5,
"special": 0,
"length": 3
},
{
"id": 634,
"num": 3,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 635,
"num": 4,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 636,
"num": 10,
"color": 2,
"special": 0,
"length": 1
},
{
"id": 637,
"num": 12,
"color": 1,
"special": 6,
"length": 2,
"lockTime": 4
},
{
"id": 638,
"num": 14,
"color": 1,
"special": 6,
"length": 0,
"lockTime": 4
},
{
"id": 639,
"num": 16,
"color": 4,
"special": 3,
"length": 1,
"freeze": 16
},
{
"id": 640,
"num": 21,
"color": 7,
"special": 2,
"length": 3,
"lock": true
},
{
"id": 641,
"num": 22,
"color": 7,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 642,
"num": 23,
"color": 7,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 643,
"num": 15,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 644,
"num": 17,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 645,
"num": 11,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 646,
"num": 13,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 647,
"num": 7,
"color": 6,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 9,
"color": 6,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,415 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "633",
"map": [
10,
8
],
"time": 120,
"gap": [
{
"x": 1,
"y": 6,
"z": 0
},
{
"x": 1,
"y": 5,
"z": 0
},
{
"x": 8,
"y": 3,
"z": 0
},
{
"x": 8,
"y": 2,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -120,
"y": 0,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -120,
"y": 120,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": 120,
"z": 0
},
"id": 230
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -120,
"y": -120,
"z": 0
},
"id": 240
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": -120,
"z": 0
},
"id": 250
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 240,
"y": 240,
"z": 0
},
"id": 260
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": 240,
"z": 0
},
"id": 270
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 240,
"y": 120,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 0,
"y": 120,
"z": 0
},
"id": 300
},
{
"block": 4,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": -120,
"z": 0
},
"id": 310
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": -120,
"y": -360,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": -240,
"y": 0,
"z": 0
},
"id": 330
},
{
"block": 13,
"color": 8,
"type": 0,
"position": {
"x": 240,
"y": -240,
"z": 0
},
"id": 340
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 120,
"y": 240,
"z": 0
},
"id": 350
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -360,
"y": -360,
"z": 0
},
"id": 360
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -360,
"y": -120,
"z": 0
},
"id": 370
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": -240,
"y": -240,
"z": 0
},
"id": 380
},
{
"block": 1,
"color": 2,
"type": 0,
"position": {
"x": 120,
"y": -360,
"z": 0
},
"id": 390
},
{
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": 480,
"y": -360,
"z": 0
},
"id": 400
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": 480,
"y": 120,
"z": 0
},
"id": 410
},
{
"block": 0,
"color": 10,
"type": 0,
"position": {
"x": 480,
"y": 0,
"z": 0
},
"id": 420
},
{
"block": 1,
"color": 10,
"type": 0,
"position": {
"x": 120,
"y": 0,
"z": 0
},
"id": 430
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": -240,
"y": 240,
"z": 0
},
"id": 440
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": -120,
"y": 240,
"z": 0
},
"id": 450
}
]
],
"WALL_INFO": [
[
{
"id": 634,
"num": 0,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 635,
"num": 1,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 636,
"num": 2,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 637,
"num": 3,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 638,
"num": 9,
"color": 10,
"special": 2,
"length": 2,
"lock": true
},
{
"id": 639,
"num": 11,
"color": 10,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 640,
"num": 15,
"color": 1,
"special": 0,
"length": 1
},
{
"id": 641,
"num": 27,
"color": 2,
"special": 2,
"length": 2,
"lock": true
},
{
"id": 642,
"num": 28,
"color": 2,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 643,
"num": 14,
"color": 6,
"special": 2,
"length": 2,
"lock": true
},
{
"id": 644,
"num": 16,
"color": 6,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 645,
"num": 10,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 646,
"num": 12,
"color": 5,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,407 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "634",
"map": [
8,
10
],
"time": 110,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 1,
"color": 3,
"type": 4,
"position": {
"x": 360,
"y": 120,
"z": 0
},
"freezeTime": 7,
"id": 210
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": 360,
"y": 0,
"z": 0
},
"floor": 1,
"floorTime": 10,
"id": 220
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 240,
"y": 0,
"z": 0
},
"floor": 1,
"floorTime": 10,
"id": 230
},
{
"block": 1,
"color": 4,
"type": 4,
"position": {
"x": 360,
"y": -120,
"z": 0
},
"freezeTime": 11,
"id": 240
},
{
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": -120,
"y": 120,
"z": 0
},
"id": 250
},
{
"block": 23,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": -480,
"z": 0
},
"id": 260
},
{
"block": 23,
"color": 4,
"type": 0,
"position": {
"x": -120,
"y": -480,
"z": 0
},
"id": 270
},
{
"block": 23,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": 360,
"z": 0
},
"id": 280
},
{
"block": 23,
"color": 4,
"type": 0,
"position": {
"x": -120,
"y": 360,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 8,
"type": 0,
"position": {
"x": -240,
"y": 240,
"z": 0
},
"id": 300
},
{
"block": 2,
"color": 8,
"type": 0,
"position": {
"x": 240,
"y": 240,
"z": 0
},
"id": 310
},
{
"block": 20,
"color": 9,
"type": 0,
"position": {
"x": 120,
"y": -480,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 9,
"type": 0,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"id": 330
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -240,
"y": -480,
"z": 0
},
"id": 340
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 120,
"y": -360,
"z": 0
},
"id": 350
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": -120,
"y": -240,
"z": 0
},
"id": 360
},
{
"block": 2,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": 0,
"z": 0
},
"id": 370
},
{
"block": 0,
"color": 3,
"type": 0,
"position": {
"x": 360,
"y": 240,
"z": 0
},
"id": 380
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": -480,
"z": 0
},
"id": 390
},
{
"block": 21,
"color": 6,
"type": 0,
"position": {
"x": -120,
"y": -120,
"z": 0
},
"id": 400
},
{
"block": 2,
"color": 7,
"type": 9,
"position": {
"x": 120,
"y": 240,
"z": 0
},
"adhesiveTime": 2,
"id": 410
},
{
"block": 2,
"color": 7,
"type": 9,
"position": {
"x": 0,
"y": 120,
"z": 0
},
"adhesiveTime": 1,
"id": 420
},
{
"block": 4,
"color": 1,
"type": 7,
"position": {
"x": 120,
"y": -120,
"z": 0
},
"id": 430
},
{
"block": 2,
"color": 5,
"type": 8,
"position": {
"x": -240,
"y": -240,
"z": 0
},
"id": 440
},
{
"block": 1,
"color": 7,
"type": 0,
"position": {
"x": 360,
"y": -240,
"z": 0
},
"id": 450
}
]
],
"WALL_INFO": [
[
{
"id": 635,
"num": 1,
"color": 3,
"special": 0,
"length": 1
},
{
"id": 636,
"num": 3,
"color": 1,
"special": 0,
"length": 3
},
{
"id": 637,
"num": 4,
"color": 1,
"special": 0,
"length": 0
},
{
"id": 638,
"num": 5,
"color": 1,
"special": 0,
"length": 0
},
{
"id": 639,
"num": 9,
"color": 5,
"special": 0,
"length": 1
},
{
"id": 640,
"num": 8,
"color": 8,
"special": 0,
"length": 1
},
{
"id": 641,
"num": 21,
"color": 4,
"special": 0,
"length": 1
},
{
"id": 642,
"num": 23,
"color": 7,
"special": 0,
"length": 3
},
{
"id": 643,
"num": 24,
"color": 7,
"special": 0,
"length": 0
},
{
"id": 644,
"num": 25,
"color": 7,
"special": 0,
"length": 0
},
{
"id": 645,
"num": 13,
"color": 9,
"special": 0,
"length": 2,
"colorArray": "81"
},
{
"id": 646,
"num": 15,
"color": 9,
"special": 0,
"length": 0,
"colorArray": "81"
},
{
"id": 647,
"num": 12,
"color": 6,
"special": 0,
"length": 2,
"colorArray": "59"
},
{
"id": 648,
"num": 14,
"color": 6,
"special": 0,
"length": 0,
"colorArray": "59"
}
]
]
}

View File

@ -0,0 +1,255 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "635",
"map": [
7,
9
],
"time": 85,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 180,
"y": -180,
"z": 0
},
"id": 210
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": -60,
"y": -180,
"z": 0
},
"id": 220
},
{
"block": 5,
"color": 8,
"type": 0,
"position": {
"x": -60,
"y": 180,
"z": 0
},
"id": 230
},
{
"block": 20,
"color": 8,
"type": 0,
"position": {
"x": -60,
"y": -300,
"z": 0
},
"id": 240
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 300,
"y": -420,
"z": 0
},
"id": 250
},
{
"block": 5,
"color": 3,
"type": 0,
"position": {
"x": 300,
"y": 180,
"z": 0
},
"id": 260
},
{
"block": 19,
"color": 3,
"type": 0,
"position": {
"x": 300,
"y": -300,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 7,
"type": 0,
"position": {
"x": 60,
"y": -300,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": 300,
"y": 60,
"z": 0
},
"id": 290
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": -180,
"y": 60,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": 60,
"y": 300,
"z": 0
},
"id": 310
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": 60,
"y": 180,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": -180,
"y": -420,
"z": 0
},
"id": 330
},
{
"block": 3,
"color": 10,
"type": 8,
"position": {
"x": 180,
"y": 60,
"z": 0
},
"id": 340
}
]
],
"WALL_INFO": [
[
{
"id": 636,
"num": 3,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 637,
"num": 4,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 638,
"num": 8,
"color": 7,
"special": 0,
"length": 1
},
{
"id": 639,
"num": 16,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 640,
"num": 20,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 641,
"num": 21,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 642,
"num": 15,
"color": 1,
"special": 2,
"length": 1,
"lock": true
},
{
"id": 643,
"num": 9,
"color": 10,
"special": 0,
"length": 3
},
{
"id": 644,
"num": 11,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 645,
"num": 13,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 646,
"num": 7,
"color": 5,
"special": 2,
"length": 1,
"lock": true
}
]
]
}

View File

@ -0,0 +1,363 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "636",
"map": [
10,
9
],
"time": 145,
"gap": [
{
"x": 4,
"y": 7,
"z": 0
},
{
"x": 5,
"y": 7,
"z": 0
},
{
"x": 1,
"y": 1,
"z": 0
},
{
"x": 2,
"y": 1,
"z": 0
},
{
"x": 7,
"y": 1,
"z": 0
},
{
"x": 8,
"y": 1,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": -180,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": -300,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": 360,
"y": -180,
"z": 0
},
"id": 230
},
{
"block": 23,
"color": 10,
"type": 0,
"position": {
"x": 360,
"y": -300,
"z": 0
},
"id": 240
},
{
"block": 10,
"color": 2,
"type": 0,
"position": {
"x": -360,
"y": -300,
"z": 0
},
"id": 250
},
{
"block": 1,
"color": 9,
"type": 0,
"position": {
"x": 360,
"y": 300,
"z": 0
},
"id": 260
},
{
"block": 6,
"color": 9,
"type": 0,
"position": {
"x": 480,
"y": -300,
"z": 0
},
"id": 270
},
{
"block": 21,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": 60,
"z": 0
},
"id": 280
},
{
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": 120,
"y": -420,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -120,
"y": -420,
"z": 0
},
"id": 300
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": -420,
"z": 0
},
"id": 310
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 240,
"y": 60,
"z": 0
},
"id": 320
},
{
"block": 22,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": 60,
"z": 0
},
"id": 330
},
{
"block": 1,
"color": 3,
"type": 0,
"position": {
"x": -120,
"y": 300,
"z": 0
},
"id": 340
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -120,
"y": 60,
"z": 0
},
"id": 350
},
{
"block": 1,
"color": 10,
"type": 8,
"position": {
"x": 120,
"y": 180,
"z": 0
},
"id": 360
},
{
"block": 0,
"color": 6,
"type": 9,
"position": {
"x": 120,
"y": 60,
"z": 0
},
"adhesiveTime": 2,
"id": 370
},
{
"block": 0,
"color": 4,
"type": 9,
"position": {
"x": 0,
"y": 60,
"z": 0
},
"adhesiveTime": 1,
"id": 380
},
{
"block": 2,
"color": 8,
"type": 9,
"position": {
"x": 120,
"y": -180,
"z": 0
},
"adhesiveTime": 2,
"id": 390
},
{
"block": 2,
"color": 1,
"type": 9,
"position": {
"x": 0,
"y": -180,
"z": 0
},
"adhesiveTime": 1,
"id": 400
}
]
],
"WALL_INFO": [
[
{
"id": 637,
"num": 2,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 638,
"num": 3,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 639,
"num": 7,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 640,
"num": 10,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 641,
"num": 12,
"color": 5,
"special": 0,
"length": 1,
"colorArray": "47"
},
{
"id": 642,
"num": 20,
"color": 6,
"special": 0,
"length": 1,
"colorArray": "50"
},
{
"id": 643,
"num": 23,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 644,
"num": 25,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 645,
"num": 28,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 646,
"num": 29,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 647,
"num": 13,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 16,
"color": 10,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,274 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "637",
"map": [
8,
7
],
"time": 120,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 1,
"color": 7,
"type": 0,
"position": {
"x": 360,
"y": 180,
"z": 0
},
"id": 210
},
{
"block": 1,
"color": 7,
"type": 0,
"position": {
"x": -120,
"y": 180,
"z": 0
},
"id": 220
},
{
"block": 2,
"color": 4,
"type": 14,
"position": {
"x": 0,
"y": 60,
"z": 0
},
"id": 230
},
{
"block": 2,
"color": 8,
"type": 14,
"position": {
"x": 120,
"y": 60,
"z": 0
},
"id": 240
},
{
"block": 0,
"color": 1,
"type": 14,
"position": {
"x": -120,
"y": -300,
"z": 0
},
"id": 250
},
{
"block": 0,
"color": 5,
"type": 14,
"position": {
"x": 240,
"y": -300,
"z": 0
},
"id": 260
},
{
"block": 1,
"color": 1,
"type": 9,
"position": {
"x": 120,
"y": -180,
"z": 0
},
"adhesiveTime": 2,
"id": 270
},
{
"block": 1,
"color": 5,
"type": 9,
"position": {
"x": 120,
"y": -300,
"z": 0
},
"adhesiveTime": 1,
"id": 280
},
{
"block": 0,
"color": 9,
"type": 9,
"position": {
"x": 120,
"y": -60,
"z": 0
},
"adhesiveTime": 2,
"id": 290
},
{
"block": 0,
"color": 3,
"type": 9,
"position": {
"x": 0,
"y": -60,
"z": 0
},
"adhesiveTime": 1,
"id": 300
},
{
"block": 16,
"color": 9,
"type": 1,
"position": {
"x": -240,
"y": -300,
"z": 0
},
"stacking": 3,
"id": 310
},
{
"block": 0,
"color": 8,
"type": 1,
"position": {
"x": -120,
"y": 60,
"z": 0
},
"stacking": 4,
"id": 320
},
{
"block": 0,
"color": 4,
"type": 1,
"position": {
"x": 240,
"y": 60,
"z": 0
},
"stacking": 1,
"id": 330
},
{
"block": 17,
"color": 3,
"type": 1,
"position": {
"x": 360,
"y": -300,
"z": 0
},
"stacking": 7,
"id": 340
}
]
],
"WALL_INFO": [
[
{
"id": 638,
"num": 0,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 639,
"num": 1,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 640,
"num": 4,
"color": 1,
"special": 0,
"length": 1
},
{
"id": 641,
"num": 8,
"color": 3,
"special": 3,
"length": 2,
"freeze": 8
},
{
"id": 642,
"num": 10,
"color": 3,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 643,
"num": 12,
"color": 9,
"special": 3,
"length": 2,
"freeze": 5
},
{
"id": 644,
"num": 14,
"color": 9,
"special": 3,
"length": 0,
"freeze": 5
},
{
"id": 645,
"num": 21,
"color": 5,
"special": 0,
"length": 1
},
{
"id": 646,
"num": 17,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 647,
"num": 18,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 648,
"num": 9,
"color": 7,
"special": 6,
"length": 2,
"lockTime": 4
},
{
"id": 649,
"num": 11,
"color": 7,
"special": 6,
"length": 0,
"lockTime": 4
}
]
]
}

View File

@ -0,0 +1,415 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "638",
"map": [
8,
10
],
"time": 110,
"gap": [
{
"x": 1,
"y": 7,
"z": 0
},
{
"x": 1,
"y": 6,
"z": 0
},
{
"x": 6,
"y": 8,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 9,
"type": 0,
"position": {
"x": -120,
"y": 0,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 9,
"type": 0,
"position": {
"x": -120,
"y": 120,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 9,
"type": 0,
"position": {
"x": 0,
"y": 0,
"z": 0
},
"id": 230
},
{
"block": 23,
"color": 9,
"type": 0,
"position": {
"x": 0,
"y": -120,
"z": 0
},
"id": 240
},
{
"block": 23,
"color": 9,
"type": 0,
"position": {
"x": 0,
"y": -240,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 8,
"type": 0,
"position": {
"x": -240,
"y": -120,
"z": 0
},
"id": 260
},
{
"block": 22,
"color": 6,
"type": 0,
"position": {
"x": 240,
"y": 0,
"z": 0
},
"id": 270
},
{
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": 240,
"y": 360,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 120,
"y": -120,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 9,
"type": 0,
"position": {
"x": 120,
"y": -480,
"z": 0
},
"id": 300
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": -240,
"y": -360,
"z": 0
},
"id": 310
},
{
"block": 22,
"color": 6,
"type": 9,
"position": {
"x": 360,
"y": -360,
"z": 0
},
"adhesiveTime": 2,
"id": 320
},
{
"block": 1,
"color": 6,
"type": 9,
"position": {
"x": 360,
"y": -480,
"z": 0
},
"adhesiveTime": 1,
"id": 330
},
{
"block": 0,
"color": 6,
"type": 9,
"position": {
"x": -120,
"y": -240,
"z": 0
},
"adhesiveTime": 2,
"id": 340
},
{
"block": 0,
"color": 5,
"type": 9,
"position": {
"x": -120,
"y": -120,
"z": 0
},
"adhesiveTime": 1,
"id": 350
},
{
"block": 1,
"color": 6,
"type": 5,
"position": {
"x": -120,
"y": 360,
"z": 0
},
"id": 360
},
{
"block": 0,
"color": 6,
"type": 5,
"position": {
"x": 0,
"y": 120,
"z": 0
},
"id": 370
},
{
"block": 1,
"color": 5,
"type": 5,
"position": {
"x": 0,
"y": -360,
"z": 0
},
"id": 380
},
{
"block": 1,
"color": 5,
"type": 5,
"position": {
"x": 360,
"y": -120,
"z": 0
},
"id": 390
},
{
"block": 1,
"color": 5,
"type": 5,
"position": {
"x": 360,
"y": 240,
"z": 0
},
"floor": 1,
"floorTime": 10,
"id": 400
},
{
"block": 2,
"color": 8,
"type": 14,
"position": {
"x": 0,
"y": 240,
"z": 0
},
"id": 410
},
{
"block": 0,
"color": 2,
"type": 14,
"position": {
"x": -120,
"y": 240,
"z": 0
},
"id": 420
},
{
"block": 2,
"color": 7,
"type": 14,
"position": {
"x": 120,
"y": -360,
"z": 0
},
"id": 430
},
{
"block": 0,
"color": 8,
"type": 14,
"position": {
"x": -120,
"y": -480,
"z": 0
},
"id": 440
}
]
],
"WALL_INFO": [
[
{
"id": 639,
"num": 0,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 640,
"num": 1,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 641,
"num": 2,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 642,
"num": 3,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 643,
"num": 5,
"color": 5,
"special": 1,
"length": 1
},
{
"id": 644,
"num": 17,
"color": 6,
"special": 0,
"length": 2
},
{
"id": 645,
"num": 19,
"color": 6,
"special": 0,
"length": 0
},
{
"id": 646,
"num": 27,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 647,
"num": 28,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 648,
"num": 24,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 649,
"num": 25,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 650,
"num": 23,
"color": 6,
"special": 1,
"length": 1
},
{
"id": 651,
"num": 20,
"color": 7,
"special": 0,
"length": 1
},
{
"id": 652,
"num": 12,
"color": 5,
"special": 6,
"length": 2,
"lockTime": 4
},
{
"id": 653,
"num": 14,
"color": 5,
"special": 6,
"length": 0,
"lockTime": 4
}
]
]
}

View File

@ -0,0 +1,385 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "639",
"map": [
11,
8
],
"time": 130,
"gap": [
{
"x": 1,
"y": 6,
"z": 0
},
{
"x": 1,
"y": 5,
"z": 0
},
{
"x": 9,
"y": 6,
"z": 0
},
{
"x": 9,
"y": 5,
"z": 0
},
{
"x": 1,
"y": 1,
"z": 0
},
{
"x": 2,
"y": 1,
"z": 0
},
{
"x": 3,
"y": 1,
"z": 0
},
{
"x": 9,
"y": 1,
"z": 0
},
{
"x": 8,
"y": 1,
"z": 0
},
{
"x": 7,
"y": 1,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 300,
"y": 240,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": -180,
"y": 240,
"z": 0
},
"id": 220
},
{
"block": 0,
"color": 9,
"type": 0,
"position": {
"x": -300,
"y": 240,
"z": 0
},
"floor": 1,
"floorTime": 6,
"id": 230
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 420,
"y": 240,
"z": 0
},
"floor": 2,
"floorTime": 12,
"id": 240
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 60,
"y": 120,
"z": 0
},
"id": 250
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 60,
"y": 240,
"z": 0
},
"id": 260
},
{
"block": 14,
"color": 10,
"type": 4,
"position": {
"x": 60,
"y": -360,
"z": 0
},
"freezeTime": 10,
"id": 270
},
{
"block": 0,
"color": 9,
"type": 0,
"position": {
"x": 420,
"y": 120,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": -300,
"y": 120,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 10,
"type": 0,
"position": {
"x": -60,
"y": 120,
"z": 0
},
"id": 300
},
{
"block": 21,
"color": 10,
"type": 0,
"position": {
"x": 420,
"y": -120,
"z": 0
},
"id": 310
},
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": -60,
"y": 0,
"z": 0
},
"id": 320
},
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": 300,
"y": 120,
"z": 0
},
"id": 330
},
{
"block": 22,
"color": 3,
"type": 0,
"position": {
"x": -300,
"y": -120,
"z": 0
},
"id": 340
},
{
"block": 1,
"color": 3,
"type": 0,
"position": {
"x": 300,
"y": 0,
"z": 0
},
"id": 350
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -420,
"y": -240,
"z": 0
},
"id": 360
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 540,
"y": -240,
"z": 0
},
"id": 370
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": -180,
"y": -240,
"z": 0
},
"id": 380
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 60,
"y": -120,
"z": 0
},
"id": 390
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": 300,
"y": -240,
"z": 0
},
"id": 400
}
]
],
"WALL_INFO": [
[
{
"id": 640,
"num": 1,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 641,
"num": 2,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 642,
"num": 8,
"color": 1,
"special": 0,
"length": 1
},
{
"id": 643,
"num": 13,
"color": 10,
"special": 3,
"length": 3,
"freeze": 8
},
{
"id": 644,
"num": 15,
"color": 10,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 645,
"num": 17,
"color": 10,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 646,
"num": 22,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 647,
"num": 28,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 29,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 649,
"num": 21,
"color": 8,
"special": 0,
"length": 1
},
{
"id": 650,
"num": 14,
"color": 2,
"special": 0,
"length": 1
},
{
"id": 651,
"num": 7,
"color": 9,
"special": 0,
"length": 1
}
]
]
}

View File

@ -0,0 +1,292 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "640",
"map": [
9,
7
],
"time": 150,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 1,
"color": 9,
"type": 0,
"position": {
"x": 300,
"y": 60,
"z": 0
},
"id": 210
},
{
"block": 1,
"color": 2,
"type": 0,
"position": {
"x": 60,
"y": -60,
"z": 0
},
"id": 220
},
{
"block": 14,
"color": 2,
"type": 0,
"position": {
"x": 180,
"y": -300,
"z": 0
},
"id": 230
},
{
"block": 22,
"color": 4,
"type": 0,
"position": {
"x": -60,
"y": 60,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": -300,
"y": -180,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -60,
"y": -300,
"z": 0
},
"id": 260
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -300,
"y": 60,
"z": 0
},
"id": 270
},
{
"block": 1,
"color": 8,
"type": 0,
"position": {
"x": -180,
"y": -300,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": 420,
"y": -180,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 7,
"type": 0,
"position": {
"x": 420,
"y": -60,
"z": 0
},
"id": 300
},
{
"block": 2,
"color": 10,
"type": 0,
"position": {
"x": 420,
"y": 60,
"z": 0
},
"id": 310
},
{
"block": 3,
"color": 3,
"type": 0,
"position": {
"x": 300,
"y": 180,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 60,
"y": -300,
"z": 0
},
"id": 330
},
{
"block": 1,
"color": 7,
"type": 7,
"position": {
"x": 420,
"y": -300,
"z": 0
},
"id": 340
},
{
"block": 0,
"color": 9,
"type": 8,
"position": {
"x": -180,
"y": -60,
"z": 0
},
"id": 350
}
]
],
"WALL_INFO": [
[
{
"id": 641,
"num": 0,
"color": 7,
"special": 0,
"length": 1
},
{
"id": 642,
"num": 2,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 643,
"num": 3,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 644,
"num": 8,
"color": 5,
"special": 0,
"length": 1
},
{
"id": 645,
"num": 10,
"color": 2,
"special": 4,
"length": 3
},
{
"id": 646,
"num": 12,
"color": 2,
"special": 4,
"length": 0
},
{
"id": 647,
"num": 14,
"color": 2,
"special": 4,
"length": 0
},
{
"id": 648,
"num": 16,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 649,
"num": 21,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 650,
"num": 22,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 651,
"num": 19,
"color": 3,
"special": 4,
"length": 1
},
{
"id": 652,
"num": 13,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 653,
"num": 15,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 654,
"num": 7,
"color": 9,
"special": 4,
"length": 2
},
{
"id": 655,
"num": 9,
"color": 9,
"special": 4,
"length": 0
}
]
]
}

View File

@ -0,0 +1,329 @@
{
"LEVEL_INFO": [
{
"risefall": [
{
"x": 3,
"y": 4,
"color": "5"
},
{
"x": 3,
"y": 5,
"color": "5"
}
],
"id": "641",
"map": [
7,
9
],
"time": 110,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 5,
"type": 0,
"position": {
"x": -60,
"y": -420,
"z": 0
},
"floor": 1,
"floorTime": 4,
"id": 210
},
{
"block": 0,
"color": 4,
"type": 8,
"position": {
"x": -60,
"y": -300,
"z": 0
},
"floor": 1,
"floorTime": 4,
"id": 220
},
{
"block": 0,
"color": 6,
"type": 8,
"position": {
"x": 180,
"y": -300,
"z": 0
},
"floor": 2,
"floorTime": 11,
"id": 230
},
{
"block": 23,
"color": 6,
"type": 8,
"position": {
"x": 180,
"y": -420,
"z": 0
},
"floor": 2,
"floorTime": 11,
"id": 240
},
{
"block": 0,
"color": 6,
"type": 4,
"position": {
"x": 60,
"y": -420,
"z": 0
},
"freezeTime": 7,
"id": 250
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 60,
"y": -300,
"z": 0
},
"id": 260
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": -60,
"y": 180,
"z": 0
},
"id": 270
},
{
"block": 21,
"color": 7,
"type": 0,
"position": {
"x": -180,
"y": 180,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": -180,
"y": 60,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -180,
"y": -420,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": 300,
"y": 60,
"z": 0
},
"id": 310
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": 300,
"y": -420,
"z": 0
},
"id": 320
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": -60,
"y": -60,
"z": 0
},
"id": 330
},
{
"block": 22,
"color": 9,
"type": 0,
"position": {
"x": 300,
"y": 180,
"z": 0
},
"id": 340
},
{
"block": 0,
"color": 9,
"type": 0,
"position": {
"x": 180,
"y": 180,
"z": 0
},
"id": 350
},
{
"block": 2,
"color": 3,
"type": 0,
"position": {
"x": 180,
"y": -60,
"z": 0
},
"id": 360
},
{
"block": 1,
"color": 2,
"type": 0,
"position": {
"x": -60,
"y": -180,
"z": 0
},
"id": 370
},
{
"block": 1,
"color": 3,
"type": 6,
"position": {
"x": 300,
"y": -180,
"z": 0
},
"boomTime": 25,
"id": 380
},
{
"block": 2,
"color": 5,
"type": 8,
"position": {
"x": 60,
"y": 180,
"z": 0
},
"id": 390
}
]
],
"WALL_INFO": [
[
{
"id": 642,
"num": 1,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 643,
"num": 2,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 644,
"num": 3,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 645,
"num": 4,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 646,
"num": 10,
"color": 4,
"special": 0,
"length": 1
},
{
"id": 647,
"num": 14,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 648,
"num": 20,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 649,
"num": 21,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 650,
"num": 18,
"color": 7,
"special": 0,
"length": 2
},
{
"id": 651,
"num": 19,
"color": 7,
"special": 0,
"length": 0
},
{
"id": 652,
"num": 11,
"color": 5,
"special": 0,
"length": 1
}
]
]
}

View File

@ -0,0 +1,345 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "642",
"map": [
9,
8
],
"time": 100,
"gap": [
{
"x": 1,
"y": 4,
"z": 0
},
{
"x": 1,
"y": 5,
"z": 0
},
{
"x": 7,
"y": 4,
"z": 0
},
{
"x": 7,
"y": 5,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 60,
"y": -360,
"z": 0
},
"id": 210
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": -300,
"y": 240,
"z": 0
},
"id": 220
},
{
"block": 2,
"color": 10,
"type": 0,
"position": {
"x": -180,
"y": 120,
"z": 0
},
"id": 230
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": 300,
"y": 120,
"z": 0
},
"id": 240
},
{
"block": 0,
"color": 9,
"type": 0,
"position": {
"x": 420,
"y": 240,
"z": 0
},
"id": 250
},
{
"block": 19,
"color": 8,
"type": 0,
"position": {
"x": -180,
"y": -240,
"z": 0
},
"id": 260
},
{
"block": 20,
"color": 2,
"type": 0,
"position": {
"x": 420,
"y": -240,
"z": 0
},
"id": 270
},
{
"block": 0,
"color": 3,
"type": 0,
"position": {
"x": -300,
"y": -360,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": 420,
"y": -360,
"z": 0
},
"id": 290
},
{
"block": 3,
"color": 1,
"type": 1,
"position": {
"x": 180,
"y": 240,
"z": 0
},
"stacking": 7,
"id": 300
},
{
"block": 18,
"color": 5,
"type": 4,
"position": {
"x": 60,
"y": -120,
"z": 0
},
"freezeTime": 9,
"id": 310
},
{
"block": 0,
"color": 8,
"type": 14,
"position": {
"x": 60,
"y": -240,
"z": 0
},
"id": 320
},
{
"block": 2,
"color": 9,
"type": 14,
"position": {
"x": 180,
"y": -360,
"z": 0
},
"id": 330
},
{
"block": 2,
"color": 2,
"type": 14,
"position": {
"x": -60,
"y": -360,
"z": 0
},
"id": 340
},
{
"block": 0,
"color": 1,
"type": 14,
"position": {
"x": -180,
"y": -360,
"z": 0
},
"id": 350
},
{
"block": 0,
"color": 4,
"type": 14,
"position": {
"x": 300,
"y": -360,
"z": 0
},
"id": 360
}
]
],
"WALL_INFO": [
[
{
"id": 643,
"num": 1,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 644,
"num": 2,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 645,
"num": 3,
"color": 7,
"special": 3,
"length": 1,
"freeze": 6
},
{
"id": 646,
"num": 11,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 647,
"num": 13,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 648,
"num": 17,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 649,
"num": 19,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 650,
"num": 29,
"color": 1,
"special": 3,
"length": 1,
"freeze": 3
},
{
"id": 651,
"num": 27,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 652,
"num": 28,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 653,
"num": 18,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 654,
"num": 20,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 655,
"num": 12,
"color": 5,
"special": 6,
"length": 3,
"lockTime": 5
},
{
"id": 656,
"num": 14,
"color": 5,
"special": 6,
"length": 0,
"lockTime": 5
},
{
"id": 657,
"num": 16,
"color": 5,
"special": 6,
"length": 0,
"lockTime": 5
},
{
"id": 658,
"num": 4,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 659,
"num": 10,
"color": 9,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,313 @@
{
"LEVEL_INFO": [
{
"risefall": [
{
"x": 4,
"y": 3,
"color": "6"
},
{
"x": 4,
"y": 2,
"color": "6"
}
],
"id": "643",
"map": [
9,
7
],
"time": 125,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": -60,
"y": -180,
"z": 0
},
"id": 210
},
{
"block": 2,
"color": 6,
"type": 0,
"position": {
"x": 180,
"y": -300,
"z": 0
},
"id": 220
},
{
"block": 4,
"color": 6,
"type": 0,
"position": {
"x": 420,
"y": -300,
"z": 0
},
"id": 230
},
{
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": 300,
"y": -300,
"z": 0
},
"id": 240
},
{
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": 60,
"y": -300,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": -60,
"y": 60,
"z": 0
},
"id": 260
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 60,
"y": 60,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 2,
"type": 14,
"position": {
"x": -300,
"y": -60,
"z": 0
},
"id": 280
},
{
"block": 1,
"color": 10,
"type": 14,
"position": {
"x": -180,
"y": 180,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 8,
"type": 14,
"position": {
"x": 420,
"y": 180,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 7,
"type": 14,
"position": {
"x": 180,
"y": 180,
"z": 0
},
"id": 310
},
{
"block": 5,
"color": 3,
"type": 14,
"position": {
"x": 300,
"y": -60,
"z": 0
},
"id": 320
},
{
"block": 1,
"color": 2,
"type": 9,
"position": {
"x": -180,
"y": -180,
"z": 0
},
"adhesiveTime": 2,
"id": 330
},
{
"block": 1,
"color": 2,
"type": 9,
"position": {
"x": -60,
"y": -300,
"z": 0
},
"adhesiveTime": 1,
"id": 340
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": 420,
"y": 60,
"z": 0
},
"id": 350
}
]
],
"WALL_INFO": [
[
{
"id": 644,
"num": 0,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 645,
"num": 1,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 646,
"num": 4,
"color": 4,
"special": 0,
"length": 1
},
{
"id": 647,
"num": 8,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 10,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 649,
"num": 12,
"color": 6,
"special": 6,
"length": 1,
"lockTime": 5
},
{
"id": 650,
"num": 14,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 651,
"num": 16,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 652,
"num": 23,
"color": 10,
"special": 0,
"length": 1
},
{
"id": 653,
"num": 19,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 654,
"num": 20,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 655,
"num": 15,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 656,
"num": 17,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 657,
"num": 11,
"color": 7,
"special": 0,
"length": 1
},
{
"id": 658,
"num": 5,
"color": 1,
"special": 0,
"length": 2
},
{
"id": 659,
"num": 7,
"color": 1,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,386 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "644",
"map": [
9,
8
],
"time": 120,
"gap": [
{
"x": 3,
"y": 1,
"z": 0
},
{
"x": 4,
"y": 1,
"z": 0
},
{
"x": 5,
"y": 1,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": -180,
"y": 240,
"z": 0
},
"floor": 1,
"floorTime": 6,
"id": 210
},
{
"block": 0,
"color": 2,
"type": 2,
"position": {
"x": -60,
"y": 240,
"z": 0
},
"floor": 1,
"floorTime": 6,
"id": 220
},
{
"block": 0,
"color": 1,
"type": 2,
"position": {
"x": 180,
"y": 240,
"z": 0
},
"floor": 2,
"floorTime": 8,
"id": 230
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 300,
"y": 240,
"z": 0
},
"floor": 2,
"floorTime": 8,
"id": 240
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -180,
"y": -120,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 60,
"y": 120,
"z": 0
},
"id": 260
},
{
"block": 0,
"color": 11,
"type": 0,
"position": {
"x": 60,
"y": -240,
"z": 0
},
"id": 270
},
{
"block": 0,
"color": 4,
"type": 0,
"position": {
"x": -60,
"y": -240,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": -180,
"y": -240,
"z": 0
},
"id": 290
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": 180,
"y": -240,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 300,
"y": -240,
"z": 0
},
"id": 310
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 300,
"y": -120,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 5,
"type": 9,
"position": {
"x": -180,
"y": 120,
"z": 0
},
"adhesiveTime": 2,
"id": 330
},
{
"block": 0,
"color": 9,
"type": 9,
"position": {
"x": -300,
"y": 120,
"z": 0
},
"adhesiveTime": 1,
"id": 340
},
{
"block": 0,
"color": 4,
"type": 9,
"position": {
"x": 300,
"y": 120,
"z": 0
},
"adhesiveTime": 2,
"id": 350
},
{
"block": 0,
"color": 3,
"type": 9,
"position": {
"x": 420,
"y": 120,
"z": 0
},
"adhesiveTime": 1,
"id": 360
},
{
"block": 14,
"color": 5,
"type": 3,
"position": {
"x": 60,
"y": -120,
"z": 0
},
"lockTime": 4,
"id": 370
},
{
"block": 2,
"color": 9,
"type": 2,
"position": {
"x": -300,
"y": -120,
"z": 0
},
"id": 380
},
{
"block": 2,
"color": 3,
"type": 2,
"position": {
"x": 420,
"y": -120,
"z": 0
},
"id": 390
},
{
"block": 2,
"color": 10,
"type": 8,
"position": {
"x": 420,
"y": -360,
"z": 0
},
"id": 400
},
{
"block": 2,
"color": 6,
"type": 8,
"position": {
"x": -300,
"y": -360,
"z": 0
},
"id": 410
}
]
],
"WALL_INFO": [
[
{
"id": 645,
"num": 0,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 646,
"num": 1,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 647,
"num": 4,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 5,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 649,
"num": 7,
"color": 8,
"special": 0,
"length": 2,
"colorArray": "75"
},
{
"id": 650,
"num": 9,
"color": 8,
"special": 0,
"length": 0,
"colorArray": "75"
},
{
"id": 651,
"num": 19,
"color": 7,
"special": 0,
"length": 2,
"colorArray": "69"
},
{
"id": 652,
"num": 21,
"color": 7,
"special": 0,
"length": 0,
"colorArray": "69"
},
{
"id": 653,
"num": 26,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 654,
"num": 27,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 655,
"num": 22,
"color": 9,
"special": 0,
"length": 2
},
{
"id": 656,
"num": 23,
"color": 9,
"special": 0,
"length": 0
},
{
"id": 657,
"num": 20,
"color": 1,
"special": 3,
"length": 1,
"freeze": 12
},
{
"id": 658,
"num": 6,
"color": 2,
"special": 3,
"length": 1,
"freeze": 9
}
]
]
}

View File

@ -0,0 +1,359 @@
{
"LEVEL_INFO": [
{
"risefall": [
{
"x": 3,
"y": 5,
"color": "5"
},
{
"x": 4,
"y": 5,
"color": "5"
}
],
"id": "645",
"map": [
8,
9
],
"time": 150,
"gap": [
{
"x": 1,
"y": 7,
"z": 0
},
{
"x": 6,
"y": 7,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": -180,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": -240,
"y": -180,
"z": 0
},
"id": 220
},
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": -120,
"y": -60,
"z": 0
},
"id": 230
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 120,
"y": -180,
"z": 0
},
"id": 240
},
{
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": 120,
"y": 180,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": 360,
"y": 60,
"z": 0
},
"id": 260
},
{
"block": 0,
"color": 8,
"type": 4,
"position": {
"x": 240,
"y": 300,
"z": 0
},
"freezeTime": 8,
"id": 270
},
{
"block": 0,
"color": 6,
"type": 4,
"position": {
"x": -120,
"y": 300,
"z": 0
},
"freezeTime": 12,
"id": 280
},
{
"block": 2,
"color": 5,
"type": 9,
"position": {
"x": 120,
"y": -420,
"z": 0
},
"adhesiveTime": 2,
"id": 290
},
{
"block": 2,
"color": 5,
"type": 9,
"position": {
"x": 0,
"y": -300,
"z": 0
},
"adhesiveTime": 1,
"id": 300
},
{
"block": 2,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": 60,
"z": 0
},
"id": 310
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": -120,
"y": 60,
"z": 0
},
"id": 320
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": 360,
"y": -60,
"z": 0
},
"id": 330
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 240,
"y": 60,
"z": 0
},
"id": 340
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": 0,
"y": -60,
"z": 0
},
"id": 350
},
{
"block": 1,
"color": 7,
"type": 1,
"position": {
"x": 120,
"y": 300,
"z": 0
},
"stacking": 1,
"id": 360
},
{
"block": 2,
"color": 7,
"type": 1,
"position": {
"x": 240,
"y": -300,
"z": 0
},
"stacking": 4,
"id": 370
},
{
"block": 2,
"color": 1,
"type": 1,
"position": {
"x": -120,
"y": -300,
"z": 0
},
"stacking": 10,
"id": 380
},
{
"block": 1,
"color": 10,
"type": 1,
"position": {
"x": -120,
"y": -420,
"z": 0
},
"stacking": 7,
"id": 390
},
{
"block": 1,
"color": 3,
"type": 1,
"position": {
"x": 360,
"y": -420,
"z": 0
},
"stacking": 8,
"id": 400
}
]
],
"WALL_INFO": [
[
{
"id": 646,
"num": 1,
"color": 8,
"special": 0,
"length": 1
},
{
"id": 647,
"num": 3,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 4,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 649,
"num": 12,
"color": 5,
"special": 0,
"length": 2,
"colorArray": "40440"
},
{
"id": 650,
"num": 14,
"color": 5,
"special": 0,
"length": 0,
"colorArray": "40440"
},
{
"id": 651,
"num": 23,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 652,
"num": 24,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 653,
"num": 21,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 654,
"num": 15,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 655,
"num": 17,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 656,
"num": 6,
"color": 7,
"special": 0,
"length": 2
},
{
"id": 657,
"num": 9,
"color": 7,
"special": 0,
"length": 0
}
]
]
}

View File

@ -0,0 +1,383 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "646",
"map": [
8,
9
],
"time": 70,
"gap": [
{
"x": 1,
"y": 7,
"z": 0
},
{
"x": 6,
"y": 7,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": 240,
"y": -300,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": 240,
"y": -420,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": -120,
"y": -300,
"z": 0
},
"id": 230
},
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": -120,
"y": -420,
"z": 0
},
"id": 240
},
{
"block": 1,
"color": 8,
"type": 0,
"position": {
"x": -120,
"y": 180,
"z": 0
},
"id": 250
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 240,
"y": 300,
"z": 0
},
"id": 260
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -240,
"y": -180,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 9,
"type": 0,
"position": {
"x": -240,
"y": -420,
"z": 0
},
"id": 280
},
{
"block": 1,
"color": 9,
"type": 0,
"position": {
"x": 0,
"y": 60,
"z": 0
},
"id": 290
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": -240,
"y": 60,
"z": 0
},
"id": 300
},
{
"block": 0,
"color": 10,
"type": 0,
"position": {
"x": -120,
"y": 300,
"z": 0
},
"id": 310
},
{
"block": 1,
"color": 10,
"type": 0,
"position": {
"x": 360,
"y": 180,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 3,
"type": 0,
"position": {
"x": 360,
"y": 60,
"z": 0
},
"id": 330
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": 360,
"y": -180,
"z": 0
},
"id": 340
},
{
"block": 1,
"color": 1,
"type": 0,
"position": {
"x": 240,
"y": -180,
"z": 0
},
"id": 350
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": -420,
"z": 0
},
"id": 360
},
{
"block": 1,
"color": 5,
"type": 1,
"position": {
"x": 120,
"y": -420,
"z": 0
},
"stacking": 1,
"id": 370
},
{
"block": 2,
"color": 9,
"type": 1,
"position": {
"x": 120,
"y": -60,
"z": 0
},
"stacking": 1,
"id": 380
},
{
"block": 2,
"color": 9,
"type": 1,
"position": {
"x": 0,
"y": -180,
"z": 0
},
"stacking": 1,
"id": 390
},
{
"block": 2,
"color": 3,
"type": 8,
"position": {
"x": 0,
"y": 180,
"z": 0
},
"id": 400
},
{
"block": 2,
"color": 7,
"type": 8,
"position": {
"x": 120,
"y": 180,
"z": 0
},
"id": 410
}
]
],
"WALL_INFO": [
[
{
"id": 647,
"num": 1,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 648,
"num": 2,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 649,
"num": 3,
"color": 5,
"special": 0,
"length": 3
},
{
"id": 650,
"num": 4,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 651,
"num": 5,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 652,
"num": 10,
"color": 1,
"special": 2,
"length": 2,
"lock": true
},
{
"id": 653,
"num": 12,
"color": 1,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 654,
"num": 14,
"color": 9,
"special": 2,
"length": 2,
"lock": true
},
{
"id": 655,
"num": 16,
"color": 9,
"special": 2,
"length": 0,
"lock": true
},
{
"id": 656,
"num": 23,
"color": 2,
"special": 0,
"length": 3
},
{
"id": 657,
"num": 24,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 658,
"num": 25,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 659,
"num": 21,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 660,
"num": 22,
"color": 8,
"special": 0,
"length": 0
},
{
"id": 661,
"num": 13,
"color": 7,
"special": 0,
"length": 1
},
{
"id": 662,
"num": 11,
"color": 3,
"special": 0,
"length": 1
}
]
]
}

View File

@ -0,0 +1,355 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "647",
"map": [
8,
9
],
"time": 150,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": 0,
"y": -60,
"z": 0
},
"id": 210
},
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": -120,
"y": -60,
"z": 0
},
"id": 220
},
{
"block": 23,
"color": 3,
"type": 0,
"position": {
"x": -240,
"y": -60,
"z": 0
},
"id": 230
},
{
"block": 5,
"color": 1,
"type": 0,
"position": {
"x": -120,
"y": 180,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 360,
"y": 180,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 240,
"y": 180,
"z": 0
},
"id": 260
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 0,
"y": 180,
"z": 0
},
"id": 270
},
{
"block": 1,
"color": 9,
"type": 0,
"position": {
"x": 360,
"y": 60,
"z": 0
},
"id": 280
},
{
"block": 0,
"color": 9,
"type": 0,
"position": {
"x": 360,
"y": -300,
"z": 0
},
"id": 290
},
{
"block": 4,
"color": 3,
"type": 0,
"position": {
"x": 120,
"y": -300,
"z": 0
},
"id": 300
},
{
"block": 2,
"color": 3,
"type": 0,
"position": {
"x": 0,
"y": -420,
"z": 0
},
"id": 310
},
{
"block": 2,
"color": 10,
"type": 0,
"position": {
"x": 240,
"y": -300,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 7,
"type": 0,
"position": {
"x": 120,
"y": 300,
"z": 0
},
"id": 330
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": -240,
"y": 60,
"z": 0
},
"id": 340
},
{
"block": 1,
"color": 1,
"type": 5,
"position": {
"x": 0,
"y": 60,
"z": 0
},
"id": 350
},
{
"block": 0,
"color": 1,
"type": 5,
"position": {
"x": 120,
"y": 180,
"z": 0
},
"id": 360
},
{
"block": 0,
"color": 3,
"type": 5,
"position": {
"x": -240,
"y": -180,
"z": 0
},
"id": 370
},
{
"block": 0,
"color": 7,
"type": 8,
"position": {
"x": 240,
"y": -60,
"z": 0
},
"id": 380
},
{
"block": 1,
"color": 6,
"type": 7,
"position": {
"x": 360,
"y": -420,
"z": 0
},
"id": 390
},
{
"block": 2,
"color": 10,
"type": 9,
"position": {
"x": -120,
"y": -300,
"z": 0
},
"adhesiveTime": 2,
"id": 400
},
{
"block": 2,
"color": 10,
"type": 9,
"position": {
"x": -240,
"y": -420,
"z": 0
},
"adhesiveTime": 1,
"id": 410
},
{
"block": 0,
"color": 3,
"type": 5,
"position": {
"x": 120,
"y": 60,
"z": 0
},
"floor": 1,
"floorTime": 7,
"id": 420
}
]
],
"WALL_INFO": [
[
{
"id": 648,
"num": 0,
"color": 6,
"special": 2,
"length": 1,
"lock": true
},
{
"id": 649,
"num": 6,
"color": 9,
"special": 2,
"length": 1,
"lock": true
},
{
"id": 650,
"num": 10,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 651,
"num": 12,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 652,
"num": 14,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 653,
"num": 16,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 654,
"num": 9,
"color": 2,
"special": 0,
"length": 1
},
{
"id": 655,
"num": 11,
"color": 1,
"special": 0,
"length": 2
},
{
"id": 656,
"num": 13,
"color": 1,
"special": 0,
"length": 0
},
{
"id": 657,
"num": 15,
"color": 7,
"special": 3,
"length": 1,
"freeze": 8
},
{
"id": 658,
"num": 21,
"color": 1,
"special": 1,
"length": 1
},
{
"id": 659,
"num": 23,
"color": 3,
"special": 1,
"length": 1
}
]
]
}

View File

@ -0,0 +1,332 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "648",
"map": [
9,
8
],
"time": 100,
"gap": []
}
],
"BLOCK_INFO": [
[
{
"block": 0,
"color": 10,
"type": 0,
"position": {
"x": -300,
"y": 120,
"z": 0
},
"id": 210
},
{
"block": 1,
"color": 10,
"type": 0,
"position": {
"x": -60,
"y": -360,
"z": 0
},
"id": 220
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": 420,
"y": 240,
"z": 0
},
"id": 230
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": -180,
"y": 240,
"z": 0
},
"id": 240
},
{
"block": 1,
"color": 8,
"type": 0,
"position": {
"x": 60,
"y": 240,
"z": 0
},
"id": 250
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 300,
"y": -120,
"z": 0
},
"id": 260
},
{
"block": 1,
"color": 4,
"type": 0,
"position": {
"x": 180,
"y": -360,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": -300,
"y": -360,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 5,
"type": 0,
"position": {
"x": -300,
"y": -120,
"z": 0
},
"id": 290
},
{
"block": 2,
"color": 7,
"type": 0,
"position": {
"x": 300,
"y": -360,
"z": 0
},
"id": 300
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 420,
"y": -360,
"z": 0
},
"id": 310
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 60,
"y": 0,
"z": 0
},
"id": 320
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": -180,
"y": 120,
"z": 0
},
"id": 330
},
{
"block": 21,
"color": 6,
"type": 1,
"position": {
"x": -180,
"y": -120,
"z": 0
},
"stacking": 4,
"id": 340
},
{
"block": 0,
"color": 7,
"type": 1,
"position": {
"x": -60,
"y": 120,
"z": 0
},
"stacking": 8,
"id": 350
},
{
"block": 21,
"color": 3,
"type": 1,
"position": {
"x": 300,
"y": 0,
"z": 0
},
"stacking": 6,
"id": 360
},
{
"block": 2,
"color": 1,
"type": 0,
"position": {
"x": 180,
"y": 0,
"z": 0
},
"floor": 1,
"floorTime": 10,
"id": 370
},
{
"block": 1,
"color": 10,
"type": 0,
"position": {
"x": 60,
"y": -240,
"z": 0
},
"floor": 1,
"floorTime": 10,
"id": 380
},
{
"block": 2,
"color": 5,
"type": 4,
"position": {
"x": 180,
"y": -240,
"z": 0
},
"freezeTime": 7,
"floor": 1,
"floorTime": 10,
"id": 390
}
]
],
"WALL_INFO": [
[
{
"id": 649,
"num": 0,
"color": 3,
"special": 0,
"length": 2
},
{
"id": 650,
"num": 1,
"color": 3,
"special": 0,
"length": 0
},
{
"id": 651,
"num": 3,
"color": 8,
"special": 0,
"length": 1
},
{
"id": 652,
"num": 9,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 653,
"num": 11,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 654,
"num": 15,
"color": 7,
"special": 0,
"length": 2
},
{
"id": 655,
"num": 17,
"color": 7,
"special": 0,
"length": 0
},
{
"id": 656,
"num": 23,
"color": 10,
"special": 0,
"length": 1
},
{
"id": 657,
"num": 20,
"color": 6,
"special": 0,
"length": 2
},
{
"id": 658,
"num": 21,
"color": 6,
"special": 0,
"length": 0
},
{
"id": 659,
"num": 14,
"color": 2,
"special": 0,
"length": 1
},
{
"id": 660,
"num": 12,
"color": 1,
"special": 0,
"length": 1
},
{
"id": 661,
"num": 10,
"color": 5,
"special": 0,
"length": 1
}
]
]
}

View File

@ -0,0 +1,413 @@
{
"LEVEL_INFO": [
{
"risefall": [
{
"x": 5,
"y": 5,
"color": "5"
},
{
"x": 5,
"y": 4,
"color": "5"
},
{
"x": 6,
"y": 5,
"color": "5"
},
{
"x": 6,
"y": 4,
"color": "5"
}
],
"id": "649",
"map": [
9,
10
],
"time": 135,
"gap": [
{
"x": 1,
"y": 2,
"z": 0
},
{
"x": 1,
"y": 3,
"z": 0
},
{
"x": 6,
"y": 1,
"z": 0
},
{
"x": 5,
"y": 1,
"z": 0
},
{
"x": 5,
"y": 2,
"z": 0
},
{
"x": 6,
"y": 2,
"z": 0
},
{
"x": 6,
"y": 7,
"z": 0
},
{
"x": 5,
"y": 7,
"z": 0
},
{
"x": 7,
"y": 7,
"z": 0
},
{
"x": 7,
"y": 6,
"z": 0
},
{
"x": 6,
"y": 6,
"z": 0
},
{
"x": 5,
"y": 6,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 23,
"color": 1,
"type": 0,
"position": {
"x": -300,
"y": 0,
"z": 0
},
"id": 210
},
{
"block": 5,
"color": 5,
"type": 0,
"position": {
"x": -60,
"y": -120,
"z": 0
},
"id": 220
},
{
"block": 1,
"color": 5,
"type": 0,
"position": {
"x": 420,
"y": 360,
"z": 0
},
"id": 230
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": 60,
"y": 0,
"z": 0
},
"id": 240
},
{
"block": 3,
"color": 10,
"type": 0,
"position": {
"x": 420,
"y": -240,
"z": 0
},
"id": 250
},
{
"block": 2,
"color": 10,
"type": 0,
"position": {
"x": 60,
"y": -360,
"z": 0
},
"id": 260
},
{
"block": 4,
"color": 4,
"type": 0,
"position": {
"x": 60,
"y": 120,
"z": 0
},
"id": 270
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": -300,
"y": 240,
"z": 0
},
"id": 280
},
{
"block": 1,
"color": 3,
"type": 0,
"position": {
"x": 60,
"y": -480,
"z": 0
},
"id": 290
},
{
"block": 1,
"color": 3,
"type": 0,
"position": {
"x": -60,
"y": 120,
"z": 0
},
"id": 300
},
{
"block": 22,
"color": 4,
"type": 0,
"position": {
"x": -60,
"y": -360,
"z": 0
},
"id": 310
},
{
"block": 1,
"color": 8,
"type": 0,
"position": {
"x": -60,
"y": 240,
"z": 0
},
"id": 320
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": -60,
"y": 360,
"z": 0
},
"id": 330
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": -180,
"y": -480,
"z": 0
},
"id": 340
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": 420,
"y": -480,
"z": 0
},
"id": 350
},
{
"block": 0,
"color": 9,
"type": 9,
"position": {
"x": 420,
"y": -120,
"z": 0
},
"adhesiveTime": 2,
"id": 360
},
{
"block": 0,
"color": 8,
"type": 9,
"position": {
"x": 420,
"y": 0,
"z": 0
},
"adhesiveTime": 1,
"id": 370
},
{
"block": 0,
"color": 6,
"type": 6,
"position": {
"x": 60,
"y": -120,
"z": 0
},
"boomTime": 22,
"id": 380
},
{
"block": 0,
"color": 8,
"type": 4,
"position": {
"x": 420,
"y": -360,
"z": 0
},
"freezeTime": 12,
"id": 390
}
]
],
"WALL_INFO": [
[
{
"id": 650,
"num": 0,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 651,
"num": 1,
"color": 8,
"special": 0,
"length": 1
},
{
"id": 652,
"num": 4,
"color": 2,
"special": 3,
"length": 2,
"freeze": 15
},
{
"id": 653,
"num": 5,
"color": 2,
"special": 3,
"length": 0,
"freeze": 15
},
{
"id": 654,
"num": 13,
"color": 10,
"special": 0,
"length": 3
},
{
"id": 655,
"num": 15,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 656,
"num": 17,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 657,
"num": 41,
"color": 3,
"special": 0,
"length": 1
},
{
"id": 658,
"num": 39,
"color": 5,
"special": 0,
"length": 2
},
{
"id": 659,
"num": 40,
"color": 5,
"special": 0,
"length": 0
},
{
"id": 660,
"num": 12,
"color": 4,
"special": 3,
"length": 2,
"freeze": 8
},
{
"id": 661,
"num": 14,
"color": 4,
"special": 3,
"length": 0,
"freeze": 8
},
{
"id": 662,
"num": 36,
"color": 9,
"special": 3,
"length": 1,
"freeze": 12
}
]
]
}

View File

@ -0,0 +1,293 @@
{
"LEVEL_INFO": [
{
"risefall": [],
"id": "555",
"map": [
8,
8
],
"time": 70,
"gap": [
{
"x": 1,
"y": 6,
"z": 0
},
{
"x": 6,
"y": 6,
"z": 0
},
{
"x": 1,
"y": 1,
"z": 0
},
{
"x": 1,
"y": 2,
"z": 0
},
{
"x": 6,
"y": 1,
"z": 0
},
{
"x": 6,
"y": 2,
"z": 0
}
]
}
],
"BLOCK_INFO": [
[
{
"block": 6,
"color": 8,
"type": 0,
"position": {
"x": 360,
"y": -120,
"z": 0
},
"id": 210
},
{
"block": 0,
"color": 8,
"type": 0,
"position": {
"x": 240,
"y": -120,
"z": 0
},
"id": 220
},
{
"block": 10,
"color": 10,
"type": 0,
"position": {
"x": -240,
"y": -120,
"z": 0
},
"id": 230
},
{
"block": 1,
"color": 6,
"type": 0,
"position": {
"x": 0,
"y": 240,
"z": 0
},
"id": 240
},
{
"block": 2,
"color": 2,
"type": 0,
"position": {
"x": 120,
"y": -240,
"z": 0
},
"id": 250
},
{
"block": 0,
"color": 2,
"type": 0,
"position": {
"x": -120,
"y": -360,
"z": 0
},
"id": 260
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": 240,
"y": -360,
"z": 0
},
"id": 270
},
{
"block": 0,
"color": 1,
"type": 0,
"position": {
"x": -120,
"y": -120,
"z": 0
},
"id": 280
},
{
"block": 2,
"color": 4,
"type": 0,
"position": {
"x": 0,
"y": -240,
"z": 0
},
"id": 290
},
{
"block": 0,
"color": 5,
"type": 0,
"position": {
"x": -120,
"y": 0,
"z": 0
},
"id": 300
},
{
"block": 1,
"color": 9,
"type": 0,
"position": {
"x": 240,
"y": 240,
"z": 0
},
"id": 310
},
{
"block": 0,
"color": 6,
"type": 0,
"position": {
"x": 240,
"y": 0,
"z": 0
},
"id": 320
},
{
"block": 2,
"color": 4,
"type": 1,
"position": {
"x": 120,
"y": 0,
"z": 0
},
"stacking": 10,
"id": 330
},
{
"block": 2,
"color": 2,
"type": 1,
"position": {
"x": 0,
"y": 0,
"z": 0
},
"stacking": 8,
"id": 340
}
]
],
"WALL_INFO": [
[
{
"id": 556,
"num": 3,
"color": 6,
"special": 0,
"length": 1
},
{
"id": 557,
"num": 1,
"color": 1,
"special": 0,
"length": 1
},
{
"id": 558,
"num": 9,
"color": 4,
"special": 0,
"length": 2
},
{
"id": 559,
"num": 11,
"color": 4,
"special": 0,
"length": 0
},
{
"id": 560,
"num": 13,
"color": 2,
"special": 0,
"length": 2
},
{
"id": 561,
"num": 15,
"color": 2,
"special": 0,
"length": 0
},
{
"id": 562,
"num": 22,
"color": 9,
"special": 0,
"length": 1
},
{
"id": 563,
"num": 16,
"color": 5,
"special": 0,
"length": 1
},
{
"id": 564,
"num": 12,
"color": 10,
"special": 0,
"length": 2
},
{
"id": 565,
"num": 14,
"color": 10,
"special": 0,
"length": 0
},
{
"id": 566,
"num": 8,
"color": 8,
"special": 0,
"length": 2
},
{
"id": 567,
"num": 10,
"color": 8,
"special": 0,
"length": 0
}
]
]
}

View File

@ -1,5 +1,5 @@
{ {
"last-module-event-record-time": 1761899075365, "last-module-event-record-time": 1762504664109,
"group-list": [ "group-list": [
"default", "default",
"Map" "Map"