调整目录结构

This commit is contained in:
DESKTOP-J7I1C4E\a9350 2024-03-19 18:03:50 +08:00
parent 1ec2f0afc0
commit 82192ff664
29 changed files with 131 additions and 72 deletions

View File

@ -1,6 +1,6 @@
import { _decorator, Component, Node } from 'cc';
import { MapTileType, MapTileTypes } from './MapTileData';
import { MapTileNode } from './MapTileNode';
import { MapTileTypes } from './MapTile/MapTileData';
import { MapTileNode } from './MapTile/MapTileNode';
const { ccclass, property } = _decorator;
/// 最底层的地图 图层Component

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "2e9de9a6-2874-4cba-bb52-b2c87dbf9abd",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -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) {
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "11718503-cecd-42ad-add9-e4e3abe19e2b",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "1554040b-ede2-463f-bced-04c443740947",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -10,10 +10,10 @@ import {
v3,
Vec3,
} from "cc";
import { NpkImage } from "../Tool/NPKImage";
import { NpkImage } from "../../Tool/NPKImage";
import { MapTileDirection } from "./MapTileData";
import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite";
import { DiamondCheck, Point } from "./common/InDiamondCheck";
import { BaseSprite } from "../../GlobalScript/CommonComponent/BaseSprite";
import { DiamondCheck, Point } from "./../Common/InDiamondCheck";
const { ccclass } = _decorator;
enum buttonState {

View File

@ -1,6 +1,6 @@
import { _decorator, Component, Node } from "cc";
import { MapTileData, MapTileFactory, MapTileType } from "./MapTileData";
const { ccclass, property } = _decorator;
const { ccclass } = _decorator;
@ccclass("MapTileController")
export class MapTileController extends Component {

View File

@ -1,5 +1,5 @@
import { Vec2, v2 } from "cc";
import { NpkImage } from "../Tool/NPKImage";
import { NpkImage } from "../../Tool/NPKImage";
/// 地块类型
export enum MapTileType {
/// 赫顿玛尔

View File

@ -1,11 +1,9 @@
import { _decorator, Node } from "cc";
import {
MapTileData,
MapTileDirection,
MapTileFactory,
MapTileType,
} from "./MapTileData";
import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite";
import { BaseSprite } from "../../GlobalScript/CommonComponent/BaseSprite";
import { MapTileButtonComponent } from "./MapTileButtonComponent";
import { MapTileController } from "./MapTileController";
const { ccclass } = _decorator;

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "026e885d-7022-43db-bdd8-191d81662a0c",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -1,11 +1,10 @@
import { _decorator, BlockInputEvents, Button, Color, Director, director, EventMouse, Label, Node, sp, Sprite, UITransform, v2 } from 'cc';
import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../Tool/NPKImage';
import { BaseButton } from '../GlobalScript/CommonComponent/BaseButton';
import { AnimationNode } from '../GlobalScript/Animation/AnimationNode';
import { CharacterType, GamerNode } from './GamerNode';
import { UIRoot } from './UIRoot';
import {closeButtonNode } from './common/closeButtonNode';
import { _decorator, BlockInputEvents, Button, Color, Director, director, EventMouse, Label, Node, UITransform, v2 } from 'cc';
import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../../Tool/NPKImage';
import { BaseButton } from '../../GlobalScript/CommonComponent/BaseButton';
import { AnimationNode } from '../../GlobalScript/Animation/AnimationNode';
import { UIRoot } from '../UIRoot';
import {CloseButtonNode } from '../Common/CloseButtonNode';
const { ccclass } = _decorator;
/// 开始游戏按钮界面
@ -137,7 +136,7 @@ export class StartGameUINode extends Node {
this.pressenNode.addChild(imgNode);
/// 关闭按钮
const closeNode = new closeButtonNode(this.closeOnTouchEnd.bind(this));
const closeNode = new CloseButtonNode(this.closeOnTouchEnd.bind(this));
closeNode.setPosition(767,-10);
imgNode.addChild(closeNode);

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "7385a06a-b90d-4a7e-ab36-bf702f6f220e",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -1,8 +1,8 @@
import { _decorator, Component, EventMouse, EventTouch, Node, UITransform } from 'cc';
import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../Tool/NPKImage';
import { BaseButton, BaseButtonState } from '../GlobalScript/CommonComponent/BaseButton';
import { BaseButtonAction } from '../GlobalScript/CommonComponent/BaseButtonAction';
import { _decorator, EventMouse, Node } from 'cc';
import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../../Tool/NPKImage';
import { BaseButton, BaseButtonState } from '../../GlobalScript/CommonComponent/BaseButton';
import { BaseButtonAction } from '../../GlobalScript/CommonComponent/BaseButtonAction';
const { ccclass } = _decorator;

View File

@ -1,7 +1,7 @@
import { _decorator, Color, Director, director, easing, game, Label, Node, Size, Sprite, SpriteFrame, tween, UITransform, VerticalTextAlignment } from 'cc';
import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../Tool/NPKImage';
import { BaseSpriteFrame } from '../GlobalScript/CommonComponent/BaseSpriteFrame';
import { _decorator, Color, Label, Node, Size, Sprite, SpriteFrame, tween, UITransform, VerticalTextAlignment } from 'cc';
import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../../Tool/NPKImage';
import { BaseSpriteFrame } from '../../GlobalScript/CommonComponent/BaseSpriteFrame';
const { ccclass } = _decorator;
/// 玩家角色类型

View File

@ -1,7 +1,7 @@
import { _decorator, BlockInputEvents, Component, Node, Size, UITransform, v2 } from 'cc';
import { BaseSprite } from '../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../Tool/NPKImage';
import { closeButtonNode } from './common/closeButtonNode';
import { BaseSprite } from '../../GlobalScript/CommonComponent/BaseSprite';
import { NpkImage } from '../../Tool/NPKImage';
import { CloseButtonNode } from '../Common/CloseButtonNode';
const { ccclass, property } = _decorator;
export enum otherWinType{
@ -43,7 +43,7 @@ export class OtherWinNode extends Node {
/// 关闭按钮
const closeNode = new closeButtonNode(()=>{
const closeNode = new CloseButtonNode(()=>{
this.active = false;
});
winImgNode.addChild(closeNode);

View File

@ -6,15 +6,15 @@ import {
Node,
UITransform,
} from "cc";
import { StartGameUINode } from "./StartGameUINode";
import { CharacterType, GamerNode } from "./GamerNode";
import { CharacterType, GamerNode } from "./UINode/GamerNode";
import { BaseSprite } from "../GlobalScript/CommonComponent/BaseSprite";
import { NpkImage } from "../Tool/NPKImage";
import { AnimationNode } from "../GlobalScript/Animation/AnimationNode";
import { BaseButtonState } from "../GlobalScript/CommonComponent/BaseButton";
import { DiceButtonNode } from "./DiceButtonNode";
import { OtherWinNode, otherWinType } from "./OtherWinNode";
import { DiceButtonNode } from "./UINode/DiceButtonNode";
import { OtherWinNode, otherWinType } from "./UINode/OtherWinNode";
import { BoardRoot } from "./BoardRoot";
import { StartGameUINode } from "./StartGameNode/StartGameUINode";
const { ccclass } = _decorator;
@ccclass("UIRoot")
@ -68,7 +68,7 @@ export class UIRoot extends Component {
this.initDiceButton();
}
/// 初始化加载UI
/// 初始化等待玩家加载UI
initAwaitGamerUI() {
const node = new Node();
node.setPosition(177.5, -244.5);
@ -136,6 +136,7 @@ export class UIRoot extends Component {
this.otherWinNode.active = false;
}
/// 动画结束
aniDone() {
/// 恢复其他胜利按钮的状态
this.diceButton.winButtonComponent.ButtonState = BaseButtonState.Normal;

View File

@ -1,11 +1,11 @@
import { _decorator, Component, Node } from 'cc';
import { _decorator, Node } from 'cc';
import { BaseButton } from '../../GlobalScript/CommonComponent/BaseButton';
import { NpkImage } from '../../Tool/NPKImage';
import { BaseButtonAction } from '../../GlobalScript/CommonComponent/BaseButtonAction';
const { ccclass, property } = _decorator;
const { ccclass } = _decorator;
@ccclass('closeButtonNode')
export class closeButtonNode extends Node {
@ccclass('CloseButtonNode')
export class CloseButtonNode extends Node {
constructor(onMouseLeftUp?:Function){
super();
@ -24,6 +24,5 @@ export class closeButtonNode extends Node {
}
}
}

View File

@ -2,7 +2,7 @@
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "9860c0fa-a57e-4bc5-9466-5d71cc5026ad",
"uuid": "84d89628-9eca-40ec-9991-34ad998a1c71",
"files": [],
"subMetas": {},
"userData": {}

View File

@ -1,12 +0,0 @@
{
"ver": "1.0.1",
"importer": "*",
"imported": true,
"uuid": "a278bd5f-126a-4884-ab22-ebcacc1ec17c",
"files": [
".json",
".pvf"
],
"subMetas": {},
"userData": {}
}

View File

@ -23,7 +23,7 @@
"_active": true,
"_components": [],
"_prefab": {
"__id__": 18
"__id__": 19
},
"_lpos": {
"__type__": "cc.Vec3",
@ -54,7 +54,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 19
"__id__": 20
},
"_id": "f713b5ea-a70f-486c-8260-0338f089a5b8"
},
@ -76,14 +76,14 @@
],
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
},
{
"__id__": 17
},
{
"__id__": 18
}
],
"_prefab": null,
@ -175,7 +175,7 @@
"_priority": 0,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 522.7763819095478,
"_orthoHeight": 509.95129375951296,
"_near": 0,
"_far": 1000,
"_color": {
@ -452,6 +452,9 @@
"_components": [
{
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": null,
@ -506,6 +509,18 @@
},
"_id": "28/iYuYk1JyqaQ0l2uDYPY"
},
{
"__type__": "11718UDzs1Cra3Z5OOr4Z4r",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": null,
"_id": "d79jn93oZBELG9gxMlR3iL"
},
{
"__type__": "cc.UITransform",
"_name": "",
@ -585,29 +600,29 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 20
},
"shadows": {
"__id__": 21
},
"_skybox": {
"shadows": {
"__id__": 22
},
"fog": {
"_skybox": {
"__id__": 23
},
"octree": {
"fog": {
"__id__": 24
},
"skin": {
"octree": {
"__id__": 25
},
"lightProbeInfo": {
"skin": {
"__id__": 26
},
"postSettings": {
"lightProbeInfo": {
"__id__": 27
},
"postSettings": {
"__id__": 28
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
},