Browse Source

GameSceneRoleCard

0224995 1 month ago
parent
commit
aaad16e721

+ 239 - 0
assets/Animation/shadowScale.anim

@@ -0,0 +1,239 @@
+[
+  {
+    "__type__": "cc.AnimationClip",
+    "_name": "shadowScale",
+    "_objFlags": 0,
+    "__editorExtras__": {
+      "embeddedPlayerGroups": []
+    },
+    "_native": "",
+    "sample": 60,
+    "speed": 1,
+    "wrapMode": 1,
+    "enableTrsBlending": false,
+    "_duration": 2.5,
+    "_hash": 500763545,
+    "_tracks": [
+      {
+        "__id__": 1
+      }
+    ],
+    "_exoticAnimation": null,
+    "_events": [
+      {
+        "frame": 0,
+        "func": "",
+        "params": []
+      },
+      {
+        "frame": 0,
+        "func": "",
+        "params": []
+      },
+      {
+        "frame": 0,
+        "func": "aniStart",
+        "params": []
+      },
+      {
+        "frame": 2.5,
+        "func": "",
+        "params": []
+      },
+      {
+        "frame": 2.5,
+        "func": "aniEnd",
+        "params": []
+      }
+    ],
+    "_embeddedPlayers": [],
+    "_additiveSettings": {
+      "__id__": 11
+    },
+    "_auxiliaryCurveEntries": []
+  },
+  {
+    "__type__": "cc.animation.VectorTrack",
+    "_binding": {
+      "__type__": "cc.animation.TrackBinding",
+      "path": {
+        "__id__": 2
+      },
+      "proxy": null
+    },
+    "_channels": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      },
+      {
+        "__id__": 9
+      }
+    ],
+    "_nComponents": 3
+  },
+  {
+    "__type__": "cc.animation.TrackPath",
+    "_paths": [
+      "scale"
+    ]
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 4
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [
+      0,
+      2.5
+    ],
+    "_values": [
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 1,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      },
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 1,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      }
+    ],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 6
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [
+      0,
+      2.5
+    ],
+    "_values": [
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 1,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      },
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 0,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      }
+    ],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 8
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [
+      0,
+      2.5
+    ],
+    "_values": [
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 1,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      },
+      {
+        "__type__": "cc.RealKeyframeValue",
+        "interpolationMode": 0,
+        "tangentWeightMode": 0,
+        "value": 1,
+        "rightTangent": 0,
+        "rightTangentWeight": 1,
+        "leftTangent": 0,
+        "leftTangentWeight": 1,
+        "easingMethod": 0,
+        "__editorExtras__": {
+          "tangentMode": 0
+        }
+      }
+    ],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 10
+    }
+  },
+  {
+    "__type__": "cc.RealCurve",
+    "_times": [],
+    "_values": [],
+    "preExtrapolation": 1,
+    "postExtrapolation": 1
+  },
+  {
+    "__type__": "cc.AnimationClipAdditiveSettings",
+    "enabled": false,
+    "refClip": null
+  }
+]

+ 13 - 0
assets/Animation/shadowScale.anim.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "2.0.3",
+  "importer": "animation-clip",
+  "imported": true,
+  "uuid": "9015f4f2-bbb9-477d-9adc-a7e9d795c18e",
+  "files": [
+    ".cconb"
+  ],
+  "subMetas": {},
+  "userData": {
+    "name": "shadowScale"
+  }
+}

File diff suppressed because it is too large
+ 226 - 154
assets/Scene/GameScene.scene


+ 2 - 0
assets/Script/DataItem/ItemData.ts

@@ -51,5 +51,7 @@ export interface RoleData extends DataBase {
 
     bulletCount: number;
     bulletImg: string;
+
+    consume: number;
 }
 

+ 59 - 6
assets/Script/Game/MyApp/Card.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, Node, Sprite } from 'cc';
+import { _decorator, Animation, Component, Label, Node, ProgressBar, Sprite } from 'cc';
 import { resMgr } from '../../Frames/ResourcesMgr';
 const { ccclass, property } = _decorator;
 
@@ -7,24 +7,77 @@ export class Card extends Component {
     private _lock: Node = null;
     private _label: Node = null;
     private _sprite: Node = null;
+    private _shadow: Node = null;
+    private _oreCount: Node = null;
+    private _consume: Node = null;
+    private _consumeCount: number = null;
+    
+    //是否可以点击
+    clickable: boolean = true;
+    //是否禁用
+    disabled: boolean = false;
+    private _shadow001: Node = null;
     protected onLoad(): void {
         this._lock = this.node.getChildByName("Lock");
         this._label = this.node.getChildByName("Label");
-        this._sprite = this.node.getChildByName("Sprite")
+        this._sprite = this.node.getChildByName("Sprite");
+        this._shadow = this.node.getChildByName("Shadow");
+        this._consume = this.node.getChildByName("Count");
+        this._shadow001 = this.node.getChildByName("Shadow-001");
+        this._oreCount = this.node.parent.parent.getChildByPath("OreSpeed/_oreSpeed");
     }
     start() {
-
+        //这个Card可以使用的条件:clickable === true; disabled === false
+        if(this._shadow001.active){
+            this._shadow001.active = false;
+        }
+        this._consumeCount = Number(this._consume.getComponent(Label).string);
+    }
+    protected update(dt: number): void {
+        const strOreCount: string = this._oreCount.getComponent(Label).string;
+        
+        if (this._consumeCount) {
+            if (Number(strOreCount) <= this._consumeCount) {
+                //开启阴影
+                this._shadow.active = true;
+                //不可点击
+                this.clickable = false;
+            } else {
+                //阴影关闭
+                this._shadow.active = false;
+                //可以点击
+                this.clickable = true;
+            }
+        }
+    }
+    //冷却当中
+    aniPlay(){
+        this._shadow001.active = true;
+        this._shadow001.getComponent(Animation).play();
+    }
+    aniStart(){
+        //如何没被禁用,则动画开始播放的时候,开始禁用
+        if(!this.disabled){
+            this.disabled = true;
+        }
+    }
+    aniEnd(){
+        //如何被禁用,则动画结束播放的时候,不禁用
+        if(this.disabled){
+            this.disabled = false;
+        }
+        this._shadow001.active = false;
     }
 
-    setLock(b: boolean){
+    setLock(b: boolean) {
         this._lock.active = b;
     }
 
-    setlabel(b: boolean){
+    setlabel(b: boolean) {
         this._label.active = b;
     }
 
-    setSprite(name: string){
+    setSprite(name: string) {
         this._sprite.getComponent(Sprite).spriteFrame = resMgr.getSpriteFrame(name);
     }
 

+ 75 - 19
assets/Script/Game/MyApp/GameScene/Bottom.ts

@@ -2,39 +2,95 @@ import { _decorator, Component, Label, Node, Sprite } from 'cc';
 import { ModulerBase } from '../../GameFrameWork/ModulerBase';
 import { GameInfo } from '../../../GameInfo';
 import { resMgr } from '../../../Frames/ResourcesMgr';
+import { messageMgr } from '../../../Frames/MessageMgr';
+import { RoleData } from '../../../DataItem/ItemData';
+import { dataMgr } from '../../../Frames/DataManager';
 const { ccclass, property } = _decorator;
 
 @ccclass('Bottom')
 export class Bottom extends ModulerBase {
-    private _lvNumber: Node = null;
-    private _oreGrade: Node = null;
+    // private _lvNumber: Node = null;
+    // private _oreGrade: Node = null;
     private _oreSpeed: Node = null;
     private _characterSlot: Node = null;
-    private _ownDiamondNum: Node = null;
-    private _needDiamondNum: Node = null;
+    // private _ownDiamondNum: Node = null;
+    // private _needDiamondNum: Node = null;
+
+    // 每多少秒生成多少个矿石
+    private _speed: number = 0;
+    // 初始矿石数量
+    oreCount: number = 10;
+    // 记录时间间隔
+    private _elapsedTime: number = 0;
+    private _roleDts: RoleData[] = null;
     protected onLoad(): void {
-        this._lvNumber = this.node.getChildByPath("labelLevel/_lvNumber");
-        this._oreGrade = this.node.getChildByPath("OreSpeed/_oreGrade");
+        this._roleDts = dataMgr.getAllDataByName("RoleCardData");
+        // this._lvNumber = this.node.getChildByPath("labelLevel/_lvNumber");
+        // this._oreGrade = this.node.getChildByPath("OreSpeed/_oreGrade");
         this._oreSpeed = this.node.getChildByPath("OreSpeed/_oreSpeed");
         this._characterSlot = this.node.getChildByName("CharacterSlot");
-        this._ownDiamondNum = this.node.getChildByPath("Diamond/OwnNumber");
-        this._needDiamondNum = this.node.getChildByPath("Diamond/NeedDiamond/NeedNumber");
+        // this._ownDiamondNum = this.node.getChildByPath("Diamond/_ownNumber");
+        // this._needDiamondNum = this.node.getChildByPath("Diamond/NeedDiamond/_needNumber");
     }
-    
-    init(){
-        this._lvNumber.getComponent(Label).string = String(GameInfo.Instance.getCurlv());
-        this._oreGrade.getComponent(Label).string = `等级:${GameInfo.Instance.getOreGrade()}`;
-        this._oreSpeed.getComponent(Label).string = String(GameInfo.Instance.getOreSpeed()) + "/分钟";
-        this._ownDiamondNum.getComponent(Label).string = String(GameInfo.Instance.getOwnDiamondNum());
-        this._needDiamondNum.getComponent(Label).string = String(GameInfo.Instance.getNeedDiamondNum());
+
+    onStart() {
+        this.getLabel("_lvNumber").string = String(GameInfo.Instance.getCurlv());
+        this.getLabel("_oreGrade").string = `等级:${GameInfo.Instance.getOreGrade()}`;
+        this.getLabel("_ownNumber").string = String(GameInfo.Instance.getOwnDiamondNum());
+        this.getLabel("_needNumber").string = String(GameInfo.Instance.getNeedDiamondNum());
+        this._updateLabel();
+        this._speed = GameInfo.Instance.getOreSpeed();
         this._setRoleImg();
+        //注册消息
+        messageMgr.addEvent("addOreCount", this.onEnemyDeath, this)
+    }
+
+    protected update(dt: number): void {
+        //累加时间
+        this._elapsedTime += dt;
+        //每秒更新
+        if (this._elapsedTime >= 1) {
+            //增加矿石数量
+            this.oreCount += this._speed / 60;
+            //向下取整
+            this.oreCount = Math.ceil(this.oreCount);
+            this._updateLabel();
+            //重置时间间隔
+            this._elapsedTime = 0;
+        }
     }
 
-    private _setRoleImg(){
-        for(let i = 0; i < this._characterSlot.children.length; i++){
+    private _setRoleImg() {
+        for (let i = 0; i < this._characterSlot.children.length; i++) {
             const role: Node = this._characterSlot.children[i];
-            role.getChildByName("Sprite").getComponent(Sprite).spriteFrame =
-             resMgr.getSpriteFrame(GameInfo.Instance.getRoleImgNames()[i])
+            const sprite: Node = role.getChildByName("Sprite");
+            const imgName: string = GameInfo.Instance.getRoleImgNames()[i];
+            sprite.getComponent(Sprite).spriteFrame = resMgr.getSpriteFrame(imgName);
+            for (const roleDt of this._roleDts) {
+                if (roleDt.imgName === imgName) {
+                    const count: Node = role.getChildByName("Count");
+                    if (count.active) {
+                        count.getComponent(Label).string = String(roleDt.consume);
+                    } else {
+                        count.active = true;
+                        count.getComponent(Label).string = String(roleDt.consume);
+                    }
+                }
+            }
+        }
+    }
+
+    onEnemyDeath() {
+        this.oreCount += 3;
+        this._updateLabel();
+    }
+    onReduce(){
+        this.oreCount -= 6;
+        this._updateLabel();
+    }
+    private _updateLabel() {
+        if (this._oreSpeed) {
+            this.getLabel("_oreSpeed").string = String(this.oreCount);
         }
     }
 }

+ 25 - 4
assets/Script/Game/MyApp/GameScene/Enemy.ts

@@ -1,16 +1,21 @@
-import { _decorator, PhysicsGroup, Vec3 } from 'cc';
+import { _decorator, instantiate, Node, PhysicsGroup, tween, Vec3 } from 'cc';
 import { Role, RoleState } from '../Role';
 import { RoleData } from '../../../DataItem/ItemData';
 import { LifeBar } from './LifeBar';
 import { MyRole } from './MyRole';
 import { MyTower } from './MyTower';
+import { resMgr } from '../../../Frames/ResourcesMgr';
+import { messageMgr } from '../../../Frames/MessageMgr';
 const { ccclass, property } = _decorator;
 
 @ccclass('Enemy')
 export class Enemy extends Role {
     private _lifeBar: LifeBar = null;
+    private _isDie: boolean = false;
+    private _orePos: Vec3 = new Vec3(200, 100, 0);
     protected onLoad(): void {
         this._lifeBar = this.node.getComponent(LifeBar);
+        this._isDie = false;
     }
     init(name: string, pos: Vec3, data: RoleData[], dir?: number) {
         super.init(name, pos, data, dir);
@@ -25,14 +30,30 @@ export class Enemy extends Role {
     update(deltaTime: number) {
         super.update(deltaTime);
         //this.stop();
-        if(this._lifeBar._curHp <= 0){
-            super.playAnimation(RoleState.Die)
+        if (this._lifeBar._curHp <= 0) {
+            super.playAnimation(RoleState.Die);
+            if (this._isDie) return;
+            this.createOre();
+            this._isDie = true;
         }
     }
 
+    createOre() {
+        //激活消息
+        messageMgr.dispatch("addOreCount");
+        const ore: Node = instantiate(resMgr.getPrefab("Ore"));
+        ore.parent = this.bulletLayer;
+        ore.position = this.node.position;
+        tween(ore)
+            .delay(0.3)
+            .to(2, { position: this._orePos })
+            .delay(0.3)
+            .call(() => { ore.destroy() })
+            .start();
+    }
+
     stop(): void {
         if (this.node.getWorldPosition().x <= 200) {
-            console.log("i")
             this.isStop = true;
             super.playAnimation(RoleState.Idle);
             //this.playAnimation(RoleState.Attack);

+ 3 - 0
assets/Script/Game/MyApp/GameScene/EnemyMgr.ts

@@ -25,6 +25,9 @@ export class EnemyMgr extends ModulerBase {
     //地图背景
     private _bg: Node = null;
 
+    //角色卡牌消耗量
+    private _cardConsume: Map<string, number> = new Map();
+    
     protected onLoad(): void {
         this._bg = this.node.parent.getChildByName("Bg");
         this._lvDts = dataMgr.getAllDataByName("LevelDt");

+ 5 - 4
assets/Script/Game/MyApp/Role.ts

@@ -25,6 +25,7 @@ export class Role extends Component {
     isStop: boolean = false;
     //攻击目标
     targetNode: Node = null;
+    bulletLayer: Node | null = null;
 
     //战斗系统
     private _attackTimer: number = 0;
@@ -33,7 +34,7 @@ export class Role extends Component {
 
     //子弹
     private _bullet: Node | null = null;
-    private _bulletLayer: Node | null = null;
+    
     private _bulletPool: BulletPool = null;
 
     //动画管理
@@ -52,7 +53,7 @@ export class Role extends Component {
     //状态管理
     _state: RoleState = null;
 
-    protected init(name: string, pos: Vec3, roleDatas: RoleData[], dir?: number) {
+    init(name: string, pos: Vec3, roleDatas: RoleData[], dir?: number) {
         this._bulletPool = this.node.getComponent(BulletPool);
         this._bulletPool.init();
         this._animation = this.node.getComponent(Animation) || this.node.addComponent(Animation);
@@ -94,7 +95,7 @@ export class Role extends Component {
 
         //位置
         this.node.setWorldPosition(pos);
-        this._bulletLayer = find("Canvas/GameRoot/BulletLayer");
+        this.bulletLayer = find("Canvas/GameRoot/BulletLayer");
 
         this._setupPhysics();
     }
@@ -367,7 +368,7 @@ export class Role extends Component {
 
         const isEnemy = this.direction === -1;
         this._bullet = this._bulletPool.getBullet(isEnemy);
-        this._bullet.parent = this._bulletLayer;
+        this._bullet.parent = this.bulletLayer;
         this._bullet.setWorldPosition(this.node.getWorldPosition());
         const bulletTS = this._bullet.getComponent(Bullet);
         bulletTS.reset({

+ 28 - 16
assets/Script/Game/MyApp/TouchGame.ts

@@ -5,6 +5,8 @@ import { dataMgr } from '../../Frames/DataManager';
 import { RoleData } from '../../DataItem/ItemData';
 import { ModulerBase } from '../GameFrameWork/ModulerBase';
 import { MyRole } from './GameScene/MyRole';
+import { Card } from './Card';
+import { Bottom } from './GameScene/Bottom';
 const { ccclass, property } = _decorator;
 
 @ccclass('TouchGame')
@@ -19,7 +21,8 @@ export class TouchGame extends ModulerBase {
     //高亮索引
     private _highLightIdx: number = 0;
     //高亮高度
-    _hight: number = 82;
+    private _hight: number = 82;
+    private _clickedNode: Node = null;
     protected onLoad(): void {
         this._characterSlot = this.node.parent.getChildByName("CharacterSlot");
         this._load = this.node.parent.parent.getChildByName("Road");
@@ -45,19 +48,23 @@ export class TouchGame extends ModulerBase {
         for (const element of this._characterSlot.children) {
             const box: Rect = element.getComponent(UITransform).getBoundingBoxToWorld();
             if (box.contains(pos)) {
-                const img: SpriteFrame = element.getChildByName("Sprite").getComponent(Sprite).spriteFrame;
-                if (!img) {
-                    this._isDragging = false;
-                    return;
-                }
-                if (img) {
-                    this._isDragging = true;
-                    this._dragNode.getComponent(Sprite).spriteFrame = img;
-                    this._dragNode.active = true;
-                    this._imgName = img.name;
-                    this.setDragNodePosition(pos);
-                }
-                break; // 找到一个就停止遍历  
+                this._clickedNode = element;
+                const clickedNodeCom = this._clickedNode.getComponent(Card);
+                if(!clickedNodeCom.disabled && clickedNodeCom.clickable){
+                    const img: SpriteFrame = element.getChildByName("Sprite").getComponent(Sprite).spriteFrame;
+                    if (!img) {
+                        this._isDragging = false;
+                        return;
+                    }
+                    if (img) {
+                        this._isDragging = true;
+                        this._dragNode.getComponent(Sprite).spriteFrame = img;
+                        this._dragNode.active = true;
+                        this._imgName = img.name;
+                        this.setDragNodePosition(pos);
+                    }
+                    break; // 找到一个就停止遍历 
+                } 
             }
         }
     }
@@ -111,8 +118,11 @@ export class TouchGame extends ModulerBase {
         const y = 180 + (this._highLightIdx + 1) * this._hight - this._hight / 2;
         const rolePos: Vec3 = new Vec3(50, y, pos.z)
 
-        roleTS.init(this._imgName, rolePos, this._roleData, 1)
-
+        roleTS.init(this._imgName, rolePos, this._roleData, 1);
+        //消耗矿石
+        this.node.parent.getComponent(Bottom).onReduce();
+        //冷却当中
+        this._clickedNode.getComponent(Card).aniPlay();
         this._dragNode.active = false;
         this._dragNode.getComponent(Sprite).spriteFrame = null;
 
@@ -121,6 +131,8 @@ export class TouchGame extends ModulerBase {
                 element.active = false;
             }
         }
+
+
     }
 
     protected onDestroy(): void {

+ 16 - 16
assets/resources/Data/RoleCardData.csv

@@ -1,16 +1,16 @@
-名称,id,imgName,atk,hp,atkLength,moveSpeed,typeRole,moveCount,moveImg,atkCount,atkImg,idleCount,idleImg,dieCount,dieImg,bulletCount,bulletImg,bulletExplodeCount,bulletExplodeImg
-,number,string,number,number,number,number,string,number,string,number,string,number,string,number,string,number,string,number,string
-Role1,1,Role1,35,400,140,40,water,8,Role1_move_,8,Role1_attack_,8,Role1_idle_,9,Die,4,bullet1_,5,burst3_
-Role2,2,Role2,40,520,135,35,fire,8,Role2_move_,8,Role2_attack_,8,Role2_idle_,9,Die,3,bullet2_,8,burst2_
-Role3,3,Role3,32,480,147,30,wind,8,Role3_move_,8,Role3_attack_,8,Role3_idle_,9,Die,3,bullet3_,5,burst7_
-Role4,4,Role4,25,500,150,38,fire,8,Role4_move_,8,Role4_attack_,8,Role4_idle_,9,Die,1,bullet4_,10,burst6_
-Role5,5,Role5,32,600,145,42,water,8,Role5_move_,8,Role5_attack_,8,Role5_idle_,9,Die,1,bullet5_,6,burst9_
-Role6,6,Role6,28,489,145,40,dark,8,Role6_move_,8,Role6_attack_,8,Role6_idle_,9,Die,4,bullet6_,5,burst7_
-Role7,7,Role7,41,512,157,37,light,8,Role7_move_,8,Role7_attack_,8,Role7_idle_,9,Die,3,bullet7_,11,burst10_
-Role8,8,Role8,100,500,140,41,dark,8,Role8_move_,8,Role8_attack_,8,Role8_idle_,9,Die,3,bullet8_,6,burst9_
-Role9,9,Role9,120,600,140,20,dark,8,Role9_move_,8,Role9_attack_,8,Role9_idle_,9,Die,11,bullet9_,17,burst1_
-Role10,10,Role10,70,700,130,30,dark,8,Role10_move_,8,Role10_attack_,8,Role10_idle_,9,Die,3,bullet8_,6,burst9_
-Role11,11,Role11,80,560,120,25,dark,8,Role11_move_,8,Role11_attack_,8,Role11_idle_,9,Die,3,bullet3_,5,burst7_
-Role12,12,Role12,90,645,160,20,dark,8,Role12_move_,8,Role12_attack_,8,Role12_idle_,9,Die,3,bullet8_,6,burst9_
-Role13,13,Role13,60,850,145,30,dark,8,Role13_move_,8,Role13_attack_,8,Role13_idle_,9,Die,3,bullet10_,6,burst8_
-Role14,14,Role14,75,750,140,50,dark,8,Role14_move_,8,Role14_attack_,8,Role14_idle_,9,Die,1,bullet5_,6,burst9_
+名称,id,imgName,atk,hp,atkLength,moveSpeed,typeRole,moveCount,moveImg,atkCount,atkImg,idleCount,idleImg,dieCount,dieImg,bulletCount,bulletImg,bulletExplodeCount,bulletExplodeImg,consume
+,number,string,number,number,number,number,string,number,string,number,string,number,string,number,string,number,string,number,string,number
+Role1,1,Role1,35,400,140,40,water,8,Role1_move_,8,Role1_attack_,8,Role1_idle_,9,Die,4,bullet1_,5,burst3_,9
+Role2,2,Role2,40,520,135,35,fire,8,Role2_move_,8,Role2_attack_,8,Role2_idle_,9,Die,3,bullet2_,8,burst2_,10
+Role3,3,Role3,32,480,147,30,wind,8,Role3_move_,8,Role3_attack_,8,Role3_idle_,9,Die,3,bullet3_,5,burst7_,11
+Role4,4,Role4,25,500,150,38,fire,8,Role4_move_,8,Role4_attack_,8,Role4_idle_,9,Die,1,bullet4_,10,burst6_,9
+Role5,5,Role5,32,600,145,42,water,8,Role5_move_,8,Role5_attack_,8,Role5_idle_,9,Die,1,bullet5_,6,burst9_,10
+Role6,6,Role6,28,489,145,40,dark,8,Role6_move_,8,Role6_attack_,8,Role6_idle_,9,Die,4,bullet6_,5,burst7_,9
+Role7,7,Role7,41,512,157,37,light,8,Role7_move_,8,Role7_attack_,8,Role7_idle_,9,Die,3,bullet7_,11,burst10_,10
+Role8,8,Role8,100,500,140,41,dark,8,Role8_move_,8,Role8_attack_,8,Role8_idle_,9,Die,3,bullet8_,6,burst9_,11
+Role9,9,Role9,120,600,140,20,dark,8,Role9_move_,8,Role9_attack_,8,Role9_idle_,9,Die,11,bullet9_,17,burst1_,11
+Role10,10,Role10,70,700,130,30,dark,8,Role10_move_,8,Role10_attack_,8,Role10_idle_,9,Die,3,bullet8_,6,burst9_,10
+Role11,11,Role11,80,560,120,25,dark,8,Role11_move_,8,Role11_attack_,8,Role11_idle_,9,Die,3,bullet3_,5,burst7_,9
+Role12,12,Role12,90,645,160,20,dark,8,Role12_move_,8,Role12_attack_,8,Role12_idle_,9,Die,3,bullet8_,6,burst9_,11
+Role13,13,Role13,60,850,145,30,dark,8,Role13_move_,8,Role13_attack_,8,Role13_idle_,9,Die,3,bullet10_,6,burst8_,9
+Role14,14,Role14,75,750,140,50,dark,8,Role14_move_,8,Role14_attack_,8,Role14_idle_,9,Die,1,bullet5_,6,burst9_,9

+ 146 - 0
assets/resources/Res/Prefab/Ore.prefab

@@ -0,0 +1,146 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "Ore",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Ore",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 4
+      }
+    ],
+    "_prefab": {
+      "__id__": 6
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -440,
+      "y": -270,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 3
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 40,
+      "height": 36
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "3cVxsz8qVGvJOqakFeUe17"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 5
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "c00b279f-801e-4e6d-a02e-0a9604678070@0c37c",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "80N71eXmdBzaYeE9SIZzeJ"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a8Dt0FOwZKfYrz6IwXzImE",
+    "targetOverrides": null
+  }
+]

+ 2 - 2
assets/resources/UI/Top.prefab.meta → assets/resources/Res/Prefab/Ore.prefab.meta

@@ -2,12 +2,12 @@
   "ver": "1.1.50",
   "importer": "prefab",
   "imported": true,
-  "uuid": "8c29c2b1-83cd-4050-8893-3478af69d8fc",
+  "uuid": "0b21926a-d2e9-441a-b7ea-02e61c3a2b60",
   "files": [
     ".json"
   ],
   "subMetas": {},
   "userData": {
-    "syncNodeName": "Top"
+    "syncNodeName": "Ore"
   }
 }

+ 0 - 1601
assets/resources/UI/Top.prefab

@@ -1,1601 +0,0 @@
-[
-  {
-    "__type__": "cc.Prefab",
-    "_name": "Top",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_native": "",
-    "data": {
-      "__id__": 1
-    },
-    "optimizationPolicy": 0,
-    "persistent": false
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Top",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": null,
-    "_children": [
-      {
-        "__id__": 2
-      },
-      {
-        "__id__": 24
-      },
-      {
-        "__id__": 46
-      },
-      {
-        "__id__": 52
-      }
-    ],
-    "_active": false,
-    "_components": [
-      {
-        "__id__": 62
-      },
-      {
-        "__id__": 64
-      },
-      {
-        "__id__": 66
-      },
-      {
-        "__id__": 68
-      }
-    ],
-    "_prefab": {
-      "__id__": 70
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 300,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "MyProgressBarBg",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [
-      {
-        "__id__": 3
-      },
-      {
-        "__id__": 9
-      }
-    ],
-    "_active": false,
-    "_components": [
-      {
-        "__id__": 15
-      },
-      {
-        "__id__": 17
-      },
-      {
-        "__id__": 19
-      },
-      {
-        "__id__": 21
-      }
-    ],
-    "_prefab": {
-      "__id__": 23
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": -440,
-      "y": 8,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Bar",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 2
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 4
-      },
-      {
-        "__id__": 6
-      }
-    ],
-    "_prefab": {
-      "__id__": 8
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": -88.621,
-      "y": 19.841000000000008,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 3
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 5
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 250,
-      "height": 15
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "78VrNxUTlBw5R5o9RM5/o9"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 3
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 7
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 41,
-      "g": 255,
-      "b": 0,
-      "a": 255
-    },
-    "_spriteFrame": {
-      "__uuid__": "24a704da-2867-446d-8d1a-5e920c75e09d@f9941",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_type": 1,
-    "_fillType": 0,
-    "_sizeMode": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "37H9mE0x1KOao3JqFRe8BJ"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "52kUnPEbRK56UHxR7VwexK",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Label",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 2
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 10
-      },
-      {
-        "__id__": 12
-      }
-    ],
-    "_prefab": {
-      "__id__": 14
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 52.36900000000014,
-      "y": 19.908000000000015,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 9
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 11
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 0,
-      "height": 50.4
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "68MQwdpMRPn6i8lDIGrIGL"
-  },
-  {
-    "__type__": "cc.Label",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 9
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 13
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_string": "",
-    "_horizontalAlign": 1,
-    "_verticalAlign": 1,
-    "_actualFontSize": 20,
-    "_fontSize": 20,
-    "_fontFamily": "Arial",
-    "_lineHeight": 40,
-    "_overflow": 0,
-    "_enableWrapText": true,
-    "_font": null,
-    "_isSystemFontUsed": true,
-    "_spacingX": 0,
-    "_isItalic": false,
-    "_isBold": false,
-    "_isUnderline": false,
-    "_underlineHeight": 2,
-    "_cacheMode": 0,
-    "_enableOutline": false,
-    "_outlineColor": {
-      "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_outlineWidth": 2,
-    "_enableShadow": false,
-    "_shadowColor": {
-      "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_shadowOffset": {
-      "__type__": "cc.Vec2",
-      "x": 2,
-      "y": 2
-    },
-    "_shadowBlur": 2,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "96RSGcrxlGx5uWhzbOPD00"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "509drj1ItBoI8lZMXum8IB",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 16
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 400,
-      "height": 104
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "026+2l9nNM4J2eP2x/7YtV"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 18
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_spriteFrame": {
-      "__uuid__": "4c686495-1a65-402e-b6cc-7c8967bb3e54@f9941",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_type": 0,
-    "_fillType": 0,
-    "_sizeMode": 1,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "3aVh1PMqZBho9rwbN8sKZZ"
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 20
-    },
-    "_alignFlags": 9,
-    "_target": null,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
-    "_horizontalCenter": 0,
-    "_verticalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_alignMode": 2,
-    "_lockFlags": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "76GIUTctBP35/TXOGuLYNg"
-  },
-  {
-    "__type__": "cc.ProgressBar",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 2
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 22
-    },
-    "_barSprite": {
-      "__id__": 6
-    },
-    "_mode": 0,
-    "_totalLength": 250,
-    "_progress": 1,
-    "_reverse": false,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "0cAMJFo51HF5it95FEQqIC"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "84G6XvWZJPD4GwjHBP7tXu",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "EnemyProgressBarBg",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [
-      {
-        "__id__": 25
-      },
-      {
-        "__id__": 31
-      }
-    ],
-    "_active": false,
-    "_components": [
-      {
-        "__id__": 37
-      },
-      {
-        "__id__": 39
-      },
-      {
-        "__id__": 41
-      },
-      {
-        "__id__": 43
-      }
-    ],
-    "_prefab": {
-      "__id__": 45
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 440,
-      "y": 8,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Bar",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 24
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 26
-      },
-      {
-        "__id__": 28
-      }
-    ],
-    "_prefab": {
-      "__id__": 30
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 86.462,
-      "y": 19.078,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": -1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 25
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 27
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 250,
-      "height": 15
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "a40yiRR5xFCINhJc3PPne1"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 25
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 29
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 228,
-      "g": 5,
-      "b": 5,
-      "a": 255
-    },
-    "_spriteFrame": {
-      "__uuid__": "24a704da-2867-446d-8d1a-5e920c75e09d@f9941",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_type": 1,
-    "_fillType": 0,
-    "_sizeMode": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "98Ij0yavlHaZLNiWx3l8hL"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "16Lw3MNcpGkLgNocaBqPvr",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Label",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 24
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 32
-      },
-      {
-        "__id__": 34
-      }
-    ],
-    "_prefab": {
-      "__id__": 36
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 52.36900000000014,
-      "y": 19.908000000000015,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 31
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 33
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 0,
-      "height": 50.4
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "95V9pFyplBgr89NdvvId/G"
-  },
-  {
-    "__type__": "cc.Label",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 31
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 35
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_string": "",
-    "_horizontalAlign": 1,
-    "_verticalAlign": 1,
-    "_actualFontSize": 20,
-    "_fontSize": 20,
-    "_fontFamily": "Arial",
-    "_lineHeight": 40,
-    "_overflow": 0,
-    "_enableWrapText": true,
-    "_font": null,
-    "_isSystemFontUsed": true,
-    "_spacingX": 0,
-    "_isItalic": false,
-    "_isBold": false,
-    "_isUnderline": false,
-    "_underlineHeight": 2,
-    "_cacheMode": 0,
-    "_enableOutline": false,
-    "_outlineColor": {
-      "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_outlineWidth": 2,
-    "_enableShadow": false,
-    "_shadowColor": {
-      "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
-      "a": 255
-    },
-    "_shadowOffset": {
-      "__type__": "cc.Vec2",
-      "x": 2,
-      "y": 2
-    },
-    "_shadowBlur": 2,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "1fAhNcWnNDTKljb0ptUtZA"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "b53e8wlidCHYkaG5SCCoCS",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 24
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 38
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 400,
-      "height": 104
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "4fDZi4XutMMbhrzI5BCnUa"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 24
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 40
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_spriteFrame": {
-      "__uuid__": "803bf146-0a5c-4819-8d38-e224674f6b11@f9941",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_type": 0,
-    "_fillType": 0,
-    "_sizeMode": 1,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "2bPnFI2xlP9Kq+U6rF9YP/"
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 24
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 42
-    },
-    "_alignFlags": 33,
-    "_target": null,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
-    "_horizontalCenter": 0,
-    "_verticalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_alignMode": 2,
-    "_lockFlags": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "4aLchOtHZEWpijhePyT782"
-  },
-  {
-    "__type__": "cc.ProgressBar",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 24
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 44
-    },
-    "_barSprite": {
-      "__id__": 28
-    },
-    "_mode": 0,
-    "_totalLength": 250,
-    "_progress": 1,
-    "_reverse": false,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "0epoS2JwFBtJKaNgkl0s0O"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "57m5iKFkNIm44kLdlVip/u",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "SmallMap",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 47
-      },
-      {
-        "__id__": 49
-      }
-    ],
-    "_prefab": {
-      "__id__": 51
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 46
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 48
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 320,
-      "height": 120
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "8beeqDkTJNxYe8x34Dl/Zy"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 46
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 50
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_spriteFrame": null,
-    "_type": 0,
-    "_fillType": 0,
-    "_sizeMode": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "fbnAc/PWxKP7LSB2wjYgOK"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "6co1SuST9D6YLdgDNUTbs5",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "Button",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 53
-      },
-      {
-        "__id__": 55
-      },
-      {
-        "__id__": 57
-      },
-      {
-        "__id__": 59
-      }
-    ],
-    "_prefab": {
-      "__id__": 61
-    },
-    "_lpos": {
-      "__type__": "cc.Vec3",
-      "x": -586.4,
-      "y": -84.79999999999998,
-      "z": 0
-    },
-    "_lrot": {
-      "__type__": "cc.Quat",
-      "x": 0,
-      "y": 0,
-      "z": 0,
-      "w": 1
-    },
-    "_lscale": {
-      "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
-      "z": 1
-    },
-    "_mobility": 0,
-    "_layer": 33554432,
-    "_euler": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 52
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 54
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 60.48,
-      "height": 63.36
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "ccRNSalxhGN5yCpfF3eVkU"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 52
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 56
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_spriteFrame": {
-      "__uuid__": "c00b279f-801e-4e6d-a02e-0a9604678070@27b60",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_type": 1,
-    "_fillType": 0,
-    "_sizeMode": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "a1ZGAfZaBOtqNizBTiuW2z"
-  },
-  {
-    "__type__": "cc.Button",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 52
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 58
-    },
-    "clickEvents": [],
-    "_interactable": true,
-    "_transition": 2,
-    "_normalColor": {
-      "__type__": "cc.Color",
-      "r": 214,
-      "g": 214,
-      "b": 214,
-      "a": 255
-    },
-    "_hoverColor": {
-      "__type__": "cc.Color",
-      "r": 211,
-      "g": 211,
-      "b": 211,
-      "a": 255
-    },
-    "_pressedColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_disabledColor": {
-      "__type__": "cc.Color",
-      "r": 124,
-      "g": 124,
-      "b": 124,
-      "a": 255
-    },
-    "_normalSprite": {
-      "__uuid__": "c00b279f-801e-4e6d-a02e-0a9604678070@27b60",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_hoverSprite": null,
-    "_pressedSprite": {
-      "__uuid__": "c00b279f-801e-4e6d-a02e-0a9604678070@12a0b",
-      "__expectedType__": "cc.SpriteFrame"
-    },
-    "_disabledSprite": null,
-    "_duration": 0.1,
-    "_zoomScale": 1.2,
-    "_target": {
-      "__id__": 52
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "83oONv90pKNJxjSQemCjJe"
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 52
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 60
-    },
-    "_alignFlags": 12,
-    "_target": null,
-    "_left": 23.360000000000003,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": -56.48,
-    "_horizontalCenter": 0,
-    "_verticalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_alignMode": 2,
-    "_lockFlags": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "b1yj0xqEFM9otgqPSQflWB"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "c7uOj2WIRFp6AgP2U6HTz8",
-    "instance": null,
-    "targetOverrides": null,
-    "nestedPrefabInstanceRoots": null
-  },
-  {
-    "__type__": "cc.UITransform",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 1
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 63
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 1280,
-      "height": 120
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "142KWOf4xMAbcKiNM8O+oo"
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 1
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 65
-    },
-    "_customMaterial": null,
-    "_srcBlendFactor": 2,
-    "_dstBlendFactor": 4,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_spriteFrame": null,
-    "_type": 0,
-    "_fillType": 0,
-    "_sizeMode": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_useGrayscale": false,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "afY9z6WzBDEaFbB/OKRA3a"
-  },
-  {
-    "__type__": "cc.Widget",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 1
-    },
-    "_enabled": true,
-    "__prefab": {
-      "__id__": 67
-    },
-    "_alignFlags": 1,
-    "_target": null,
-    "_left": 0,
-    "_right": 0,
-    "_top": 0,
-    "_bottom": 0,
-    "_horizontalCenter": 0,
-    "_verticalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
-    "_alignMode": 2,
-    "_lockFlags": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "52F1jjlz5N27wIdwJyrN/1"
-  },
-  {
-    "__type__": "06b61noz+BMxpH/ALaZNzjV",
-    "_name": "",
-    "_objFlags": 0,
-    "__editorExtras__": {},
-    "node": {
-      "__id__": 1
-    },
-    "_enabled": false,
-    "__prefab": {
-      "__id__": 69
-    },
-    "_id": ""
-  },
-  {
-    "__type__": "cc.CompPrefabInfo",
-    "fileId": "79AvzO1+ZGJ4cZ8+nCzJvE"
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__id__": 0
-    },
-    "fileId": "f8eFs6n5FBmLG7J60T+xjc",
-    "targetOverrides": null
-  }
-]

Some files were not shown because too many files changed in this diff