调整目录结构
This commit is contained in:
		
							parent
							
								
									1ec2f0afc0
								
							
						
					
					
						commit
						82192ff664
					
				|  | @ -1,6 +1,6 @@ | ||||||
| import { _decorator, Component, Node } from 'cc'; | import { _decorator, Component, Node } from 'cc'; | ||||||
| import { MapTileType, MapTileTypes } from './MapTileData'; | import { MapTileTypes } from './MapTile/MapTileData'; | ||||||
| import { MapTileNode } from './MapTileNode'; | import { MapTileNode } from './MapTile/MapTileNode'; | ||||||
| const { ccclass, property } = _decorator; | const { ccclass, property } = _decorator; | ||||||
| 
 | 
 | ||||||
| /// 最底层的地图 图层Component
 | /// 最底层的地图 图层Component
 | ||||||
|  |  | ||||||
|  | @ -0,0 +1,9 @@ | ||||||
|  | { | ||||||
|  |   "ver": "1.2.0", | ||||||
|  |   "importer": "directory", | ||||||
|  |   "imported": true, | ||||||
|  |   "uuid": "2e9de9a6-2874-4cba-bb52-b2c87dbf9abd", | ||||||
|  |   "files": [], | ||||||
|  |   "subMetas": {}, | ||||||
|  |   "userData": {} | ||||||
|  | } | ||||||
|  | @ -0,0 +1,14 @@ | ||||||
|  | import { _decorator, Component, Node } from 'cc'; | ||||||
|  | const { ccclass, property } = _decorator; | ||||||
|  | 
 | ||||||
|  | @ccclass('DialogRoot') | ||||||
|  | export class DialogRoot extends Component { | ||||||
|  |     start() { | ||||||
|  | 
 | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     update(deltaTime: number) { | ||||||
|  |          | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | @ -0,0 +1,9 @@ | ||||||
|  | { | ||||||
|  |   "ver": "4.0.23", | ||||||
|  |   "importer": "typescript", | ||||||
|  |   "imported": true, | ||||||
|  |   "uuid": "11718503-cecd-42ad-add9-e4e3abe19e2b", | ||||||
|  |   "files": [], | ||||||
|  |   "subMetas": {}, | ||||||
|  |   "userData": {} | ||||||
|  | } | ||||||
|  | @ -0,0 +1,9 @@ | ||||||
|  | { | ||||||
|  |   "ver": "1.2.0", | ||||||
|  |   "importer": "directory", | ||||||
|  |   "imported": true, | ||||||
|  |   "uuid": "1554040b-ede2-463f-bced-04c443740947", | ||||||
|  |   "files": [], | ||||||
|  |   "subMetas": {}, | ||||||
|  |   "userData": {} | ||||||
|  | } | ||||||
|  | @ -10,10 +10,10 @@ import { | ||||||
|   v3, |   v3, | ||||||
|   Vec3, |   Vec3, | ||||||
| } from "cc"; | } from "cc"; | ||||||
| import { NpkImage } from "../Tool/NPKImage"; | import { NpkImage } from "../../Tool/NPKImage"; | ||||||
| import { MapTileDirection } from "./MapTileData"; | import { MapTileDirection } from "./MapTileData"; | ||||||
| import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite"; | import { BaseSprite } from "../../GlobalScript/CommonComponent/BaseSprite"; | ||||||
| import { DiamondCheck, Point } from "./common/InDiamondCheck"; | import { DiamondCheck, Point } from "./../Common/InDiamondCheck"; | ||||||
| const { ccclass } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| enum buttonState { | enum buttonState { | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| import { _decorator, Component, Node } from "cc"; | import { _decorator, Component, Node } from "cc"; | ||||||
| import { MapTileData, MapTileFactory, MapTileType } from "./MapTileData"; | import { MapTileData, MapTileFactory, MapTileType } from "./MapTileData"; | ||||||
| const { ccclass, property } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| @ccclass("MapTileController") | @ccclass("MapTileController") | ||||||
| export class MapTileController extends Component { | export class MapTileController extends Component { | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| import { Vec2, v2 } from "cc"; | import { Vec2, v2 } from "cc"; | ||||||
| import { NpkImage } from "../Tool/NPKImage"; | import { NpkImage } from "../../Tool/NPKImage"; | ||||||
| /// 地块类型
 | /// 地块类型
 | ||||||
| export enum MapTileType { | export enum MapTileType { | ||||||
|   /// 赫顿玛尔
 |   /// 赫顿玛尔
 | ||||||
|  | @ -1,11 +1,9 @@ | ||||||
| import { _decorator, Node } from "cc"; | import { _decorator, Node } from "cc"; | ||||||
| import { | import { | ||||||
|   MapTileData, |  | ||||||
|   MapTileDirection, |   MapTileDirection, | ||||||
|   MapTileFactory, |  | ||||||
|   MapTileType, |   MapTileType, | ||||||
| } from "./MapTileData"; | } from "./MapTileData"; | ||||||
| import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite"; | import { BaseSprite } from "../../GlobalScript/CommonComponent/BaseSprite"; | ||||||
| import { MapTileButtonComponent } from "./MapTileButtonComponent"; | import { MapTileButtonComponent } from "./MapTileButtonComponent"; | ||||||
| import { MapTileController } from "./MapTileController"; | import { MapTileController } from "./MapTileController"; | ||||||
| const { ccclass } = _decorator; | const { ccclass } = _decorator; | ||||||
|  | @ -0,0 +1,9 @@ | ||||||
|  | { | ||||||
|  |   "ver": "1.2.0", | ||||||
|  |   "importer": "directory", | ||||||
|  |   "imported": true, | ||||||
|  |   "uuid": "026e885d-7022-43db-bdd8-191d81662a0c", | ||||||
|  |   "files": [], | ||||||
|  |   "subMetas": {}, | ||||||
|  |   "userData": {} | ||||||
|  | } | ||||||
|  | @ -1,11 +1,10 @@ | ||||||
| import { _decorator, BlockInputEvents, Button, Color, Director, director, EventMouse, Label, Node, sp, Sprite, UITransform, v2 } from 'cc'; | import { _decorator, BlockInputEvents, Button, Color, Director, director, EventMouse, Label, Node, UITransform, v2 } from 'cc'; | ||||||
| import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite'; | import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite'; | ||||||
| import { NpkImage } from '../Tool/NPKImage'; | import { NpkImage } from '../../Tool/NPKImage'; | ||||||
| import { BaseButton } from '../GlobalScript/CommonComponent/BaseButton'; | import { BaseButton } from '../../GlobalScript/CommonComponent/BaseButton'; | ||||||
| import { AnimationNode } from '../GlobalScript/Animation/AnimationNode'; | import { AnimationNode } from '../../GlobalScript/Animation/AnimationNode'; | ||||||
| import { CharacterType, GamerNode } from './GamerNode'; | import { UIRoot } from '../UIRoot'; | ||||||
| import { UIRoot } from './UIRoot'; | import {CloseButtonNode } from '../Common/CloseButtonNode'; | ||||||
| import {closeButtonNode } from './common/closeButtonNode'; |  | ||||||
| const { ccclass } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| /// 开始游戏按钮界面
 | /// 开始游戏按钮界面
 | ||||||
|  | @ -137,7 +136,7 @@ export class StartGameUINode extends Node { | ||||||
|         this.pressenNode.addChild(imgNode); |         this.pressenNode.addChild(imgNode); | ||||||
| 
 | 
 | ||||||
|         /// 关闭按钮
 |         /// 关闭按钮
 | ||||||
|         const closeNode = new closeButtonNode(this.closeOnTouchEnd.bind(this)); |         const closeNode = new CloseButtonNode(this.closeOnTouchEnd.bind(this)); | ||||||
|         closeNode.setPosition(767,-10); |         closeNode.setPosition(767,-10); | ||||||
|         imgNode.addChild(closeNode); |         imgNode.addChild(closeNode); | ||||||
| 
 | 
 | ||||||
|  | @ -0,0 +1,9 @@ | ||||||
|  | { | ||||||
|  |   "ver": "1.2.0", | ||||||
|  |   "importer": "directory", | ||||||
|  |   "imported": true, | ||||||
|  |   "uuid": "7385a06a-b90d-4a7e-ab36-bf702f6f220e", | ||||||
|  |   "files": [], | ||||||
|  |   "subMetas": {}, | ||||||
|  |   "userData": {} | ||||||
|  | } | ||||||
|  | @ -1,8 +1,8 @@ | ||||||
| import { _decorator, Component, EventMouse, EventTouch, Node, UITransform } from 'cc'; | import { _decorator, EventMouse, Node } from 'cc'; | ||||||
| import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite'; | import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite'; | ||||||
| import { NpkImage } from '../Tool/NPKImage'; | import { NpkImage } from '../../Tool/NPKImage'; | ||||||
| import { BaseButton, BaseButtonState } from '../GlobalScript/CommonComponent/BaseButton'; | import { BaseButton, BaseButtonState } from '../../GlobalScript/CommonComponent/BaseButton'; | ||||||
| import { BaseButtonAction } from '../GlobalScript/CommonComponent/BaseButtonAction'; | import { BaseButtonAction } from '../../GlobalScript/CommonComponent/BaseButtonAction'; | ||||||
| const { ccclass } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| import { _decorator, Color, Director, director, easing, game, Label, Node, Size, Sprite, SpriteFrame, tween, UITransform, VerticalTextAlignment } from 'cc'; | import { _decorator, Color, Label, Node, Size, Sprite, SpriteFrame, tween, UITransform, VerticalTextAlignment } from 'cc'; | ||||||
| import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite'; | import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite'; | ||||||
| import { NpkImage } from '../Tool/NPKImage'; | import { NpkImage } from '../../Tool/NPKImage'; | ||||||
| import { BaseSpriteFrame } from '../GlobalScript/CommonComponent/BaseSpriteFrame'; | import { BaseSpriteFrame } from '../../GlobalScript/CommonComponent/BaseSpriteFrame'; | ||||||
| const { ccclass } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| /// 玩家角色类型
 | /// 玩家角色类型
 | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| import { _decorator, BlockInputEvents, Component, Node, Size, UITransform, v2 } from 'cc'; | import { _decorator, BlockInputEvents, Component, Node, Size, UITransform, v2 } from 'cc'; | ||||||
| import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite'; | import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite'; | ||||||
| import { NpkImage } from '../Tool/NPKImage'; | import { NpkImage } from '../../Tool/NPKImage'; | ||||||
| import { closeButtonNode } from './common/closeButtonNode'; | import { CloseButtonNode } from '../Common/CloseButtonNode'; | ||||||
| const { ccclass, property } = _decorator; | const { ccclass, property } = _decorator; | ||||||
| 
 | 
 | ||||||
| export enum otherWinType{ | export enum otherWinType{ | ||||||
|  | @ -43,7 +43,7 @@ export class OtherWinNode extends Node { | ||||||
|          |          | ||||||
| 
 | 
 | ||||||
|         /// 关闭按钮
 |         /// 关闭按钮
 | ||||||
|         const closeNode = new closeButtonNode(()=>{ |         const closeNode = new CloseButtonNode(()=>{ | ||||||
|             this.active = false; |             this.active = false; | ||||||
|         }); |         }); | ||||||
|         winImgNode.addChild(closeNode); |         winImgNode.addChild(closeNode); | ||||||
|  | @ -6,15 +6,15 @@ import { | ||||||
|   Node, |   Node, | ||||||
|   UITransform, |   UITransform, | ||||||
| } from "cc"; | } from "cc"; | ||||||
| import { StartGameUINode } from "./StartGameUINode"; | import { CharacterType, GamerNode } from "./UINode/GamerNode"; | ||||||
| import { CharacterType, GamerNode } from "./GamerNode"; |  | ||||||
| import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite"; | import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite"; | ||||||
| import { NpkImage } from "../Tool/NPKImage"; | import { NpkImage } from "../Tool/NPKImage"; | ||||||
| import { AnimationNode } from "../GlobalScript/Animation/AnimationNode"; | import { AnimationNode } from "../GlobalScript/Animation/AnimationNode"; | ||||||
| import { BaseButtonState } from "../GlobalScript/CommonComponent/BaseButton"; | import { BaseButtonState } from "../GlobalScript/CommonComponent/BaseButton"; | ||||||
| import { DiceButtonNode } from "./DiceButtonNode"; | import { DiceButtonNode } from "./UINode/DiceButtonNode"; | ||||||
| import { OtherWinNode, otherWinType } from "./OtherWinNode"; | import { OtherWinNode, otherWinType } from "./UINode/OtherWinNode"; | ||||||
| import { BoardRoot } from "./BoardRoot"; | import { BoardRoot } from "./BoardRoot"; | ||||||
|  | import { StartGameUINode } from "./StartGameNode/StartGameUINode"; | ||||||
| const { ccclass } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| @ccclass("UIRoot") | @ccclass("UIRoot") | ||||||
|  | @ -68,7 +68,7 @@ export class UIRoot extends Component { | ||||||
|     this.initDiceButton(); |     this.initDiceButton(); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   /// 初始化加载UI
 |   /// 初始化等待玩家加载UI
 | ||||||
|   initAwaitGamerUI() { |   initAwaitGamerUI() { | ||||||
|     const node = new Node(); |     const node = new Node(); | ||||||
|     node.setPosition(177.5, -244.5); |     node.setPosition(177.5, -244.5); | ||||||
|  | @ -136,6 +136,7 @@ export class UIRoot extends Component { | ||||||
|     this.otherWinNode.active = false; |     this.otherWinNode.active = false; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |   /// 动画结束
 | ||||||
|   aniDone() { |   aniDone() { | ||||||
|     /// 恢复其他胜利按钮的状态
 |     /// 恢复其他胜利按钮的状态
 | ||||||
|     this.diceButton.winButtonComponent.ButtonState = BaseButtonState.Normal; |     this.diceButton.winButtonComponent.ButtonState = BaseButtonState.Normal; | ||||||
|  |  | ||||||
|  | @ -1,11 +1,11 @@ | ||||||
| import { _decorator, Component, Node } from 'cc'; | import { _decorator, Node } from 'cc'; | ||||||
| import { BaseButton } from '../../GlobalScript/CommonComponent/BaseButton'; | import { BaseButton } from '../../GlobalScript/CommonComponent/BaseButton'; | ||||||
| import { NpkImage } from '../../Tool/NPKImage'; | import { NpkImage } from '../../Tool/NPKImage'; | ||||||
| import { BaseButtonAction } from '../../GlobalScript/CommonComponent/BaseButtonAction'; | import { BaseButtonAction } from '../../GlobalScript/CommonComponent/BaseButtonAction'; | ||||||
| const { ccclass, property } = _decorator; | const { ccclass } = _decorator; | ||||||
| 
 | 
 | ||||||
| @ccclass('closeButtonNode') | @ccclass('CloseButtonNode') | ||||||
| export class closeButtonNode extends Node { | export class CloseButtonNode extends Node { | ||||||
| 
 | 
 | ||||||
|     constructor(onMouseLeftUp?:Function){ |     constructor(onMouseLeftUp?:Function){ | ||||||
|         super(); |         super(); | ||||||
|  | @ -26,4 +26,3 @@ export class closeButtonNode extends Node { | ||||||
| 
 | 
 | ||||||
| }  | }  | ||||||
|   |   | ||||||
| 
 |  | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
|   "ver": "4.0.23", |   "ver": "4.0.23", | ||||||
|   "importer": "typescript", |   "importer": "typescript", | ||||||
|   "imported": true, |   "imported": true, | ||||||
|   "uuid": "9860c0fa-a57e-4bc5-9466-5d71cc5026ad", |   "uuid": "84d89628-9eca-40ec-9991-34ad998a1c71", | ||||||
|   "files": [], |   "files": [], | ||||||
|   "subMetas": {}, |   "subMetas": {}, | ||||||
|   "userData": {} |   "userData": {} | ||||||
|  |  | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -1,12 +0,0 @@ | ||||||
| { |  | ||||||
|   "ver": "1.0.1", |  | ||||||
|   "importer": "*", |  | ||||||
|   "imported": true, |  | ||||||
|   "uuid": "a278bd5f-126a-4884-ab22-ebcacc1ec17c", |  | ||||||
|   "files": [ |  | ||||||
|     ".json", |  | ||||||
|     ".pvf" |  | ||||||
|   ], |  | ||||||
|   "subMetas": {}, |  | ||||||
|   "userData": {} |  | ||||||
| } |  | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
|     "_active": true, |     "_active": true, | ||||||
|     "_components": [], |     "_components": [], | ||||||
|     "_prefab": { |     "_prefab": { | ||||||
|       "__id__": 18 |       "__id__": 19 | ||||||
|     }, |     }, | ||||||
|     "_lpos": { |     "_lpos": { | ||||||
|       "__type__": "cc.Vec3", |       "__type__": "cc.Vec3", | ||||||
|  | @ -54,7 +54,7 @@ | ||||||
|     }, |     }, | ||||||
|     "autoReleaseAssets": false, |     "autoReleaseAssets": false, | ||||||
|     "_globals": { |     "_globals": { | ||||||
|       "__id__": 19 |       "__id__": 20 | ||||||
|     }, |     }, | ||||||
|     "_id": "f713b5ea-a70f-486c-8260-0338f089a5b8" |     "_id": "f713b5ea-a70f-486c-8260-0338f089a5b8" | ||||||
|   }, |   }, | ||||||
|  | @ -76,14 +76,14 @@ | ||||||
|     ], |     ], | ||||||
|     "_active": true, |     "_active": true, | ||||||
|     "_components": [ |     "_components": [ | ||||||
|       { |  | ||||||
|         "__id__": 15 |  | ||||||
|       }, |  | ||||||
|       { |       { | ||||||
|         "__id__": 16 |         "__id__": 16 | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         "__id__": 17 |         "__id__": 17 | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         "__id__": 18 | ||||||
|       } |       } | ||||||
|     ], |     ], | ||||||
|     "_prefab": null, |     "_prefab": null, | ||||||
|  | @ -175,7 +175,7 @@ | ||||||
|     "_priority": 0, |     "_priority": 0, | ||||||
|     "_fov": 45, |     "_fov": 45, | ||||||
|     "_fovAxis": 0, |     "_fovAxis": 0, | ||||||
|     "_orthoHeight": 522.7763819095478, |     "_orthoHeight": 509.95129375951296, | ||||||
|     "_near": 0, |     "_near": 0, | ||||||
|     "_far": 1000, |     "_far": 1000, | ||||||
|     "_color": { |     "_color": { | ||||||
|  | @ -452,6 +452,9 @@ | ||||||
|     "_components": [ |     "_components": [ | ||||||
|       { |       { | ||||||
|         "__id__": 14 |         "__id__": 14 | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         "__id__": 15 | ||||||
|       } |       } | ||||||
|     ], |     ], | ||||||
|     "_prefab": null, |     "_prefab": null, | ||||||
|  | @ -506,6 +509,18 @@ | ||||||
|     }, |     }, | ||||||
|     "_id": "28/iYuYk1JyqaQ0l2uDYPY" |     "_id": "28/iYuYk1JyqaQ0l2uDYPY" | ||||||
|   }, |   }, | ||||||
|  |   { | ||||||
|  |     "__type__": "11718UDzs1Cra3Z5OOr4Z4r", | ||||||
|  |     "_name": "", | ||||||
|  |     "_objFlags": 0, | ||||||
|  |     "__editorExtras__": {}, | ||||||
|  |     "node": { | ||||||
|  |       "__id__": 13 | ||||||
|  |     }, | ||||||
|  |     "_enabled": true, | ||||||
|  |     "__prefab": null, | ||||||
|  |     "_id": "d79jn93oZBELG9gxMlR3iL" | ||||||
|  |   }, | ||||||
|   { |   { | ||||||
|     "__type__": "cc.UITransform", |     "__type__": "cc.UITransform", | ||||||
|     "_name": "", |     "_name": "", | ||||||
|  | @ -585,29 +600,29 @@ | ||||||
|   { |   { | ||||||
|     "__type__": "cc.SceneGlobals", |     "__type__": "cc.SceneGlobals", | ||||||
|     "ambient": { |     "ambient": { | ||||||
|       "__id__": 20 |  | ||||||
|     }, |  | ||||||
|     "shadows": { |  | ||||||
|       "__id__": 21 |       "__id__": 21 | ||||||
|     }, |     }, | ||||||
|     "_skybox": { |     "shadows": { | ||||||
|       "__id__": 22 |       "__id__": 22 | ||||||
|     }, |     }, | ||||||
|     "fog": { |     "_skybox": { | ||||||
|       "__id__": 23 |       "__id__": 23 | ||||||
|     }, |     }, | ||||||
|     "octree": { |     "fog": { | ||||||
|       "__id__": 24 |       "__id__": 24 | ||||||
|     }, |     }, | ||||||
|     "skin": { |     "octree": { | ||||||
|       "__id__": 25 |       "__id__": 25 | ||||||
|     }, |     }, | ||||||
|     "lightProbeInfo": { |     "skin": { | ||||||
|       "__id__": 26 |       "__id__": 26 | ||||||
|     }, |     }, | ||||||
|     "postSettings": { |     "lightProbeInfo": { | ||||||
|       "__id__": 27 |       "__id__": 27 | ||||||
|     }, |     }, | ||||||
|  |     "postSettings": { | ||||||
|  |       "__id__": 28 | ||||||
|  |     }, | ||||||
|     "bakedWithStationaryMainLight": false, |     "bakedWithStationaryMainLight": false, | ||||||
|     "bakedWithHighpLightmap": false |     "bakedWithHighpLightmap": false | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue