功能更新
|
@ -242,10 +242,10 @@
|
|||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 9
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 13
|
||||
|
@ -332,7 +332,14 @@
|
|||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 7
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -344,8 +351,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
"width": 750,
|
||||
"height": 1660
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -357,7 +364,7 @@
|
|||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-212.867,
|
||||
-163,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
@ -381,6 +388,65 @@
|
|||
"groupIndex": 0,
|
||||
"_id": "78Sk802p9L/Ip+ZPEFbJnp"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "57395957-a96b-4a27-8e2a-696e24d876a2"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "a7G3fclnNGYZw1JYGBEqqT"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
"_target": null,
|
||||
"_alignFlags": 1,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 0,
|
||||
"_originalHeight": 0,
|
||||
"_id": "09dO2/INxCTpBHqQOmB0wt"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Top",
|
||||
|
@ -392,7 +458,7 @@
|
|||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -448,7 +514,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
"__id__": 9
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
|
@ -477,11 +543,7 @@
|
|||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
|
@ -536,106 +598,12 @@
|
|||
"groupIndex": 0,
|
||||
"_id": "06lLY+o7JLroayKmx/xx6g"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Sprite(Splash)",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 100
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
144,
|
||||
48,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "b8PeJwfoJCZ4akcYG0a8KJ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "a8B+cCNkdBJrgVNc11pHi+"
|
||||
},
|
||||
{
|
||||
"__type__": "2234assp7RIvpDgrnqljp2R",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 9
|
||||
"__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"_id": "50KCMOG4tFJYPBI6jue4rZ"
|
||||
|
@ -4232,7 +4200,7 @@
|
|||
},
|
||||
"_enabled": true,
|
||||
"Map": {
|
||||
"__id__": 9
|
||||
"__id__": 11
|
||||
},
|
||||
"Block": {
|
||||
"__uuid__": "c930d64e-2707-474f-b691-6220e2932ddd"
|
||||
|
|
|
@ -44,12 +44,16 @@ export enum PathType{
|
|||
@ccclass
|
||||
export default class NewClass extends cc.Component {
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
@property(cc.SpriteAtlas)
|
||||
UI: cc.SpriteAtlas = null;
|
||||
|
||||
pos_Shifting:number;
|
||||
block_Type:number;
|
||||
path_Type:string;
|
||||
finishi:boolean
|
||||
onLoad () {
|
||||
this.finishi = false;
|
||||
this.pos_Shifting = 0;
|
||||
}
|
||||
|
||||
start () {
|
||||
|
@ -64,20 +68,106 @@ export default class NewClass extends cc.Component {
|
|||
else if(type == cc.Enum(BlockType).End){
|
||||
this.node.color = cc.color(20,255,0);
|
||||
}
|
||||
else if(type == cc.Enum(BlockType).Nunja){
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e5"];
|
||||
}
|
||||
else if(type == cc.Enum(BlockType).Peak){
|
||||
let random = Math.floor(Math.random()*4+1);
|
||||
let name = "shan" + random;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
}
|
||||
|
||||
setPath(type){
|
||||
this.path_Type = type;
|
||||
}
|
||||
|
||||
set_Xi_SoilType(direction,end){
|
||||
console.log("息壤",direction);
|
||||
if(this.block_Type == cc.Enum(BlockType).Nunja){
|
||||
this.block_Type = cc.Enum(BlockType).Nomal;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block_Bg"];
|
||||
}
|
||||
if(end != null){
|
||||
setTimeout(() => {
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,(end+1));
|
||||
}, 1000);
|
||||
|
||||
}
|
||||
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
let target = this.node.getChildByName("Xi_Soil");
|
||||
this.path_Type = direction;
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5,{opacity:255})
|
||||
.to(0.5,{opacity:0})
|
||||
.call(() =>{
|
||||
if(direction != null && end == null){
|
||||
let data = {
|
||||
order:0,
|
||||
time:0.2,
|
||||
type:0,
|
||||
circulate:false
|
||||
};
|
||||
this.runWater(data);
|
||||
}
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
|
||||
//洪峰执行
|
||||
runWater(data){
|
||||
if(this.path_Type == "err"){
|
||||
setTimeout(() => {
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
}, data.time);
|
||||
return;
|
||||
}
|
||||
//如果双向都占用了还进来就算死了-
|
||||
if(this.node.getChildByName("vertical").active == true && this.node.getChildByName("horizontal").active == true){
|
||||
alert("河道已经交叉,不能再通过");
|
||||
return;
|
||||
}
|
||||
|
||||
else if(this.node.getChildByName("turn").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil){
|
||||
alert("河道过弯处,不能再交叉河道");
|
||||
return;
|
||||
}
|
||||
var target = null;
|
||||
var progress = 1;
|
||||
var time = data.time;
|
||||
var order = data.order + 1;
|
||||
var random = Math.floor(Math.random()*4 + 1);
|
||||
target = this.node.getChildByName("vertical");
|
||||
console.log(this.path_Type);
|
||||
let water1 = target.getChildByName("wave").getChildByName("water1");
|
||||
let water2 = target.getChildByName("wave").getChildByName("water2");
|
||||
let water3 = target.getChildByName("wave").getChildByName("water3");
|
||||
let timeDelay = 0.15;
|
||||
water1.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water1.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water1.y = -120
|
||||
})).repeatForever());
|
||||
water2.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water2.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water2.y = -120
|
||||
})).repeatForever());
|
||||
water3.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water3.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water3.y = -120
|
||||
})).repeatForever());
|
||||
var name = "a" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
|
||||
if(target.active == true){
|
||||
target = this.node.getChildByName("horizontal");
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
// console.log(this.path_Type,data.order);
|
||||
if(this.path_Type == cc.Enum(PathType).up){
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).down){
|
||||
|
@ -85,62 +175,136 @@ export default class NewClass extends cc.Component {
|
|||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).left){
|
||||
target.angle = 90;
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).right){
|
||||
target.angle = 270;
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
else{
|
||||
target = this.node.getChildByName("turn");
|
||||
let water = target.getChildByName("wave").getChildByName("water");
|
||||
water.opacity = 0
|
||||
water.runAction(cc.sequence(cc.rotateTo(7.2,-1080),cc.delayTime(0)).repeatForever());
|
||||
setTimeout(() => {
|
||||
water.opacity = 255;
|
||||
}, 200);
|
||||
|
||||
name = "c" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
progress = 0.25;
|
||||
if(this.path_Type == cc.Enum(PathType).up_left){
|
||||
target.setPosition(-9,-9);
|
||||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).up_right){
|
||||
target.scaleX = -1;
|
||||
target.setPosition(9,-9);
|
||||
target.setPosition(this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).down_left){
|
||||
target.angle = 180;
|
||||
target.scaleX = -1;
|
||||
target.setPosition(-9,9);
|
||||
target.setPosition(-this.pos_Shifting,this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).down_right){
|
||||
target.angle = 180;
|
||||
target.scaleX = 1;
|
||||
target.setPosition(9,9);
|
||||
target.setPosition(this.pos_Shifting,this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).left_up){
|
||||
target.angle = -90;
|
||||
target.scaleY = -1;
|
||||
target.setPosition(9,9);
|
||||
target.setPosition(this.pos_Shifting,this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).left_down){
|
||||
target.angle = 90;
|
||||
target.scaleY = -1;
|
||||
target.setPosition(-9,-9);
|
||||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).right_up){
|
||||
target.angle = -90;
|
||||
// target.scaleY = -1;
|
||||
target.setPosition(-9,9);
|
||||
target.setPosition(-this.pos_Shifting,this.pos_Shifting);
|
||||
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).right_down){
|
||||
target.angle = -90;
|
||||
target.scaleX = -1;
|
||||
target.setPosition(-9,-9);
|
||||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
}
|
||||
if(this.path_Type == "Reinforce"){
|
||||
console.log(data.order);
|
||||
target = this.node.getChildByName("Reinforce");
|
||||
this.block_Type = cc.Enum(BlockType).Reinforce;
|
||||
this.node.getChildByName("vertical").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e1"];
|
||||
this.node.getChildByName("turn").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e3"];
|
||||
this.node.getChildByName("horizontal").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e2"];
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
progress = 1;
|
||||
cc.tween(target)
|
||||
.to(time,{opacity:255})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.changeMap,order);
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.path_Type == "Xi_Soil"){
|
||||
target.active = false;
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
target = this.node.getChildByName("Xi_Soil");
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5,{opacity:255})
|
||||
.to(0.5,{opacity:0})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.path_Type == "End"){
|
||||
target.active = false;
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
target = this.node.getChildByName("End");
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5,{opacity:255})
|
||||
.call(() =>{
|
||||
console.log("游戏结束");
|
||||
// if(data.circulate)
|
||||
// cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else{
|
||||
target.active = true;
|
||||
if(this.block_Type != cc.Enum(BlockType).Xi_Soil){
|
||||
target.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(target.getComponent(cc.Sprite))
|
||||
.to(time,{fillRange:progress})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else{
|
||||
target.opacity = 0;
|
||||
target.getComponent(cc.Sprite).fillRange = 1;
|
||||
cc.tween(target)
|
||||
.to(time,{opacity:255})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
}
|
||||
|
||||
target.active = true;
|
||||
target.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(target.getComponent(cc.Sprite))
|
||||
.to(time,{fillRange:progress})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
// update (dt) {}
|
||||
|
|
|
@ -11,10 +11,13 @@ export default class GameManager extends cc.Component {
|
|||
@property(cc.Prefab)
|
||||
Block: cc.Prefab = null;
|
||||
|
||||
countTime: number;
|
||||
block_Array: any;
|
||||
path_Array: any;
|
||||
map_Array: any;
|
||||
countTime: number; //总倒计时
|
||||
block_Array: any; //所有块数组
|
||||
path_Array: any; //修筑路径
|
||||
map_Array: any; //地图数组
|
||||
water_PathAray:any; //洪峰路径
|
||||
map_Hight:number; //地图高度
|
||||
map_Width:number; //地图宽度
|
||||
|
||||
onLoad () {
|
||||
|
||||
|
@ -33,23 +36,24 @@ export default class GameManager extends cc.Component {
|
|||
this.block_Array = [];
|
||||
this.path_Array = [];
|
||||
this.map_Array = [];
|
||||
this.map_Array = cc.fx.GameConfig.LEVEL_INFO[0][0].map;
|
||||
this.map_Hight = 0;
|
||||
this.map_Width = 0;
|
||||
let arr = cc.fx.GameConfig.LEVEL_INFO[0][0].map;
|
||||
//将地图x,y轴切换
|
||||
for(let m=0;m<Math.floor(this.map_Array .length/2);m++){
|
||||
for(let n=0; n<this.map_Array [m].length;n++){
|
||||
let temp = this.map_Array [m][n];
|
||||
this.map_Array [m][n] = this.map_Array [n][m];
|
||||
this.map_Array [n][m] = temp;
|
||||
}
|
||||
}
|
||||
|
||||
for(let i=0;i<this.map_Array .length;i++){
|
||||
this.map_Array = arr[0].map((item, i) => {
|
||||
return arr.map((val) => val[i])
|
||||
})
|
||||
this.map_Width = this.map_Array.length;
|
||||
this.map_Hight = this.map_Array[0].length;
|
||||
|
||||
for(let i=0;i<this.map_Array.length;i++){
|
||||
for(let j=0; j<this.map_Array [i].length;j++){
|
||||
let block = cc.instantiate(this.Block);
|
||||
block.parent= this.Map;
|
||||
block.getComponent("Block").initData(this.map_Array [i][j]);
|
||||
if(this.map_Array [i][j] == cc.Enum(BlockType).Start) this.path_Array.push(cc.v3(i,j,cc.Enum(BlockType).Nomal));
|
||||
block.setPosition(cc.v2(-block.width*1.5 + i*block.width,block.height*1.5 - j*block.height));
|
||||
block.setPosition(cc.v2(-block.width*2.5 + i*block.width,block.height*4 - j*block.height));
|
||||
this.block_Array.push(block);
|
||||
}
|
||||
}
|
||||
|
@ -73,50 +77,16 @@ export default class GameManager extends cc.Component {
|
|||
this.path_Array.push(cc.v3(start.x+1,start.y,cc.Enum(BlockType).Nomal));
|
||||
break;
|
||||
case "reinforce":
|
||||
this.path_Array.push(cc.v3(0,0,cc.Enum(BlockType).Reinforce));
|
||||
this.path_Array.push(cc.v3(start.x,start.y,cc.Enum(BlockType).Reinforce));
|
||||
break;
|
||||
case "soil":
|
||||
this.path_Array.push(cc.v3(0,0,cc.Enum(BlockType).Xi_Soil));
|
||||
this.path_Array.push(cc.v3(start.x,start.y,cc.Enum(BlockType).Xi_Soil));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this.runWater(0);
|
||||
}
|
||||
|
||||
setModel(){
|
||||
let time = 0.3;
|
||||
let block2 = this.node.getChildByName("Block1").getChildByName("icon").getComponent(cc.Sprite);
|
||||
let block = this.node.getChildByName("Block2").getChildByName("icon").getComponent(cc.Sprite);
|
||||
let head = this.node.getChildByName("Head");
|
||||
let block3 = this.node.getChildByName("Block3").getChildByName("icon").getComponent(cc.Sprite);
|
||||
let block4 = this.node.getChildByName("Block4").getChildByName("icon").getComponent(cc.Sprite);
|
||||
|
||||
cc.tween(head)
|
||||
.to(time,{position:cc.v3(-48,48,0)})
|
||||
.to(time,{rotation:-90})
|
||||
.to(time,{position:cc.v3(-144,48,0)})
|
||||
.to(time,{rotation:-180})
|
||||
.start();
|
||||
cc.tween(block)
|
||||
.delay(time)
|
||||
.to(time,{fillRange:0.25})
|
||||
.start();
|
||||
|
||||
cc.tween(block2)
|
||||
.to(time,{fillRange:1})
|
||||
.start();
|
||||
|
||||
cc.tween(block3)
|
||||
.delay(time*2)
|
||||
.to(time,{fillRange:1})
|
||||
.start();
|
||||
|
||||
cc.tween(block4)
|
||||
.delay(time*3)
|
||||
.to(time,{fillRange:0.25})
|
||||
.start();
|
||||
}
|
||||
|
||||
//开始执行洪峰来了的动画
|
||||
runWater(order){
|
||||
order = parseInt(order);
|
||||
|
@ -126,34 +96,251 @@ export default class GameManager extends cc.Component {
|
|||
let circulate = true;
|
||||
if(order == this.path_Array.length-1){
|
||||
circulate = false;
|
||||
direction = this.getDirection(order-1);
|
||||
if(direction == "up" || direction == "right_up" || direction == "left_up"){
|
||||
direction = "up";
|
||||
}
|
||||
else if(direction == "down" || direction == "left_down" || direction == "right_down"){
|
||||
direction = "down";
|
||||
}
|
||||
else if(direction == "left" || direction == "up_left" || direction == "down_left"){
|
||||
direction = "left";
|
||||
}
|
||||
else if(direction == "right" || direction == "up_right" || direction == "down_right"){
|
||||
direction = "right";
|
||||
}
|
||||
direction = "End";
|
||||
// if(direction == "up" || direction == "right_up" || direction == "left_up"){
|
||||
// direction = "up";
|
||||
// }
|
||||
// else if(direction == "down" || direction == "left_down" || direction == "right_down"){
|
||||
// direction = "down";
|
||||
// }
|
||||
// else if(direction == "left" || direction == "up_left" || direction == "down_left"){
|
||||
// direction = "left";
|
||||
// }
|
||||
// else if(direction == "right" || direction == "up_right" || direction == "down_right"){
|
||||
// direction = "right";
|
||||
// }
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order);
|
||||
|
||||
if(this.path_Array[order].z == 6 && order + 1 < this.path_Array.length) {
|
||||
direction = "Reinforce";
|
||||
i = this.path_Array[order+1].x*this.map_Array[0].length+this.path_Array[order+1].y;
|
||||
}
|
||||
else if(order+1 < this.path_Array.length){
|
||||
if(this.path_Array[order+1].z == 5){
|
||||
direction = "Xi_Soil";
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order);
|
||||
}
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order);
|
||||
}
|
||||
}
|
||||
// console.log(order,this.path_Array[order].x,this.path_Array[order].y,i);
|
||||
let jg = this.getBoundary(order,this.path_Array[order].x,this.path_Array[order].y,direction);
|
||||
|
||||
if(direction == "" || jg == false) return;
|
||||
let target = this.block_Array[i].getComponent("Block");
|
||||
// console.log("步骤:",order,"方向",direction);
|
||||
target.setPath(direction);
|
||||
if(order > 0 && order < this.path_Array.length-1){
|
||||
if(this.path_Array[order+1].z == 5){
|
||||
this.set_Soil(order+1);
|
||||
circulate = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
let data = {
|
||||
order:order,
|
||||
time:0.3,
|
||||
time:0.2,
|
||||
type:this.path_Array[order].z,
|
||||
circulate:circulate
|
||||
};
|
||||
target.runWater(data);
|
||||
}
|
||||
}
|
||||
//判断边界。或者撞山,或者湿地没有加固
|
||||
getBoundary(order,x,y,direction){
|
||||
let jg = true;
|
||||
if(x < 0 || x >= this.map_Width || y < 0 || y >= this.map_Hight){
|
||||
jg = false;
|
||||
console.log("超过边界,游戏结束");
|
||||
alert("超过边界,游戏结束");
|
||||
}
|
||||
else {
|
||||
let i = this.path_Array[order].x*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let target = this.block_Array[i].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
jg = false;
|
||||
console.log("修筑山峰,游戏结束");
|
||||
alert("修筑山峰,游戏结束");
|
||||
}
|
||||
else if(target.block_Type == 2 && direction != "Reinforce"){
|
||||
jg = false;
|
||||
console.log("修筑未加固湿地,游戏结束");
|
||||
alert("修筑未加固湿地,游戏结束");
|
||||
}
|
||||
}
|
||||
return jg;
|
||||
}
|
||||
|
||||
//获取息壤的格子的方向
|
||||
getXi_Soil(order){
|
||||
var direction = null;
|
||||
//如果息壤后面还有下一步的话
|
||||
if(order + 1 < this.path_Array.length){
|
||||
direction = this.getDirection(order);
|
||||
if(direction == "up" || direction == "right_up" || direction == "left_up"){
|
||||
direction = "up";
|
||||
}
|
||||
else if(direction == "down" || direction == "left_down" || direction == "right_down"){
|
||||
direction = "down";
|
||||
}
|
||||
else if(direction == "left" || direction == "up_left" || direction == "down_left"){
|
||||
direction = "left";
|
||||
}
|
||||
else if(direction == "right" || direction == "up_right" || direction == "down_right"){
|
||||
direction = "right";
|
||||
}
|
||||
}
|
||||
return direction;
|
||||
}
|
||||
//设置息壤
|
||||
set_Soil(order){
|
||||
var direction = this.getXi_Soil(order);
|
||||
var length = 0;
|
||||
if(direction == "right"){
|
||||
length = this.map_Width - 1;
|
||||
for(let i=this.path_Array[order].x;i<=length;i++){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
length = i-1;
|
||||
i = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "left"){
|
||||
length = 0;
|
||||
for(let i=this.path_Array[order].x;i>=length;i--){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
length = i+1;
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "up"){
|
||||
length = 0;
|
||||
for(let i=this.path_Array[order].y;i>=length;i--){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
length = i+1;
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "down"){
|
||||
length = this.map_Hight - 1;
|
||||
for(let i=this.path_Array[order].y;i<=length;i++){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
length = i-1;
|
||||
i = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.soil_Find(direction,order,length);
|
||||
}
|
||||
//查找息壤蛮遗憾路径
|
||||
soil_Find(direction,order,length){
|
||||
let start = this.path_Array[order].x;
|
||||
if(direction == "right"){
|
||||
for(let i = start; i<=length; i++){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start -1;
|
||||
this.changePath(order,number,false);
|
||||
jg = order;
|
||||
}
|
||||
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "left"){
|
||||
for(let i = start; i>=length; i--){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start + 1;
|
||||
this.changePath(order,number,false);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "up"){
|
||||
start = this.path_Array[order].y;
|
||||
for(let i = start; i>=length; i--){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start + 1;
|
||||
this.changePath(order,number,true);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "down"){
|
||||
start = this.path_Array[order].y;
|
||||
for(let i = start; i<=length; i++){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start - 1;
|
||||
this.changePath(order,number,true);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//息壤过后改变修筑路径
|
||||
changePath(order,number,direction){
|
||||
for(let i = (order+1); i<this.path_Array.length; i++){
|
||||
if(!direction)this.path_Array[i].x += (number);
|
||||
else this.path_Array[i].y += (number);
|
||||
}
|
||||
// // this.path_Array[data-1].x = 5;
|
||||
// this.path_Array[data].x = 5;
|
||||
|
||||
}
|
||||
|
||||
changeMap(data){
|
||||
|
||||
}
|
||||
|
||||
//获取洪峰方向
|
||||
getDirection(order){
|
||||
var name = "";
|
||||
|
@ -162,7 +349,7 @@ export default class GameManager extends cc.Component {
|
|||
let nextX = this.path_Array[order+1].x - this.path_Array[order].x;
|
||||
let nextY = this.path_Array[order].y - this.path_Array[order+1].y;
|
||||
//在底边
|
||||
if(this.path_Array[order].y == this.map_Array.length-1){
|
||||
if(this.path_Array[order].y == this.map_Array[0].length-1){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "up";
|
||||
else if(nextY == -1) name = "err";
|
||||
|
@ -189,7 +376,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == -1) name = "err";
|
||||
}
|
||||
//在右边
|
||||
else if(this.path_Array[order].x == this.map_Array[0].length-1){
|
||||
else if(this.path_Array[order].x == this.map_Array.length-1){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "left_up";
|
||||
else if(nextY == -1) name = "left_down";
|
||||
|
@ -200,12 +387,21 @@ export default class GameManager extends cc.Component {
|
|||
}
|
||||
//不是第一步,已经走过一步
|
||||
else if(order > 0){
|
||||
var next = 1;
|
||||
if(order+2 < this.path_Array.length){
|
||||
if(this.path_Array[order+1].z == 6) next = 2;
|
||||
}
|
||||
|
||||
//用于判断此点的上一个点,是为了判断当前方块洪水七点,以及下一个移动方向,判断洪终点方向
|
||||
let nextX = this.path_Array[order+1].x - this.path_Array[order].x;
|
||||
let nextY = this.path_Array[order].y - this.path_Array[order+1].y
|
||||
let nextX = this.path_Array[order+next].x - this.path_Array[order].x;
|
||||
let nextY = this.path_Array[order].y - this.path_Array[order+next].y
|
||||
let previousX = this.path_Array[order].x - this.path_Array[order-1].x;
|
||||
let previousY = this.path_Array[order-1].y - this.path_Array[order].y;
|
||||
if(previousX == 0 && previousY == 1){
|
||||
if(previousX == 0 && previousY == 0){
|
||||
previousX = this.path_Array[order].x - this.path_Array[order-2].x;
|
||||
previousY = this.path_Array[order-2].y - this.path_Array[order].y;
|
||||
}
|
||||
if(previousX == 0 && previousY >= 1){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "up";
|
||||
else if(nextY == -1) name = "err";
|
||||
|
@ -213,7 +409,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == 1) name = "up_right";
|
||||
else if(nextX == -1) name = "up_left";
|
||||
}
|
||||
else if(previousX == 0 && previousY == -1){
|
||||
else if(previousX == 0 && previousY <= -1){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "err";
|
||||
else if(nextY == -1) name = "down";
|
||||
|
@ -221,7 +417,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == 1) name = "down_right";
|
||||
else if(nextX == -1) name = "down_left";
|
||||
}
|
||||
else if(previousX == 1 && previousY == 0){
|
||||
else if(previousX >= 1 && previousY == 0){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "right_up";
|
||||
else if(nextY == -1) name = "right_down";
|
||||
|
@ -229,7 +425,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == 1) name = "right";
|
||||
else if(nextX == -1) name = "err";
|
||||
}
|
||||
else if(previousX == -1 && previousY == 0){
|
||||
else if(previousX <= -1 && previousY == 0){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "left_up";
|
||||
else if(nextY == -1) name = "left_down";
|
||||
|
@ -350,13 +546,15 @@ export default class GameManager extends cc.Component {
|
|||
cc.fx.Notifications.on(cc.fx.Message.control, this.clickSun, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.next, this.runWater, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.startGame, this.startGame, this);
|
||||
|
||||
|
||||
cc.fx.Notifications.on(cc.fx.Message.changePath, this.changePath, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.changeMap, this.changeMap, this);
|
||||
}
|
||||
onDisable () {
|
||||
cc.fx.Notifications.off(cc.fx.Message.control, this.clickSun);
|
||||
cc.fx.Notifications.off(cc.fx.Message.next, this.runWater);
|
||||
cc.fx.Notifications.off(cc.fx.Message.startGame, this.startGame);
|
||||
cc.fx.Notifications.off(cc.fx.Message.changePath, this.changePath);
|
||||
cc.fx.Notifications.off(cc.fx.Message.changeMap, this.changeMap);
|
||||
}
|
||||
update (dt) {
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ export default class NewClass extends cc.Component {
|
|||
cc.fx.GameConfig.init(this.localTest);
|
||||
// cc.fx.AudioManager.Instance.init();
|
||||
this.testVersion.string = this.clientTestVersion;
|
||||
|
||||
}
|
||||
|
||||
//开始游戏,跳转至引导页面
|
||||
|
|
|
@ -220,19 +220,26 @@ export class GameConfig {
|
|||
{
|
||||
"id": 1001,
|
||||
"map": [
|
||||
[0,0,0,4],
|
||||
[0,0,0,0],
|
||||
[0,0,0,0],
|
||||
[0,1,0,0]
|
||||
[0,0,0,0,0,4],
|
||||
[0,0,0,0,0,0],
|
||||
[0,0,3,0,3,0],
|
||||
[0,0,0,0,0,0],
|
||||
[0,0,0,3,0,0],
|
||||
[0,0,0,0,0,0],
|
||||
[0,0,2,0,0,0],
|
||||
[0,0,0,0,0,0],
|
||||
[0,1,0,0,0,0]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1002,
|
||||
"map": [
|
||||
[1,0,1,1],
|
||||
[1,1,1,1],
|
||||
[1,1,1,1],
|
||||
[1,1,1,6]
|
||||
[0,0,0,0,0,0,0,0,4],
|
||||
[0,0,0,0,0,0,0,0,0],
|
||||
[0,0,0,0,0,0,0,0,0],
|
||||
[0,0,0,0,0,0,0,0,0],
|
||||
[0,0,0,0,0,0,0,0,0],
|
||||
[0,1,0,0,0,0,0,0,0]
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -39,7 +39,9 @@ window.initMgr = function() {
|
|||
cc.fx.Message = {
|
||||
control: "10001", //传递操作控制
|
||||
startGame:"10002", //传递开始建筑
|
||||
next: "10003" //传递执行下一个格子洪水流过
|
||||
next: "10003" , //传递执行下一个格子洪水流过
|
||||
changePath: "10004", //传递操作控制
|
||||
changeMap: "10005" //改变那地图
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
13
assets/resources/Bg.meta
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"ver": "1.1.3",
|
||||
"uuid": "9cae7274-40c8-4671-a446-cb7746cd0bae",
|
||||
"importer": "folder",
|
||||
"isBundle": false,
|
||||
"bundleName": "",
|
||||
"priority": 1,
|
||||
"compressionType": {},
|
||||
"optimizeHotUpdate": {},
|
||||
"inlineSpriteFrames": {},
|
||||
"isRemoteBundle": {},
|
||||
"subMetas": {}
|
||||
}
|
BIN
assets/resources/Bg/bg2.png
Normal file
After Width: | Height: | Size: 129 KiB |
38
assets/resources/Bg/bg2.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "c71bf634-8b0b-4e7a-9c82-7ec6173bc5bb",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 750,
|
||||
"height": 1660,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"bg2": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "57395957-a96b-4a27-8e2a-696e24d876a2",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "c71bf634-8b0b-4e7a-9c82-7ec6173bc5bb",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 750,
|
||||
"height": 1660,
|
||||
"rawWidth": 750,
|
||||
"rawHeight": 1660,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
1
assets/resources/Json/dayu_config.json
Normal file
6
assets/resources/Json/dayu_config.json.meta
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"ver": "1.0.2",
|
||||
"uuid": "4083be8e-2350-48c4-8beb-6df4c6173240",
|
||||
"importer": "json",
|
||||
"subMetas": {}
|
||||
}
|
566
assets/resources/UI/publicUI.plist
Normal file
|
@ -0,0 +1,566 @@
|
|||
<?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>a0.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,149},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>a1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{149,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>a2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,247},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>a3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{247,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>a4.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,345},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>b1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{345,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>b2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{443,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>b3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{541,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>b4.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{149,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>block1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{247,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>block2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{345,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>block_Bg.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{443,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>c1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{541,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>c2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{125,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>c3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{223,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>c4.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{321,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>d1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{419,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>d2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{517,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>d3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{99,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>e1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{99,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>e2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{197,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>e3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{197,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>e4.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{295,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>e5.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{295,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>end.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{393,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>end_x.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,36}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,36}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,443},{96,36}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>end_y.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{35,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{35,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{639,99},{35,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>shan1.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{393,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>shan2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{491,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>shan3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{491,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>shan4.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{589,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>start.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{589,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>start_x.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{96,36}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{96,36}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{639,1},{96,36}}</string>
|
||||
<key>textureRotated</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>start_y.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{35,96}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{35,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{615,197},{35,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>turn_wawe.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{146,146}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{146,146}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,1},{146,146}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>vertical_wave.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{24,138}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{24,138}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{99,149},{24,138}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>metadata</key>
|
||||
<dict>
|
||||
<key>format</key>
|
||||
<integer>3</integer>
|
||||
<key>pixelFormat</key>
|
||||
<string>RGBA8888</string>
|
||||
<key>premultiplyAlpha</key>
|
||||
<false/>
|
||||
<key>realTextureFileName</key>
|
||||
<string>publicUI.png</string>
|
||||
<key>size</key>
|
||||
<string>{686,490}</string>
|
||||
<key>smartupdate</key>
|
||||
<string>$TexturePacker:SmartUpdate:383325b4703b9ab6a27358556429ce29:3aba2d162a7e3606ce2dfc19cc9a2323:1c7d81f68058ada321959f2296017bb5$</string>
|
||||
<key>textureFileName</key>
|
||||
<string>publicUI.png</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
841
assets/resources/UI/publicUI.plist.meta
Normal file
|
@ -0,0 +1,841 @@
|
|||
{
|
||||
"ver": "1.2.6",
|
||||
"uuid": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"importer": "asset",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"size": {
|
||||
"width": 686,
|
||||
"height": 490
|
||||
},
|
||||
"type": "Texture Packer",
|
||||
"subMetas": {
|
||||
"a0.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "da7d9bdf-9fd7-4fae-8134-8f0d1db1c899",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 149,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"a1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "b76603e2-c166-4ce9-af37-417cdedde12e",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 149,
|
||||
"trimY": 1,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"a2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "9c52c504-63b0-4df2-9469-ef172f9f08f9",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 247,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"a3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "2f298196-7f29-49e9-b4ad-5eff919e844b",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 247,
|
||||
"trimY": 1,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"a4.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "cd733e9d-b900-4cad-a590-13b0ffd9f2bf",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 345,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"b1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "29f62c24-67af-4b1b-b3cc-584a5c91ff2c",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 345,
|
||||
"trimY": 1,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"b2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "9c57b027-f2a1-41e8-8cff-2d0774b4ff1d",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 443,
|
||||
"trimY": 1,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"b3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "aa0a56f4-7e8b-4e9a-ba0d-cd75b5f04b33",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 541,
|
||||
"trimY": 1,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"b4.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "82bfa81b-1f1a-48eb-b099-e95301a18b12",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 149,
|
||||
"trimY": 99,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"block1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "a867e23c-0cb2-4e4c-8b56-6d767ba3e3a7",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 247,
|
||||
"trimY": 99,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"block2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e06f7c0f-f9f3-43ac-93f0-fee5ed6cf026",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 345,
|
||||
"trimY": 99,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"block_Bg.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "f76f3659-5f49-4743-8a58-db0adfccd455",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 443,
|
||||
"trimY": 99,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"c1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "c01c7783-54ca-426a-b44e-173f4dba8a8a",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 541,
|
||||
"trimY": 99,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"c2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "44b01cef-9743-4335-ba0a-e94013b44962",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 125,
|
||||
"trimY": 197,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"c3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "2baf15e3-231e-4851-9681-6d910da26990",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 223,
|
||||
"trimY": 197,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"c4.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "07fa5951-49b1-4fa4-8667-27999003939a",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 321,
|
||||
"trimY": 197,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"d1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "98c1725e-902b-4645-a3ea-6bc3bf4233a3",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 419,
|
||||
"trimY": 197,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"d2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "161fc949-beff-4d21-bc00-3f6d4b5bf8cf",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 517,
|
||||
"trimY": 197,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"d3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "d4cced48-f310-45c1-b6d9-9ffb0a317860",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 99,
|
||||
"trimY": 295,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"e1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "ba05db30-6e52-451e-bb43-8761b4a1352f",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 99,
|
||||
"trimY": 393,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"e2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "f3037750-dea0-4d93-9011-f3e0e0979861",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 197,
|
||||
"trimY": 295,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"e3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "856884c2-0caa-4a9a-80a7-a70579d9aa0e",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 197,
|
||||
"trimY": 393,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"e4.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "02faa74f-fcb3-4c62-9ad7-c5bdabcd2a0a",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 295,
|
||||
"trimY": 295,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"e5.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "4cb4f3da-0231-462a-893e-a90b00089fdb",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 295,
|
||||
"trimY": 393,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"end.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "2e46ecc1-2d69-4152-8e31-4b41cbfc7c58",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 393,
|
||||
"trimY": 295,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"end_x.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "d506451a-fe7c-41c7-9f9b-d2ad917c686c",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 443,
|
||||
"width": 96,
|
||||
"height": 36,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 36,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"end_y.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "709465e6-c307-4b75-9fcc-a2da8ac2344a",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 639,
|
||||
"trimY": 99,
|
||||
"width": 35,
|
||||
"height": 96,
|
||||
"rawWidth": 35,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"shan1.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "7e7eda60-8ffb-448c-8335-db3202b032ae",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 393,
|
||||
"trimY": 393,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"shan2.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "871cad33-3cc9-4493-8955-ff9b846eccda",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 491,
|
||||
"trimY": 295,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"shan3.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "24a982e4-dd9b-402a-b7e3-99604269ab75",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 491,
|
||||
"trimY": 393,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"shan4.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "2ea9f5b0-2ba0-4c1c-a891-76ee23e107dc",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 589,
|
||||
"trimY": 295,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"start.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "bcddfc22-50b3-4d39-ab5f-ed3fbec0f9a7",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 589,
|
||||
"trimY": 393,
|
||||
"width": 96,
|
||||
"height": 96,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"start_x.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "76a60b7f-4c56-43e3-bd0c-2068fe3e6114",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": true,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 639,
|
||||
"trimY": 1,
|
||||
"width": 96,
|
||||
"height": 36,
|
||||
"rawWidth": 96,
|
||||
"rawHeight": 36,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"start_y.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "1b0a613a-1291-468a-9bae-538cd32610e5",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 615,
|
||||
"trimY": 197,
|
||||
"width": 35,
|
||||
"height": 96,
|
||||
"rawWidth": 35,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"turn_wawe.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "9409beb3-6467-4b06-be3e-1b74f13ca499",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 1,
|
||||
"trimY": 1,
|
||||
"width": 146,
|
||||
"height": 146,
|
||||
"rawWidth": 146,
|
||||
"rawHeight": 146,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
},
|
||||
"vertical_wave.png": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "153f1f33-91bf-4f36-a33f-f042a187c02e",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 99,
|
||||
"trimY": 149,
|
||||
"width": 24,
|
||||
"height": 138,
|
||||
"rawWidth": 24,
|
||||
"rawHeight": 138,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"spriteType": "normal",
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/resources/UI/publicUI.png
Normal file
After Width: | Height: | Size: 68 KiB |
38
assets/resources/UI/publicUI.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 1353,
|
||||
"height": 196,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"publicUI": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e96fcc50-b08c-429f-a71d-054aa5cb5f44",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 686,
|
||||
"height": 490,
|
||||
"rawWidth": 686,
|
||||
"rawHeight": 490,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/resources/UI/turn_wawe.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
38
assets/resources/UI/turn_wawe.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "d7c204b8-0179-40c7-b370-12c199c53dcb",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 146,
|
||||
"height": 146,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"turn_wawe": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e0dbc420-4ecd-4fc3-b83d-0aad6bbc1759",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "d7c204b8-0179-40c7-b370-12c199c53dcb",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 9,
|
||||
"trimY": 9,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"rawWidth": 146,
|
||||
"rawHeight": 146,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/resources/UI/turn_wawe2.png
Normal file
After Width: | Height: | Size: 11 KiB |
38
assets/resources/UI/turn_wawe2.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "bc65aeab-56af-4990-b2b9-de2b91bb9e6f",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 179,
|
||||
"height": 179,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"turn_wawe2": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "d9b04dd4-b22c-4268-bf73-ac34fda14bc5",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "bc65aeab-56af-4990-b2b9-de2b91bb9e6f",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0.5,
|
||||
"trimX": 24,
|
||||
"trimY": 25,
|
||||
"width": 131,
|
||||
"height": 128,
|
||||
"rawWidth": 179,
|
||||
"rawHeight": 179,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/resources/UI/vertical_wave.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
38
assets/resources/UI/vertical_wave.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "c2027677-6969-4f9d-a273-2828f1d3048c",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 24,
|
||||
"height": 138,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"vertical_wave": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "a6bbf444-2576-4c4c-a579-8d6fdcd5f724",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "c2027677-6969-4f9d-a273-2828f1d3048c",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 24,
|
||||
"height": 138,
|
||||
"rawWidth": 24,
|
||||
"rawHeight": 138,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/resources/UI/vertical_wave2.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
38
assets/resources/UI/vertical_wave2.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "c3041d36-0084-4c37-b905-f7367bdd37cb",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 8,
|
||||
"height": 118,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"vertical_wave2": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e8ddc240-81ef-4d7f-a7c4-8c3ee4b94b4f",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "c3041d36-0084-4c37-b905-f7367bdd37cb",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 8,
|
||||
"height": 118,
|
||||
"rawWidth": 8,
|
||||
"rawHeight": 118,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
BIN
assets/resources/UI/vertical_wave3.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
38
assets/resources/UI/vertical_wave3.png.meta
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "ac13d46e-7c59-4656-a2e3-c47daa6d69ad",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 8,
|
||||
"height": 128,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"vertical_wave3": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "5ae8f70d-1d21-404e-bb05-5d4ddddda803",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "ac13d46e-7c59-4656-a2e3-c47daa6d69ad",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -0.5,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 7,
|
||||
"height": 128,
|
||||
"rawWidth": 8,
|
||||
"rawHeight": 128,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
3
creator.d.ts
vendored
|
@ -6818,7 +6818,8 @@ declare namespace cc {
|
|||
}
|
||||
/** !#en Class for sprite atlas handling.
|
||||
!#zh 精灵图集资源类。 */
|
||||
export class SpriteAtlas extends Asset {
|
||||
export class SpriteAtlas extends Asset {
|
||||
_spriteFrames: any;
|
||||
/**
|
||||
Returns the texture of the sprite atlas
|
||||
*/
|
||||
|
|
28
library/imports/02/02faa74f-fcb3-4c62-9ad7-c5bdabcd2a0a.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "e4",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
295,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/07/07fa5951-49b1-4fa4-8667-27999003939a.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "c4",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
321,
|
||||
197,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/15/153f1f33-91bf-4f36-a33f-f042a187c02e.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "vertical_wave",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
99,
|
||||
149,
|
||||
24,
|
||||
138
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
24,
|
||||
138
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/16/161fc949-beff-4d21-bc00-3f6d4b5bf8cf.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "d2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
517,
|
||||
197,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/1b/1b0a613a-1291-468a-9bae-538cd32610e5.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "start_y",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
615,
|
||||
197,
|
||||
35,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
35,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/24/24a982e4-dd9b-402a-b7e3-99604269ab75.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "shan3",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
491,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/29/29f62c24-67af-4b1b-b3cc-584a5c91ff2c.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "b1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
345,
|
||||
1,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/2b/2baf15e3-231e-4851-9681-6d910da26990.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "c3",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
223,
|
||||
197,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/2e/2e46ecc1-2d69-4152-8e31-4b41cbfc7c58.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "end",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
393,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/2e/2ea9f5b0-2ba0-4c1c-a891-76ee23e107dc.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "shan4",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
589,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/2f/2f298196-7f29-49e9-b4ad-5eff919e844b.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "a3",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
247,
|
||||
1,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
4525
library/imports/40/4083be8e-2350-48c4-8beb-6df4c6173240.json
Normal file
28
library/imports/44/44b01cef-9743-4335-ba0a-e94013b44962.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "c2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
125,
|
||||
197,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["assets\\Script\\Load.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACM,IAAA,KAAwC,EAAE,CAAC,UAAU,EAApD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,gBAAgB,sBAAiB,CAAC;AAG5D;IAAsC,4BAAY;IAAlD;QAAA,qEAmCC;QAhCG,eAAS,GAAY,KAAK,CAAC;QAG3B,uBAAiB,GAAW,OAAO,CAAC;QAGpC,iBAAW,GAAa,IAAI,CAAC;;IA0BjC,CAAC;IAxBG,wBAAK,GAAL;QACI,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,sCAAsC;QACtC,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC;IACrD,CAAC;IAED,cAAc;IACd,4BAAS,GAAT;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACnC,uCAAuC;IAC3C,CAAC;IACD,gBAAgB;IAChB,2BAAQ,GAAR,UAAS,KAAK,EAAC,IAAI;QACf,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;IACP,2BAAQ,GAAR;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAES,yBAAM,GAAhB,UAAiB,EAAU;IAC3B,CAAC;IA/BD;QADC,QAAQ,CAAC,KAAK,CAAC;+CACW;IAG3B;QADC,QAAQ,CAAC,EAAE,CAAC;uDACuB;IAGpC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;iDACU;IATZ,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAmC5B;IAAD,eAAC;CAnCD,AAmCC,CAnCqC,EAAE,CAAC,SAAS,GAmCjD;kBAnCoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["\r\nconst {ccclass, property, requireComponent} = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n\r\n @property(false)\r\n localTest: boolean = false;\r\n\r\n @property(\"\")\r\n clientTestVersion: string = \"1.0.0\";\r\n\r\n @property(cc.Label)\r\n testVersion: cc.Label = null;\r\n\r\n start () {\r\n window.initMgr();\r\n cc.fx.GameConfig.init(this.localTest);\r\n // cc.fx.AudioManager.Instance.init();\r\n this.testVersion.string = this.clientTestVersion;\r\n }\r\n\r\n //开始游戏,跳转至引导页面\r\n startGame(){\r\n cc.director.loadScene(\"GameScene\");\r\n // cc.director.loadScene(\"GuideScene\");\r\n }\r\n //备用,用来测试跳转 指定关卡\r\n clickBtn(event,data){\r\n cc.fx.GameConfig.GM_INFO.custom = parseInt(data);\r\n cc.director.loadScene(\"GameScene\");\r\n } \r\n //打开排行榜\r\n openRank(){\r\n cc.director.loadScene(\"RankScene\");\r\n }\r\n \r\n protected update(dt: number): void {\r\n }\r\n}\r\n"]}
|
||||
{"version":3,"sources":["assets\\Script\\Load.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACM,IAAA,KAAwC,EAAE,CAAC,UAAU,EAApD,OAAO,aAAA,EAAE,QAAQ,cAAA,EAAE,gBAAgB,sBAAiB,CAAC;AAG5D;IAAsC,4BAAY;IAAlD;QAAA,qEAoCC;QAjCG,eAAS,GAAY,KAAK,CAAC;QAG3B,uBAAiB,GAAW,OAAO,CAAC;QAGpC,iBAAW,GAAa,IAAI,CAAC;;IA2BjC,CAAC;IAzBG,wBAAK,GAAL;QACI,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,sCAAsC;QACtC,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC;IAErD,CAAC;IAED,cAAc;IACd,4BAAS,GAAT;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACnC,uCAAuC;IAC3C,CAAC;IACD,gBAAgB;IAChB,2BAAQ,GAAR,UAAS,KAAK,EAAC,IAAI;QACf,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjD,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IACD,OAAO;IACP,2BAAQ,GAAR;QACI,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAES,yBAAM,GAAhB,UAAiB,EAAU;IAC3B,CAAC;IAhCD;QADC,QAAQ,CAAC,KAAK,CAAC;+CACW;IAG3B;QADC,QAAQ,CAAC,EAAE,CAAC;uDACuB;IAGpC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;iDACU;IATZ,QAAQ;QAD5B,OAAO;OACa,QAAQ,CAoC5B;IAAD,eAAC;CApCD,AAoCC,CApCqC,EAAE,CAAC,SAAS,GAoCjD;kBApCoB,QAAQ","file":"","sourceRoot":"/","sourcesContent":["\r\nconst {ccclass, property, requireComponent} = cc._decorator;\r\n\r\n@ccclass\r\nexport default class NewClass extends cc.Component {\r\n\r\n @property(false)\r\n localTest: boolean = false;\r\n\r\n @property(\"\")\r\n clientTestVersion: string = \"1.0.0\";\r\n\r\n @property(cc.Label)\r\n testVersion: cc.Label = null;\r\n\r\n start () {\r\n window.initMgr();\r\n cc.fx.GameConfig.init(this.localTest);\r\n // cc.fx.AudioManager.Instance.init();\r\n this.testVersion.string = this.clientTestVersion;\r\n\r\n }\r\n\r\n //开始游戏,跳转至引导页面\r\n startGame(){\r\n cc.director.loadScene(\"GameScene\");\r\n // cc.director.loadScene(\"GuideScene\");\r\n }\r\n //备用,用来测试跳转 指定关卡\r\n clickBtn(event,data){\r\n cc.fx.GameConfig.GM_INFO.custom = parseInt(data);\r\n cc.director.loadScene(\"GameScene\");\r\n } \r\n //打开排行榜\r\n openRank(){\r\n cc.director.loadScene(\"RankScene\");\r\n }\r\n \r\n protected update(dt: number): void {\r\n }\r\n}\r\n"]}
|
28
library/imports/4c/4cb4f3da-0231-462a-893e-a90b00089fdb.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "e5",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
295,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -243,10 +243,10 @@
|
|||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 7
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 9
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 13
|
||||
|
@ -333,7 +333,14 @@
|
|||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 7
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
|
@ -345,8 +352,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 0,
|
||||
"height": 0
|
||||
"width": 750,
|
||||
"height": 1660
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -358,7 +365,7 @@
|
|||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-212.867,
|
||||
-163,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
@ -382,6 +389,65 @@
|
|||
"groupIndex": 0,
|
||||
"_id": "78Sk802p9L/Ip+ZPEFbJnp"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "57395957-a96b-4a27-8e2a-696e24d876a2"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "a7G3fclnNGYZw1JYGBEqqT"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
"_target": null,
|
||||
"_alignFlags": 1,
|
||||
"_left": 0,
|
||||
"_right": 0,
|
||||
"_top": 0,
|
||||
"_bottom": 0,
|
||||
"_verticalCenter": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
"_isAbsRight": true,
|
||||
"_isAbsTop": true,
|
||||
"_isAbsBottom": true,
|
||||
"_isAbsHorizontalCenter": true,
|
||||
"_isAbsVerticalCenter": true,
|
||||
"_originalWidth": 0,
|
||||
"_originalHeight": 0,
|
||||
"_id": "09dO2/INxCTpBHqQOmB0wt"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Top",
|
||||
|
@ -393,7 +459,7 @@
|
|||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -449,7 +515,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 7
|
||||
"__id__": 9
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
|
@ -478,11 +544,7 @@
|
|||
"_parent": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
|
@ -537,106 +599,12 @@
|
|||
"groupIndex": 0,
|
||||
"_id": "06lLY+o7JLroayKmx/xx6g"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Sprite(Splash)",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 9
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 11
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 100
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
144,
|
||||
48,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_skewX": 0,
|
||||
"_skewY": 0,
|
||||
"_is3DNode": false,
|
||||
"_groupIndex": 0,
|
||||
"groupIndex": 0,
|
||||
"_id": "b8PeJwfoJCZ4akcYG0a8KJ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_id": "a8B+cCNkdBJrgVNc11pHi+"
|
||||
},
|
||||
{
|
||||
"__type__": "2234assp7RIvpDgrnqljp2R",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 9
|
||||
"__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"_id": "50KCMOG4tFJYPBI6jue4rZ"
|
||||
|
@ -4233,7 +4201,7 @@
|
|||
},
|
||||
"_enabled": true,
|
||||
"Map": {
|
||||
"__id__": 9
|
||||
"__id__": 11
|
||||
},
|
||||
"Block": {
|
||||
"__uuid__": "c930d64e-2707-474f-b691-6220e2932ddd"
|
||||
|
|
28
library/imports/57/57395957-a96b-4a27-8e2a-696e24d876a2.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "bg2",
|
||||
"texture": "c71bf634-8b0b-4e7a-9c82-7ec6173bc5bb",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
750,
|
||||
1660
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
750,
|
||||
1660
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/5a/5ae8f70d-1d21-404e-bb05-5d4ddddda803.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "vertical_wave3",
|
||||
"texture": "ac13d46e-7c59-4656-a2e3-c47daa6d69ad",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
7,
|
||||
128
|
||||
],
|
||||
"offset": [
|
||||
-0.5,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
8,
|
||||
128
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -37,7 +37,9 @@ window.initMgr = function () {
|
|||
cc.fx.Message = {
|
||||
control: "10001",
|
||||
startGame: "10002",
|
||||
next: "10003" //传递执行下一个格子洪水流过
|
||||
next: "10003",
|
||||
changePath: "10004",
|
||||
changeMap: "10005" //改变那地图
|
||||
};
|
||||
/*
|
||||
* 客户端埋点分享类型
|
||||
|
|
28
library/imports/70/709465e6-c307-4b75-9fcc-a2da8ac2344a.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "end_y",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
639,
|
||||
99,
|
||||
35,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
35,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
29
library/imports/76/76a60b7f-4c56-43e3-bd0c-2068fe3e6114.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "start_x",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
639,
|
||||
1,
|
||||
96,
|
||||
36
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
36
|
||||
],
|
||||
"rotated": 1,
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/7e/7e7eda60-8ffb-448c-8335-db3202b032ae.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "shan1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
393,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/82/82bfa81b-1f1a-48eb-b099-e95301a18b12.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "b4",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
149,
|
||||
99,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/85/856884c2-0caa-4a9a-80a7-a70579d9aa0e.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "e3",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
197,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/87/871cad33-3cc9-4493-8955-ff9b846eccda.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "shan2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
491,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/8e/8e56f0ab-ead9-40ba-990e-1e82c9d20326.png
Normal file
After Width: | Height: | Size: 68 KiB |
28
library/imports/94/9409beb3-6467-4b06-be3e-1b74f13ca499.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "turn_wawe",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1,
|
||||
1,
|
||||
146,
|
||||
146
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
146,
|
||||
146
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
116
library/imports/98/9830637c-e4e3-4df5-8d51-fc49b7d715b4.json
Normal file
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
"__type__": "cc.SpriteAtlas",
|
||||
"_name": "publicUI.plist",
|
||||
"_objFlags": 0,
|
||||
"_native": "",
|
||||
"_spriteFrames": {
|
||||
"a0": {
|
||||
"__uuid__": "da7d9bdf-9fd7-4fae-8134-8f0d1db1c899"
|
||||
},
|
||||
"a1": {
|
||||
"__uuid__": "b76603e2-c166-4ce9-af37-417cdedde12e"
|
||||
},
|
||||
"a2": {
|
||||
"__uuid__": "9c52c504-63b0-4df2-9469-ef172f9f08f9"
|
||||
},
|
||||
"a3": {
|
||||
"__uuid__": "2f298196-7f29-49e9-b4ad-5eff919e844b"
|
||||
},
|
||||
"a4": {
|
||||
"__uuid__": "cd733e9d-b900-4cad-a590-13b0ffd9f2bf"
|
||||
},
|
||||
"b1": {
|
||||
"__uuid__": "29f62c24-67af-4b1b-b3cc-584a5c91ff2c"
|
||||
},
|
||||
"b2": {
|
||||
"__uuid__": "9c57b027-f2a1-41e8-8cff-2d0774b4ff1d"
|
||||
},
|
||||
"b3": {
|
||||
"__uuid__": "aa0a56f4-7e8b-4e9a-ba0d-cd75b5f04b33"
|
||||
},
|
||||
"b4": {
|
||||
"__uuid__": "82bfa81b-1f1a-48eb-b099-e95301a18b12"
|
||||
},
|
||||
"block1": {
|
||||
"__uuid__": "a867e23c-0cb2-4e4c-8b56-6d767ba3e3a7"
|
||||
},
|
||||
"block2": {
|
||||
"__uuid__": "e06f7c0f-f9f3-43ac-93f0-fee5ed6cf026"
|
||||
},
|
||||
"block_Bg": {
|
||||
"__uuid__": "f76f3659-5f49-4743-8a58-db0adfccd455"
|
||||
},
|
||||
"c1": {
|
||||
"__uuid__": "c01c7783-54ca-426a-b44e-173f4dba8a8a"
|
||||
},
|
||||
"c2": {
|
||||
"__uuid__": "44b01cef-9743-4335-ba0a-e94013b44962"
|
||||
},
|
||||
"c3": {
|
||||
"__uuid__": "2baf15e3-231e-4851-9681-6d910da26990"
|
||||
},
|
||||
"c4": {
|
||||
"__uuid__": "07fa5951-49b1-4fa4-8667-27999003939a"
|
||||
},
|
||||
"d1": {
|
||||
"__uuid__": "98c1725e-902b-4645-a3ea-6bc3bf4233a3"
|
||||
},
|
||||
"d2": {
|
||||
"__uuid__": "161fc949-beff-4d21-bc00-3f6d4b5bf8cf"
|
||||
},
|
||||
"d3": {
|
||||
"__uuid__": "d4cced48-f310-45c1-b6d9-9ffb0a317860"
|
||||
},
|
||||
"e1": {
|
||||
"__uuid__": "ba05db30-6e52-451e-bb43-8761b4a1352f"
|
||||
},
|
||||
"e2": {
|
||||
"__uuid__": "f3037750-dea0-4d93-9011-f3e0e0979861"
|
||||
},
|
||||
"e3": {
|
||||
"__uuid__": "856884c2-0caa-4a9a-80a7-a70579d9aa0e"
|
||||
},
|
||||
"e4": {
|
||||
"__uuid__": "02faa74f-fcb3-4c62-9ad7-c5bdabcd2a0a"
|
||||
},
|
||||
"e5": {
|
||||
"__uuid__": "4cb4f3da-0231-462a-893e-a90b00089fdb"
|
||||
},
|
||||
"end": {
|
||||
"__uuid__": "2e46ecc1-2d69-4152-8e31-4b41cbfc7c58"
|
||||
},
|
||||
"end_x": {
|
||||
"__uuid__": "d506451a-fe7c-41c7-9f9b-d2ad917c686c"
|
||||
},
|
||||
"end_y": {
|
||||
"__uuid__": "709465e6-c307-4b75-9fcc-a2da8ac2344a"
|
||||
},
|
||||
"shan1": {
|
||||
"__uuid__": "7e7eda60-8ffb-448c-8335-db3202b032ae"
|
||||
},
|
||||
"shan2": {
|
||||
"__uuid__": "871cad33-3cc9-4493-8955-ff9b846eccda"
|
||||
},
|
||||
"shan3": {
|
||||
"__uuid__": "24a982e4-dd9b-402a-b7e3-99604269ab75"
|
||||
},
|
||||
"shan4": {
|
||||
"__uuid__": "2ea9f5b0-2ba0-4c1c-a891-76ee23e107dc"
|
||||
},
|
||||
"start": {
|
||||
"__uuid__": "bcddfc22-50b3-4d39-ab5f-ed3fbec0f9a7"
|
||||
},
|
||||
"start_x": {
|
||||
"__uuid__": "76a60b7f-4c56-43e3-bd0c-2068fe3e6114"
|
||||
},
|
||||
"start_y": {
|
||||
"__uuid__": "1b0a613a-1291-468a-9bae-538cd32610e5"
|
||||
},
|
||||
"turn_wawe": {
|
||||
"__uuid__": "9409beb3-6467-4b06-be3e-1b74f13ca499"
|
||||
},
|
||||
"vertical_wave": {
|
||||
"__uuid__": "153f1f33-91bf-4f36-a33f-f042a187c02e"
|
||||
}
|
||||
}
|
||||
}
|
28
library/imports/98/98c1725e-902b-4645-a3ea-6bc3bf4233a3.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "d1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
419,
|
||||
197,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/9c/9c52c504-63b0-4df2-9469-ef172f9f08f9.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "a2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1,
|
||||
247,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/9c/9c57b027-f2a1-41e8-8cff-2d0774b4ff1d.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "b2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
443,
|
||||
1,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/a6/a6bbf444-2576-4c4c-a579-8d6fdcd5f724.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "vertical_wave",
|
||||
"texture": "c2027677-6969-4f9d-a273-2828f1d3048c",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
24,
|
||||
138
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
24,
|
||||
138
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/a8/a867e23c-0cb2-4e4c-8b56-6d767ba3e3a7.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "block1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
247,
|
||||
99,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/aa/aa0a56f4-7e8b-4e9a-ba0d-cd75b5f04b33.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "b3",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
541,
|
||||
1,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/ac/ac13d46e-7c59-4656-a2e3-c47daa6d69ad.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
|
@ -49,15 +49,15 @@ var GameManager = /** @class */ (function (_super) {
|
|||
this.block_Array = [];
|
||||
this.path_Array = [];
|
||||
this.map_Array = [];
|
||||
this.map_Array = cc.fx.GameConfig.LEVEL_INFO[0][0].map;
|
||||
this.map_Hight = 0;
|
||||
this.map_Width = 0;
|
||||
var arr = cc.fx.GameConfig.LEVEL_INFO[0][0].map;
|
||||
//将地图x,y轴切换
|
||||
for (var m = 0; m < Math.floor(this.map_Array.length / 2); m++) {
|
||||
for (var n = 0; n < this.map_Array[m].length; n++) {
|
||||
var temp = this.map_Array[m][n];
|
||||
this.map_Array[m][n] = this.map_Array[n][m];
|
||||
this.map_Array[n][m] = temp;
|
||||
}
|
||||
}
|
||||
this.map_Array = arr[0].map(function (item, i) {
|
||||
return arr.map(function (val) { return val[i]; });
|
||||
});
|
||||
this.map_Width = this.map_Array.length;
|
||||
this.map_Hight = this.map_Array[0].length;
|
||||
for (var i = 0; i < this.map_Array.length; i++) {
|
||||
for (var j = 0; j < this.map_Array[i].length; j++) {
|
||||
var block = cc.instantiate(this.Block);
|
||||
|
@ -65,7 +65,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
block.getComponent("Block").initData(this.map_Array[i][j]);
|
||||
if (this.map_Array[i][j] == cc.Enum(Block_1.BlockType).Start)
|
||||
this.path_Array.push(cc.v3(i, j, cc.Enum(Block_1.BlockType).Nomal));
|
||||
block.setPosition(cc.v2(-block.width * 1.5 + i * block.width, block.height * 1.5 - j * block.height));
|
||||
block.setPosition(cc.v2(-block.width * 2.5 + i * block.width, block.height * 4 - j * block.height));
|
||||
this.block_Array.push(block);
|
||||
}
|
||||
}
|
||||
|
@ -88,44 +88,15 @@ var GameManager = /** @class */ (function (_super) {
|
|||
this.path_Array.push(cc.v3(start.x + 1, start.y, cc.Enum(Block_1.BlockType).Nomal));
|
||||
break;
|
||||
case "reinforce":
|
||||
this.path_Array.push(cc.v3(0, 0, cc.Enum(Block_1.BlockType).Reinforce));
|
||||
this.path_Array.push(cc.v3(start.x, start.y, cc.Enum(Block_1.BlockType).Reinforce));
|
||||
break;
|
||||
case "soil":
|
||||
this.path_Array.push(cc.v3(0, 0, cc.Enum(Block_1.BlockType).Xi_Soil));
|
||||
this.path_Array.push(cc.v3(start.x, start.y, cc.Enum(Block_1.BlockType).Xi_Soil));
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.runWater(0);
|
||||
};
|
||||
GameManager.prototype.setModel = function () {
|
||||
var time = 0.3;
|
||||
var block2 = this.node.getChildByName("Block1").getChildByName("icon").getComponent(cc.Sprite);
|
||||
var block = this.node.getChildByName("Block2").getChildByName("icon").getComponent(cc.Sprite);
|
||||
var head = this.node.getChildByName("Head");
|
||||
var block3 = this.node.getChildByName("Block3").getChildByName("icon").getComponent(cc.Sprite);
|
||||
var block4 = this.node.getChildByName("Block4").getChildByName("icon").getComponent(cc.Sprite);
|
||||
cc.tween(head)
|
||||
.to(time, { position: cc.v3(-48, 48, 0) })
|
||||
.to(time, { rotation: -90 })
|
||||
.to(time, { position: cc.v3(-144, 48, 0) })
|
||||
.to(time, { rotation: -180 })
|
||||
.start();
|
||||
cc.tween(block)
|
||||
.delay(time)
|
||||
.to(time, { fillRange: 0.25 })
|
||||
.start();
|
||||
cc.tween(block2)
|
||||
.to(time, { fillRange: 1 })
|
||||
.start();
|
||||
cc.tween(block3)
|
||||
.delay(time * 2)
|
||||
.to(time, { fillRange: 1 })
|
||||
.start();
|
||||
cc.tween(block4)
|
||||
.delay(time * 3)
|
||||
.to(time, { fillRange: 0.25 })
|
||||
.start();
|
||||
};
|
||||
//开始执行洪峰来了的动画
|
||||
GameManager.prototype.runWater = function (order) {
|
||||
order = parseInt(order);
|
||||
|
@ -135,34 +106,246 @@ var GameManager = /** @class */ (function (_super) {
|
|||
var circulate = true;
|
||||
if (order == this.path_Array.length - 1) {
|
||||
circulate = false;
|
||||
direction = this.getDirection(order - 1);
|
||||
if (direction == "up" || direction == "right_up" || direction == "left_up") {
|
||||
direction = "up";
|
||||
}
|
||||
else if (direction == "down" || direction == "left_down" || direction == "right_down") {
|
||||
direction = "down";
|
||||
}
|
||||
else if (direction == "left" || direction == "up_left" || direction == "down_left") {
|
||||
direction = "left";
|
||||
}
|
||||
else if (direction == "right" || direction == "up_right" || direction == "down_right") {
|
||||
direction = "right";
|
||||
}
|
||||
direction = "End";
|
||||
// if(direction == "up" || direction == "right_up" || direction == "left_up"){
|
||||
// direction = "up";
|
||||
// }
|
||||
// else if(direction == "down" || direction == "left_down" || direction == "right_down"){
|
||||
// direction = "down";
|
||||
// }
|
||||
// else if(direction == "left" || direction == "up_left" || direction == "down_left"){
|
||||
// direction = "left";
|
||||
// }
|
||||
// else if(direction == "right" || direction == "up_right" || direction == "down_right"){
|
||||
// direction = "right";
|
||||
// }
|
||||
}
|
||||
else {
|
||||
direction = this.getDirection(order);
|
||||
if (this.path_Array[order].z == 6 && order + 1 < this.path_Array.length) {
|
||||
direction = "Reinforce";
|
||||
i = this.path_Array[order + 1].x * this.map_Array[0].length + this.path_Array[order + 1].y;
|
||||
}
|
||||
else if (order + 1 < this.path_Array.length) {
|
||||
if (this.path_Array[order + 1].z == 5) {
|
||||
direction = "Xi_Soil";
|
||||
}
|
||||
else {
|
||||
direction = this.getDirection(order);
|
||||
}
|
||||
}
|
||||
else {
|
||||
direction = this.getDirection(order);
|
||||
}
|
||||
}
|
||||
// console.log(order,this.path_Array[order].x,this.path_Array[order].y,i);
|
||||
var jg = this.getBoundary(order, this.path_Array[order].x, this.path_Array[order].y, direction);
|
||||
if (direction == "" || jg == false)
|
||||
return;
|
||||
var target = this.block_Array[i].getComponent("Block");
|
||||
// console.log("步骤:",order,"方向",direction);
|
||||
target.setPath(direction);
|
||||
if (order > 0 && order < this.path_Array.length - 1) {
|
||||
if (this.path_Array[order + 1].z == 5) {
|
||||
this.set_Soil(order + 1);
|
||||
circulate = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
var data = {
|
||||
order: order,
|
||||
time: 0.3,
|
||||
time: 0.2,
|
||||
type: this.path_Array[order].z,
|
||||
circulate: circulate
|
||||
};
|
||||
target.runWater(data);
|
||||
}
|
||||
};
|
||||
//判断边界。或者撞山,或者湿地没有加固
|
||||
GameManager.prototype.getBoundary = function (order, x, y, direction) {
|
||||
var jg = true;
|
||||
if (x < 0 || x >= this.map_Width || y < 0 || y >= this.map_Hight) {
|
||||
jg = false;
|
||||
console.log("超过边界,游戏结束");
|
||||
alert("超过边界,游戏结束");
|
||||
}
|
||||
else {
|
||||
var i = this.path_Array[order].x * this.map_Array[0].length + this.path_Array[order].y;
|
||||
var target = this.block_Array[i].getComponent("Block");
|
||||
if (target.block_Type == 3) {
|
||||
jg = false;
|
||||
console.log("修筑山峰,游戏结束");
|
||||
alert("修筑山峰,游戏结束");
|
||||
}
|
||||
else if (target.block_Type == 2 && direction != "Reinforce") {
|
||||
jg = false;
|
||||
console.log("修筑未加固湿地,游戏结束");
|
||||
alert("修筑未加固湿地,游戏结束");
|
||||
}
|
||||
}
|
||||
return jg;
|
||||
};
|
||||
//获取息壤的格子的方向
|
||||
GameManager.prototype.getXi_Soil = function (order) {
|
||||
var direction = null;
|
||||
//如果息壤后面还有下一步的话
|
||||
if (order + 1 < this.path_Array.length) {
|
||||
direction = this.getDirection(order);
|
||||
if (direction == "up" || direction == "right_up" || direction == "left_up") {
|
||||
direction = "up";
|
||||
}
|
||||
else if (direction == "down" || direction == "left_down" || direction == "right_down") {
|
||||
direction = "down";
|
||||
}
|
||||
else if (direction == "left" || direction == "up_left" || direction == "down_left") {
|
||||
direction = "left";
|
||||
}
|
||||
else if (direction == "right" || direction == "up_right" || direction == "down_right") {
|
||||
direction = "right";
|
||||
}
|
||||
}
|
||||
return direction;
|
||||
};
|
||||
//设置息壤
|
||||
GameManager.prototype.set_Soil = function (order) {
|
||||
var direction = this.getXi_Soil(order);
|
||||
var length = 0;
|
||||
if (direction == "right") {
|
||||
length = this.map_Width - 1;
|
||||
for (var i = this.path_Array[order].x; i <= length; i++) {
|
||||
var n = i * this.map_Array[0].length + this.path_Array[order].y;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (target.block_Type == 3) {
|
||||
length = i - 1;
|
||||
i = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (direction == "left") {
|
||||
length = 0;
|
||||
for (var i = this.path_Array[order].x; i >= length; i--) {
|
||||
var n = i * this.map_Array[0].length + this.path_Array[order].y;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (target.block_Type == 3) {
|
||||
length = i + 1;
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (direction == "up") {
|
||||
length = 0;
|
||||
for (var i = this.path_Array[order].y; i >= length; i--) {
|
||||
var n = this.path_Array[order].x * this.map_Array[0].length + i;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (target.block_Type == 3) {
|
||||
length = i + 1;
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (direction == "down") {
|
||||
length = this.map_Hight - 1;
|
||||
for (var i = this.path_Array[order].y; i <= length; i++) {
|
||||
var n = this.path_Array[order].x * this.map_Array[0].length + i;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (target.block_Type == 3) {
|
||||
length = i - 1;
|
||||
i = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.soil_Find(direction, order, length);
|
||||
};
|
||||
//查找息壤蛮遗憾路径
|
||||
GameManager.prototype.soil_Find = function (direction, order, length) {
|
||||
var start = this.path_Array[order].x;
|
||||
if (direction == "right") {
|
||||
for (var i = start; i <= length; i++) {
|
||||
var n = i * this.map_Array[0].length + this.path_Array[order].y;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (i == start)
|
||||
target.set_Xi_SoilType(this.getDirection(order), null);
|
||||
else {
|
||||
var jg = null;
|
||||
if (i == length) {
|
||||
var number = i - start - 1;
|
||||
this.changePath(order, number, false);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction, jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (direction == "left") {
|
||||
for (var i = start; i >= length; i--) {
|
||||
var n = i * this.map_Array[0].length + this.path_Array[order].y;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (i == start)
|
||||
target.set_Xi_SoilType(this.getDirection(order), null);
|
||||
else {
|
||||
var jg = null;
|
||||
if (i == length) {
|
||||
var number = i - start + 1;
|
||||
this.changePath(order, number, false);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction, jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (direction == "up") {
|
||||
start = this.path_Array[order].y;
|
||||
for (var i = start; i >= length; i--) {
|
||||
var n = this.path_Array[order].x * this.map_Array[0].length + i;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (i == start)
|
||||
target.set_Xi_SoilType(this.getDirection(order), null);
|
||||
else {
|
||||
var jg = null;
|
||||
if (i == length) {
|
||||
var number = i - start + 1;
|
||||
this.changePath(order, number, true);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction, jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (direction == "down") {
|
||||
start = this.path_Array[order].y;
|
||||
for (var i = start; i <= length; i++) {
|
||||
var n = this.path_Array[order].x * this.map_Array[0].length + i;
|
||||
var target = this.block_Array[n].getComponent("Block");
|
||||
if (i == start)
|
||||
target.set_Xi_SoilType(this.getDirection(order), null);
|
||||
else {
|
||||
var jg = null;
|
||||
if (i == length) {
|
||||
var number = i - start - 1;
|
||||
this.changePath(order, number, true);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction, jg);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
//息壤过后改变修筑路径
|
||||
GameManager.prototype.changePath = function (order, number, direction) {
|
||||
for (var i = (order + 1); i < this.path_Array.length; i++) {
|
||||
if (!direction)
|
||||
this.path_Array[i].x += (number);
|
||||
else
|
||||
this.path_Array[i].y += (number);
|
||||
}
|
||||
// // this.path_Array[data-1].x = 5;
|
||||
// this.path_Array[data].x = 5;
|
||||
};
|
||||
GameManager.prototype.changeMap = function (data) {
|
||||
};
|
||||
//获取洪峰方向
|
||||
GameManager.prototype.getDirection = function (order) {
|
||||
var name = "";
|
||||
|
@ -171,7 +354,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
var nextX = this.path_Array[order + 1].x - this.path_Array[order].x;
|
||||
var nextY = this.path_Array[order].y - this.path_Array[order + 1].y;
|
||||
//在底边
|
||||
if (this.path_Array[order].y == this.map_Array.length - 1) {
|
||||
if (this.path_Array[order].y == this.map_Array[0].length - 1) {
|
||||
if (nextX == 0) {
|
||||
if (nextY == 1)
|
||||
name = "up";
|
||||
|
@ -210,7 +393,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
name = "err";
|
||||
}
|
||||
//在右边
|
||||
else if (this.path_Array[order].x == this.map_Array[0].length - 1) {
|
||||
else if (this.path_Array[order].x == this.map_Array.length - 1) {
|
||||
if (nextX == 0) {
|
||||
if (nextY == 1)
|
||||
name = "left_up";
|
||||
|
@ -225,12 +408,21 @@ var GameManager = /** @class */ (function (_super) {
|
|||
}
|
||||
//不是第一步,已经走过一步
|
||||
else if (order > 0) {
|
||||
var next = 1;
|
||||
if (order + 2 < this.path_Array.length) {
|
||||
if (this.path_Array[order + 1].z == 6)
|
||||
next = 2;
|
||||
}
|
||||
//用于判断此点的上一个点,是为了判断当前方块洪水七点,以及下一个移动方向,判断洪终点方向
|
||||
var nextX = this.path_Array[order + 1].x - this.path_Array[order].x;
|
||||
var nextY = this.path_Array[order].y - this.path_Array[order + 1].y;
|
||||
var nextX = this.path_Array[order + next].x - this.path_Array[order].x;
|
||||
var nextY = this.path_Array[order].y - this.path_Array[order + next].y;
|
||||
var previousX = this.path_Array[order].x - this.path_Array[order - 1].x;
|
||||
var previousY = this.path_Array[order - 1].y - this.path_Array[order].y;
|
||||
if (previousX == 0 && previousY == 1) {
|
||||
if (previousX == 0 && previousY == 0) {
|
||||
previousX = this.path_Array[order].x - this.path_Array[order - 2].x;
|
||||
previousY = this.path_Array[order - 2].y - this.path_Array[order].y;
|
||||
}
|
||||
if (previousX == 0 && previousY >= 1) {
|
||||
if (nextX == 0) {
|
||||
if (nextY == 1)
|
||||
name = "up";
|
||||
|
@ -242,7 +434,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
else if (nextX == -1)
|
||||
name = "up_left";
|
||||
}
|
||||
else if (previousX == 0 && previousY == -1) {
|
||||
else if (previousX == 0 && previousY <= -1) {
|
||||
if (nextX == 0) {
|
||||
if (nextY == 1)
|
||||
name = "err";
|
||||
|
@ -254,7 +446,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
else if (nextX == -1)
|
||||
name = "down_left";
|
||||
}
|
||||
else if (previousX == 1 && previousY == 0) {
|
||||
else if (previousX >= 1 && previousY == 0) {
|
||||
if (nextX == 0) {
|
||||
if (nextY == 1)
|
||||
name = "right_up";
|
||||
|
@ -266,7 +458,7 @@ var GameManager = /** @class */ (function (_super) {
|
|||
else if (nextX == -1)
|
||||
name = "err";
|
||||
}
|
||||
else if (previousX == -1 && previousY == 0) {
|
||||
else if (previousX <= -1 && previousY == 0) {
|
||||
if (nextX == 0) {
|
||||
if (nextY == 1)
|
||||
name = "left_up";
|
||||
|
@ -378,11 +570,15 @@ var GameManager = /** @class */ (function (_super) {
|
|||
cc.fx.Notifications.on(cc.fx.Message.control, this.clickSun, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.next, this.runWater, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.startGame, this.startGame, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.changePath, this.changePath, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.changeMap, this.changeMap, this);
|
||||
};
|
||||
GameManager.prototype.onDisable = function () {
|
||||
cc.fx.Notifications.off(cc.fx.Message.control, this.clickSun);
|
||||
cc.fx.Notifications.off(cc.fx.Message.next, this.runWater);
|
||||
cc.fx.Notifications.off(cc.fx.Message.startGame, this.startGame);
|
||||
cc.fx.Notifications.off(cc.fx.Message.changePath, this.changePath);
|
||||
cc.fx.Notifications.off(cc.fx.Message.changeMap, this.changeMap);
|
||||
};
|
||||
GameManager.prototype.update = function (dt) {
|
||||
};
|
||||
|
|
28
library/imports/b7/b76603e2-c166-4ce9-af37-417cdedde12e.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "a1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
149,
|
||||
1,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/ba/ba05db30-6e52-451e-bb43-8761b4a1352f.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "e1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
99,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/bc/bc65aeab-56af-4990-b2b9-de2b91bb9e6f.png
Normal file
After Width: | Height: | Size: 11 KiB |
28
library/imports/bc/bcddfc22-50b3-4d39-ab5f-ed3fbec0f9a7.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "start",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
589,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/c0/c01c7783-54ca-426a-b44e-173f4dba8a8a.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "c1",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
541,
|
||||
99,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/c2/c2027677-6969-4f9d-a273-2828f1d3048c.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/c3/c3041d36-0084-4c37-b905-f7367bdd37cb.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
|
@ -176,19 +176,26 @@ var GameConfig = /** @class */ (function () {
|
|||
{
|
||||
"id": 1001,
|
||||
"map": [
|
||||
[0, 0, 0, 4],
|
||||
[0, 0, 0, 0],
|
||||
[0, 0, 0, 0],
|
||||
[0, 1, 0, 0]
|
||||
[0, 0, 0, 0, 0, 4],
|
||||
[0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 3, 0, 3, 0],
|
||||
[0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 3, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 2, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0],
|
||||
[0, 1, 0, 0, 0, 0]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1002,
|
||||
"map": [
|
||||
[1, 0, 1, 1],
|
||||
[1, 1, 1, 1],
|
||||
[1, 1, 1, 1],
|
||||
[1, 1, 1, 6]
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 4],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
[0, 1, 0, 0, 0, 0, 0, 0, 0]
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -67,10 +67,15 @@ var PathType;
|
|||
var NewClass = /** @class */ (function (_super) {
|
||||
__extends(NewClass, _super);
|
||||
function NewClass() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
var _this = _super !== null && _super.apply(this, arguments) || this;
|
||||
// LIFE-CYCLE CALLBACKS:
|
||||
_this.UI = null;
|
||||
return _this;
|
||||
// update (dt) {}
|
||||
}
|
||||
NewClass.prototype.onLoad = function () {
|
||||
this.finishi = false;
|
||||
this.pos_Shifting = 0;
|
||||
};
|
||||
NewClass.prototype.start = function () {
|
||||
};
|
||||
|
@ -82,18 +87,96 @@ var NewClass = /** @class */ (function (_super) {
|
|||
else if (type == cc.Enum(BlockType).End) {
|
||||
this.node.color = cc.color(20, 255, 0);
|
||||
}
|
||||
else if (type == cc.Enum(BlockType).Nunja) {
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e5"];
|
||||
}
|
||||
else if (type == cc.Enum(BlockType).Peak) {
|
||||
var random = Math.floor(Math.random() * 4 + 1);
|
||||
var name = "shan" + random;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
};
|
||||
NewClass.prototype.setPath = function (type) {
|
||||
this.path_Type = type;
|
||||
};
|
||||
NewClass.prototype.set_Xi_SoilType = function (direction, end) {
|
||||
var _this = this;
|
||||
console.log("息壤", direction);
|
||||
if (this.block_Type == cc.Enum(BlockType).Nunja) {
|
||||
this.block_Type = cc.Enum(BlockType).Nomal;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block_Bg"];
|
||||
}
|
||||
if (end != null) {
|
||||
setTimeout(function () {
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next, (end + 1));
|
||||
}, 1000);
|
||||
}
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
var target = this.node.getChildByName("Xi_Soil");
|
||||
this.path_Type = direction;
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5, { opacity: 255 })
|
||||
.to(0.5, { opacity: 0 })
|
||||
.call(function () {
|
||||
if (direction != null && end == null) {
|
||||
var data = {
|
||||
order: 0,
|
||||
time: 0.2,
|
||||
type: 0,
|
||||
circulate: false
|
||||
};
|
||||
_this.runWater(data);
|
||||
}
|
||||
})
|
||||
.start();
|
||||
};
|
||||
//洪峰执行
|
||||
NewClass.prototype.runWater = function (data) {
|
||||
if (this.path_Type == "err") {
|
||||
setTimeout(function () {
|
||||
if (data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next, order);
|
||||
}, data.time);
|
||||
return;
|
||||
}
|
||||
//如果双向都占用了还进来就算死了-
|
||||
if (this.node.getChildByName("vertical").active == true && this.node.getChildByName("horizontal").active == true) {
|
||||
alert("河道已经交叉,不能再通过");
|
||||
return;
|
||||
}
|
||||
else if (this.node.getChildByName("turn").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil) {
|
||||
alert("河道过弯处,不能再交叉河道");
|
||||
return;
|
||||
}
|
||||
var target = null;
|
||||
var progress = 1;
|
||||
var time = data.time;
|
||||
var order = data.order + 1;
|
||||
var random = Math.floor(Math.random() * 4 + 1);
|
||||
target = this.node.getChildByName("vertical");
|
||||
console.log(this.path_Type);
|
||||
var water1 = target.getChildByName("wave").getChildByName("water1");
|
||||
var water2 = target.getChildByName("wave").getChildByName("water2");
|
||||
var water3 = target.getChildByName("wave").getChildByName("water3");
|
||||
var timeDelay = 0.15;
|
||||
water1.runAction(cc.sequence(cc.moveTo(0.6, cc.v2(water1.x, 120)), cc.delayTime(timeDelay), cc.callFunc(function () {
|
||||
water1.y = -120;
|
||||
})).repeatForever());
|
||||
water2.runAction(cc.sequence(cc.moveTo(0.6, cc.v2(water2.x, 120)), cc.delayTime(timeDelay), cc.callFunc(function () {
|
||||
water2.y = -120;
|
||||
})).repeatForever());
|
||||
water3.runAction(cc.sequence(cc.moveTo(0.6, cc.v2(water3.x, 120)), cc.delayTime(timeDelay), cc.callFunc(function () {
|
||||
water3.y = -120;
|
||||
})).repeatForever());
|
||||
var name = "a" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
if (target.active == true) {
|
||||
target = this.node.getChildByName("horizontal");
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
// console.log(this.path_Type,data.order);
|
||||
if (this.path_Type == cc.Enum(PathType).up) {
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).down) {
|
||||
|
@ -101,61 +184,137 @@ var NewClass = /** @class */ (function (_super) {
|
|||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).left) {
|
||||
target.angle = 90;
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).right) {
|
||||
target.angle = 270;
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
else {
|
||||
target = this.node.getChildByName("turn");
|
||||
var water_1 = target.getChildByName("wave").getChildByName("water");
|
||||
water_1.opacity = 0;
|
||||
water_1.runAction(cc.sequence(cc.rotateTo(7.2, -1080), cc.delayTime(0)).repeatForever());
|
||||
setTimeout(function () {
|
||||
water_1.opacity = 255;
|
||||
}, 200);
|
||||
name = "c" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
progress = 0.25;
|
||||
if (this.path_Type == cc.Enum(PathType).up_left) {
|
||||
target.setPosition(-9, -9);
|
||||
target.setPosition(-this.pos_Shifting, -this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).up_right) {
|
||||
target.scaleX = -1;
|
||||
target.setPosition(9, -9);
|
||||
target.setPosition(this.pos_Shifting, -this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).down_left) {
|
||||
target.angle = 180;
|
||||
target.scaleX = -1;
|
||||
target.setPosition(-9, 9);
|
||||
target.setPosition(-this.pos_Shifting, this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).down_right) {
|
||||
target.angle = 180;
|
||||
target.scaleX = 1;
|
||||
target.setPosition(9, 9);
|
||||
target.setPosition(this.pos_Shifting, this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).left_up) {
|
||||
target.angle = -90;
|
||||
target.scaleY = -1;
|
||||
target.setPosition(9, 9);
|
||||
target.setPosition(this.pos_Shifting, this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).left_down) {
|
||||
target.angle = 90;
|
||||
target.scaleY = -1;
|
||||
target.setPosition(-9, -9);
|
||||
target.setPosition(-this.pos_Shifting, -this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).right_up) {
|
||||
target.angle = -90;
|
||||
// target.scaleY = -1;
|
||||
target.setPosition(-9, 9);
|
||||
target.setPosition(-this.pos_Shifting, this.pos_Shifting);
|
||||
}
|
||||
else if (this.path_Type == cc.Enum(PathType).right_down) {
|
||||
target.angle = -90;
|
||||
target.scaleX = -1;
|
||||
target.setPosition(-9, -9);
|
||||
target.setPosition(-this.pos_Shifting, -this.pos_Shifting);
|
||||
}
|
||||
}
|
||||
target.active = true;
|
||||
target.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(target.getComponent(cc.Sprite))
|
||||
.to(time, { fillRange: progress })
|
||||
.call(function () {
|
||||
if (data.circulate)
|
||||
if (this.path_Type == "Reinforce") {
|
||||
console.log(data.order);
|
||||
target = this.node.getChildByName("Reinforce");
|
||||
this.block_Type = cc.Enum(BlockType).Reinforce;
|
||||
this.node.getChildByName("vertical").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e1"];
|
||||
this.node.getChildByName("turn").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e3"];
|
||||
this.node.getChildByName("horizontal").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e2"];
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
progress = 1;
|
||||
cc.tween(target)
|
||||
.to(time, { opacity: 255 })
|
||||
.call(function () {
|
||||
if (data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.changeMap, order);
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next, order);
|
||||
})
|
||||
.start();
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if (this.path_Type == "Xi_Soil") {
|
||||
target.active = false;
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
target = this.node.getChildByName("Xi_Soil");
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5, { opacity: 255 })
|
||||
.to(0.5, { opacity: 0 })
|
||||
.call(function () {
|
||||
if (data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next, order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if (this.path_Type == "End") {
|
||||
target.active = false;
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
target = this.node.getChildByName("End");
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5, { opacity: 255 })
|
||||
.call(function () {
|
||||
console.log("游戏结束");
|
||||
// if(data.circulate)
|
||||
// cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else {
|
||||
target.active = true;
|
||||
if (this.block_Type != cc.Enum(BlockType).Xi_Soil) {
|
||||
target.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(target.getComponent(cc.Sprite))
|
||||
.to(time, { fillRange: progress })
|
||||
.call(function () {
|
||||
if (data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next, order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else {
|
||||
target.opacity = 0;
|
||||
target.getComponent(cc.Sprite).fillRange = 1;
|
||||
cc.tween(target)
|
||||
.to(time, { opacity: 255 })
|
||||
.call(function () {
|
||||
if (data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next, order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
}
|
||||
};
|
||||
__decorate([
|
||||
property(cc.SpriteAtlas)
|
||||
], NewClass.prototype, "UI", void 0);
|
||||
NewClass = __decorate([
|
||||
ccclass
|
||||
], NewClass);
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/c7/c71bf634-8b0b-4e7a-9c82-7ec6173bc5bb.png
Normal file
After Width: | Height: | Size: 129 KiB |
28
library/imports/cd/cd733e9d-b900-4cad-a590-13b0ffd9f2bf.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "a4",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1,
|
||||
345,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/d4/d4cced48-f310-45c1-b6d9-9ffb0a317860.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "d3",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
99,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/d5/d506451a-fe7c-41c7-9f9b-d2ad917c686c.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "end_x",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1,
|
||||
443,
|
||||
96,
|
||||
36
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
36
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": "0,9729,9729,33071,33071,0,0,1"
|
||||
}
|
BIN
library/imports/d7/d7c204b8-0179-40c7-b370-12c199c53dcb.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
28
library/imports/d9/d9b04dd4-b22c-4268-bf73-ac34fda14bc5.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "turn_wawe2",
|
||||
"texture": "bc65aeab-56af-4990-b2b9-de2b91bb9e6f",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
24,
|
||||
25,
|
||||
131,
|
||||
128
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0.5
|
||||
],
|
||||
"originalSize": [
|
||||
179,
|
||||
179
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/da/da7d9bdf-9fd7-4fae-8134-8f0d1db1c899.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "a0",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1,
|
||||
149,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/e0/e06f7c0f-f9f3-43ac-93f0-fee5ed6cf026.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "block2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
345,
|
||||
99,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/e0/e0dbc420-4ecd-4fc3-b83d-0aad6bbc1759.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "turn_wawe",
|
||||
"texture": "d7c204b8-0179-40c7-b370-12c199c53dcb",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
9,
|
||||
9,
|
||||
128,
|
||||
128
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
146,
|
||||
146
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/e8/e8ddc240-81ef-4d7f-a7c4-8c3ee4b94b4f.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "vertical_wave2",
|
||||
"texture": "c3041d36-0084-4c37-b905-f7367bdd37cb",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
8,
|
||||
118
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
8,
|
||||
118
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/e9/e96fcc50-b08c-429f-a71d-054aa5cb5f44.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "publicUI",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
686,
|
||||
490
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
686,
|
||||
490
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/f3/f3037750-dea0-4d93-9011-f3e0e0979861.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "e2",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
197,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/f7/f76f3659-5f49-4743-8a58-db0adfccd455.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "block_Bg",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
443,
|
||||
99,
|
||||
96,
|
||||
96
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
96,
|
||||
96
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -5,10 +5,10 @@
|
|||
"main": true,
|
||||
"url": "app://editor/index.html",
|
||||
"windowType": "dockable",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1280,
|
||||
"height": 672,
|
||||
"x": -8,
|
||||
"y": -8,
|
||||
"width": 1296,
|
||||
"height": 688,
|
||||
"layout": {
|
||||
"type": "dock-h",
|
||||
"children": [
|
||||
|
@ -38,7 +38,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 641,
|
||||
"width": 638.9896240234375,
|
||||
"height": 556.3333740234375,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
|
@ -47,7 +47,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"width": 415,
|
||||
"width": 417,
|
||||
"height": 556.3333740234375,
|
||||
"type": "panel",
|
||||
"active": 0,
|
||||
|
@ -66,7 +66,7 @@
|
|||
"cocos-services"
|
||||
]
|
||||
},
|
||||
" common-asset-worker-worker": {}
|
||||
"window-1721382905887": {}
|
||||
},
|
||||
"panels": {
|
||||
"builder": {
|
||||
|
|
|
@ -244,6 +244,10 @@
|
|||
"d8vKRljyRIqaGUyKrK/M8p",
|
||||
"3bl+uYG3NFPbPnwoeRy9IT",
|
||||
"18kkByH6hCGYGlkcLdXww4",
|
||||
"9fuGW0Qm1Mi7w6MEPzI7c1"
|
||||
"9fuGW0Qm1Mi7w6MEPzI7c1",
|
||||
"06lLY+o7JLroayKmx/xx6g",
|
||||
"aaCHXmUqpPDK0miPfV73oz",
|
||||
"e6TQOnoadA5bFalBpcwBh6",
|
||||
"95b+2SvxJC/6F3ipBBRyL3"
|
||||
]
|
||||
}
|
||||
|
|