diff --git a/assets/GlobalScript/CommonComponent/BaseSpriteFrame.ts b/assets/GlobalScript/CommonComponent/BaseSpriteFrame.ts index a8dea36..10f8389 100644 --- a/assets/GlobalScript/CommonComponent/BaseSpriteFrame.ts +++ b/assets/GlobalScript/CommonComponent/BaseSpriteFrame.ts @@ -29,7 +29,6 @@ export class BaseSpriteFrame { tex.updateImage(); this._SpriteFrame.texture = tex; this._SpriteFrame.offset = v2(Png.Xpos, -Png.Ypos); - console.log(this._SpriteFrame.offset); this.CallBackFunc(this._SpriteFrame); this.InitState = true; diff --git a/assets/Script.meta b/assets/Script.meta new file mode 100644 index 0000000..66e92df --- /dev/null +++ b/assets/Script.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "c48db437-e006-4733-98c9-041b5842c734", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Script/Pressent.ts b/assets/Script/Pressent.ts new file mode 100644 index 0000000..e6aee29 --- /dev/null +++ b/assets/Script/Pressent.ts @@ -0,0 +1,23 @@ +import { _decorator, Component, Node } from 'cc'; +const { ccclass, property } = _decorator; + +@ccclass('Pressent') +export class Pressent extends Component { + + @property(Node) cancel: Node; + + start() { + this.cancel.on(Node.EventType.TOUCH_END,this.touchEnd,this); + } + + touchEnd(event:Event){ + /// 销毁节点 + this.node.destroy(); + } + + update(deltaTime: number) { + + } +} + + diff --git a/assets/Script/Pressent.ts.meta b/assets/Script/Pressent.ts.meta new file mode 100644 index 0000000..3f8f7d7 --- /dev/null +++ b/assets/Script/Pressent.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "fa300c02-7511-4957-9ad5-a4577f3f1524", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Script/StartGameRoot.ts b/assets/Script/StartGameRoot.ts new file mode 100644 index 0000000..355578f --- /dev/null +++ b/assets/Script/StartGameRoot.ts @@ -0,0 +1,41 @@ +import { _decorator, Button, Component, EventTouch, instantiate, Node, Prefab } from 'cc'; +const { ccclass, property } = _decorator; + +@ccclass('StartGameRoot') +export class StartGameRoot extends Component { + + /// 玩法介绍按钮 + @property(Node) PressenButton: Node; + + /// 玩法介绍UI预制件 + @property(Prefab) pressenPrefab: Prefab; + + //// 开始游戏按钮 + @property(Node) StartButton: Node; + + /// UI层预制件 + @property(Prefab) UIPrefab: Prefab; + + start() { + this.PressenButton.on(Node.EventType.TOUCH_END,this.pressenOnTouchEnd,this); + this.StartButton.on(Node.EventType.TOUCH_END,this.startOnTouchEnd,this); + } + + pressenOnTouchEnd(event:Event){ + const pressent = instantiate(this.pressenPrefab); + this.node.addChild(pressent); + pressent.setPosition(0,0); + } + + startOnTouchEnd(event:Event){ + this.node.destroy(); + const ui = instantiate(this.UIPrefab); + this.node.parent.addChild(ui); + } + + update(deltaTime: number) { + + } +} + + diff --git a/assets/Script/StartGameRoot.ts.meta b/assets/Script/StartGameRoot.ts.meta new file mode 100644 index 0000000..46dab9c --- /dev/null +++ b/assets/Script/StartGameRoot.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "37227f6a-00a4-4840-a07e-025b6be2f27c", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Script/UIRoot.ts b/assets/Script/UIRoot.ts new file mode 100644 index 0000000..4dd76e4 --- /dev/null +++ b/assets/Script/UIRoot.ts @@ -0,0 +1,21 @@ +import { _decorator, assetManager, Component, instantiate, Node, Prefab } from 'cc'; +const { ccclass, property } = _decorator; + +@ccclass('UIRoot') +export class UIRoot extends Component { + + @property({ type: Prefab, displayName: 'Ani帧数', tooltip: "Ani总共有多少帧" }) + startGameRootPrefab:Prefab; + + start() { + + this.node.addChild(instantiate(this.startGameRootPrefab)); + + } + + update(deltaTime: number) { + + } +} + + diff --git a/assets/Script/UIRoot.ts.meta b/assets/Script/UIRoot.ts.meta new file mode 100644 index 0000000..340128d --- /dev/null +++ b/assets/Script/UIRoot.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "a578cd6a-ad34-4875-a305-844b629bc2cc", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/resources/Prefab.meta b/assets/resources/Prefab.meta new file mode 100644 index 0000000..5604621 --- /dev/null +++ b/assets/resources/Prefab.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "eaa1d08a-5e6f-4341-9f6a-8e27ed47b322", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/resources/Prefab/Gamer.prefab b/assets/resources/Prefab/Gamer.prefab new file mode 100644 index 0000000..71177f1 --- /dev/null +++ b/assets/resources/Prefab/Gamer.prefab @@ -0,0 +1,259 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "Gamer", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "Gamer", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 6 + }, + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_prefab": { + "__id__": 12 + }, + "_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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Role", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + } + ], + "_prefab": { + "__id__": 5 + }, + "_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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6206qxk1NFE5QmAvH3zvq1" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "65epnVCaxNSIGMknmNdcpA", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 36 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6XJpShO1IiISvt/47nt+K" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_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": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f1HLPxYllBtLhId3RcwwDZ" + }, + { + "__type__": "a80463xbJJM5qU8FUhHK84e", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/01_ingame.img", + "ImgIndex": 32, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5fuqRs6VlLV6IWVYCnfh42" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "4dIR0b3MJAHIpU7ERJwTWq", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/Prefab/Gamer.prefab.meta b/assets/resources/Prefab/Gamer.prefab.meta new file mode 100644 index 0000000..07cea83 --- /dev/null +++ b/assets/resources/Prefab/Gamer.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "7fb32db3-b3d6-44f1-abaa-f6063c24e07f", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "Gamer" + } +} diff --git a/assets/resources/Prefab/Present.prefab b/assets/resources/Prefab/Present.prefab new file mode 100644 index 0000000..3a09e66 --- /dev/null +++ b/assets/resources/Prefab/Present.prefab @@ -0,0 +1,540 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "Present", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "Present", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 10 + } + ], + "_active": true, + "_components": [ + { + "__id__": 18 + }, + { + "__id__": 20 + }, + { + "__id__": 22 + }, + { + "__id__": 24 + }, + { + "__id__": 26 + } + ], + "_prefab": { + "__id__": 28 + }, + "_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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Sprite", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + } + ], + "_prefab": { + "__id__": 9 + }, + "_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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 36 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5eWu0X+FVNgI5z0WVe7YQ6" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 6 + }, + "_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": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "fc0twlF1lOR4HK7BeyC25p" + }, + { + "__type__": "a80463xbJJM5qU8FUhHK84e", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 8 + }, + "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/00_main.img", + "ImgIndex": 25, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e8MHts9wpBCLjui8vsEugz" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "6f3bSlwHhGTrCoRP/4nXYb", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "CancelButton", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 13 + }, + { + "__id__": 15 + } + ], + "_prefab": { + "__id__": 17 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 368, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 36 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9ct7fqJXZPW72loHtkPyZI" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_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": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "50krRdvUxGV5JwIT29GeY2" + }, + { + "__type__": "227e93p2mxEV5zjvG1ofJkL", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/01_ingame.img", + "NormalImgIndex": 39, + "HoverImgIndex": 40, + "PressImgIndex": 41, + "DisableImgIndex": 42, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "616ESzd7tK6azbhkiSn+wZ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "19a5NWpspNOq0ziWf+VKn3", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 19 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 1067, + "height": 600 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "84kljvQdpCXpvHHsZcsIfi" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 21 + }, + "_type": 0, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d18TIUsPZJNor4depBAoLj" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 23 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "abKlZKzBBOOIS0f81wPKoZ" + }, + { + "__type__": "cc.BlockInputEvents", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 25 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8eYsyz39JAFoU0NowSG2Us" + }, + { + "__type__": "fa300wCdRFJV5rVpFd/PxUk", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 27 + }, + "cancel": { + "__id__": 10 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cf7mnl4l9L/7pkHBxOV4kG" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "45U0bsLzxF75ClciJzcbfs", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/Prefab/Present.prefab.meta b/assets/resources/Prefab/Present.prefab.meta new file mode 100644 index 0000000..a50d000 --- /dev/null +++ b/assets/resources/Prefab/Present.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "345ab5d0-8a20-42ec-a630-62a235d82b34", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "Present" + } +} diff --git a/assets/resources/Prefab/StartGameRoot.prefab b/assets/resources/Prefab/StartGameRoot.prefab new file mode 100644 index 0000000..39249d8 --- /dev/null +++ b/assets/resources/Prefab/StartGameRoot.prefab @@ -0,0 +1,1089 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "StartGameRoot", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "StartGameRoot", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 14 + }, + { + "__id__": 22 + }, + { + "__id__": 30 + }, + { + "__id__": 36 + } + ], + "_active": true, + "_components": [ + { + "__id__": 46 + }, + { + "__id__": 48 + } + ], + "_prefab": { + "__id__": 50 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 533, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Title", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [ + { + "__id__": 11 + } + ], + "_prefab": { + "__id__": 13 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 20, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Title", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 10 + }, + "_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": 1073741824, + "_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": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4b7zXYUbVFCKiUvlqG6Xkj" + }, + { + "__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": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_type": 0, + "_fillType": 0, + "_sizeMode": 2, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": false, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c9L+J6+IpJiaPEbnkwKhxh" + }, + { + "__type__": "da8cbJJkjxC+qVdpm9/+8LT", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "AnimationPath": "ani/title_loop.ani", + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8SsF4Z7pJ1Ku+9DCoVKY2" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "58dRZmg1RIzIQ/JjXCMjLb", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "67+SF4Mm5LEY/k/kRhSTJo" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "92f25kJE5E6rb4QTrO32tQ", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ButtonBackground", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 15 + }, + { + "__id__": 17 + }, + { + "__id__": 19 + } + ], + "_prefab": { + "__id__": 21 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -533.5, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 14 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "27HRy0H3ZES6VAw8oloMpb" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 14 + }, + "_enabled": true, + "__prefab": { + "__id__": 18 + }, + "_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": 2, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": false, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5aIkzw2JVGqa3Y27Rv+VGM" + }, + { + "__type__": "a80463xbJJM5qU8FUhHK84e", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 14 + }, + "_enabled": true, + "__prefab": { + "__id__": 20 + }, + "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/00_main.img", + "ImgIndex": 24, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b0OjGY2kFG4KUpuJkpKPhR" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "17vx4kYtBMg4J2fpobMe8G", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "StartGameButton", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 25 + }, + { + "__id__": 27 + } + ], + "_prefab": { + "__id__": 29 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -92, + "y": -150, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 36 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "68BnemGTBJ6K9eG1zGhKKs" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_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": 1, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "99Ln0ecDZLBrXFZ6dy00S4" + }, + { + "__type__": "227e93p2mxEV5zjvG1ofJkL", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/00_main.img", + "NormalImgIndex": 1, + "HoverImgIndex": 2, + "PressImgIndex": 3, + "DisableImgIndex": 4, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2d0UjiHQ5LRoVvC3ggrknN" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "dcrwm22l1Oyr2rsnec6l0/", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 31 + }, + { + "__id__": 33 + } + ], + "_prefab": { + "__id__": 35 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -120, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 30 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 14.256042929256663, + "height": 50.400000000000006 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3fyeVVhNtFo6e6hgw6t2fo" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 30 + }, + "_enabled": true, + "__prefab": { + "__id__": 34 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 117, + "g": 177, + "b": 198, + "a": 255 + }, + "_string": "∞", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 22.94283036551078, + "_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": "61GyvjPMlKjJqnzQW0PtzF" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "2f6hu4StlD4IM8x989mfFH", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "PresentButton", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 37 + }, + { + "__id__": 39 + }, + { + "__id__": 41 + }, + { + "__id__": 43 + } + ], + "_prefab": { + "__id__": 45 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 490, + "y": 290, + "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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 38 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "33WHrc4kpNKLGPw2U2MmiP" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 40 + }, + "_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": 2, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": false, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "02hfz+qaFM4ZkZSTKka3be" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 42 + }, + "clickEvents": [], + "_interactable": true, + "_transition": 0, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "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": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1eWsE8vphE0ayHPVnOMHuW" + }, + { + "__type__": "227e93p2mxEV5zjvG1ofJkL", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 44 + }, + "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/00_main.img", + "NormalImgIndex": 9, + "HoverImgIndex": 10, + "PressImgIndex": 11, + "DisableImgIndex": 12, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c48NK4bcZKV7QO24vcULGI" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "e1TTa84cNFfbFaiwa7Pa1s", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 47 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13IgOXo1NA/J2rsnSco2kR" + }, + { + "__type__": "372279qAKRIQKB+Altr4vJ8", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 49 + }, + "PressenButton": { + "__id__": 36 + }, + "pressenPrefab": { + "__uuid__": "345ab5d0-8a20-42ec-a630-62a235d82b34", + "__expectedType__": "cc.Prefab" + }, + "StartButton": { + "__id__": 22 + }, + "UIPrefab": { + "__uuid__": "b5b15b0a-c30d-4b95-aee9-b2798a9ad12d", + "__expectedType__": "cc.Prefab" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63lEGK1UtK9awDvbf3Ov7z" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f89kwtvehImpCyWHzLrUpY", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/Prefab/StartGameRoot.prefab.meta b/assets/resources/Prefab/StartGameRoot.prefab.meta new file mode 100644 index 0000000..d0342ff --- /dev/null +++ b/assets/resources/Prefab/StartGameRoot.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "500c80cc-b47e-4a2d-98c7-4f6ce6113811", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "StartGameRoot" + } +} diff --git a/assets/resources/Prefab/UI.prefab b/assets/resources/Prefab/UI.prefab new file mode 100644 index 0000000..b3b44ea --- /dev/null +++ b/assets/resources/Prefab/UI.prefab @@ -0,0 +1,220 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "UI", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "UI", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 10 + } + ], + "_prefab": { + "__id__": 12 + }, + "_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": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 3 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 2 + }, + "asset": { + "__uuid__": "7fb32db3-b3d6-44f1-abaa-f6063c24e07f", + "__expectedType__": "cc.Prefab" + }, + "fileId": "4dIR0b3MJAHIpU7ERJwTWq", + "instance": { + "__id__": 4 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "d7vgkaVD5OmapjIefZvdyK", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 8 + }, + { + "__id__": 9 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_name" + ], + "value": "Gamer" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "4dIR0b3MJAHIpU7ERJwTWq" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 266.766, + "y": 240.999, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ebXzZerpNCrpui6J6cpIgs" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "54XqsHof9Fxrxjq1dsKg2i", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": [ + { + "__id__": 2 + } + ] + } +] \ No newline at end of file diff --git a/assets/resources/Prefab/UI.prefab.meta b/assets/resources/Prefab/UI.prefab.meta new file mode 100644 index 0000000..da52f01 --- /dev/null +++ b/assets/resources/Prefab/UI.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "b5b15b0a-c30d-4b95-aee9-b2798a9ad12d", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "UI" + } +} diff --git a/assets/resources/loding/LodingLogic.ts b/assets/resources/loding/LodingLogic.ts index 4431aef..24cf2cf 100644 --- a/assets/resources/loding/LodingLogic.ts +++ b/assets/resources/loding/LodingLogic.ts @@ -1,7 +1,10 @@ -import { _decorator, Component, director, Node } from 'cc'; +import { _decorator, Component, director, instantiate, Node, Prefab, resources, Scene } from 'cc'; import { GlobalAudio } from '../../GlobalScript/GlobalAudio/GlobalAudio'; import { ImagePack } from '../../GlobalScript/ImagePack/ImagePack'; import { GameScript } from '../../GlobalScript/GameScript/GameScript'; +import { UIRoot } from '../../Script/UIRoot'; + + const { ccclass, property } = _decorator; @@ -18,6 +21,8 @@ export class LodingLogic extends Component { NpkManage: boolean = false; //Pvf管理器初始化状态 PvfManage: boolean = false; + + start() { //初始化音频Map GlobalAudio.getInstance().Init(() => { @@ -31,6 +36,7 @@ export class LodingLogic extends Component { GameScript.getInstance().Init(() => { this.PvfManage = true; }); + } CheckInitState() { @@ -40,18 +46,24 @@ export class LodingLogic extends Component { else return true; } + + update(deltaTime: number) { if (this.CheckInitState() && !this.InitFlag && this.LogoFlag) { this.scheduleOnce(function () { // director.loadScene("LoginGame"); - director.loadScene("main"); + + director.preloadScene("main",()=>{ + director.loadScene("main"); + }); }, 0); this.InitFlag = true; } else { //每帧调用 GameScript.getInstance().Update(); + } } } diff --git a/assets/scene/main.scene b/assets/scene/main.scene index c8a5eed..41661d6 100644 --- a/assets/scene/main.scene +++ b/assets/scene/main.scene @@ -23,7 +23,7 @@ "_active": true, "_components": [], "_prefab": { - "__id__": 24 + "__id__": 18 }, "_lpos": { "__type__": "cc.Vec3", @@ -54,7 +54,7 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 25 + "__id__": 19 }, "_id": "f713b5ea-a70f-486c-8260-0338f089a5b8" }, @@ -77,13 +77,13 @@ "_active": true, "_components": [ { - "__id__": 21 + "__id__": 15 }, { - "__id__": 22 + "__id__": 16 }, { - "__id__": 23 + "__id__": 17 } ], "_prefab": null, @@ -175,7 +175,7 @@ "_priority": 0, "_fov": 45, "_fovAxis": 0, - "_orthoHeight": 300, + "_orthoHeight": 434.12254901960785, "_near": 0, "_far": 1000, "_color": { @@ -220,7 +220,10 @@ "__id__": 6 }, { - "__id__": 15 + "__id__": 10 + }, + { + "__id__": 13 } ], "_active": true, @@ -257,27 +260,23 @@ }, { "__type__": "cc.Node", - "_name": "SpriteSplash", + "_name": "BoardRoot", "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 5 }, - "_children": [ - { - "__id__": 7 - } - ], + "_children": [], "_active": true, "_components": [ { - "__id__": 12 + "__id__": 7 }, { - "__id__": 13 + "__id__": 8 }, { - "__id__": 14 + "__id__": 9 } ], "_prefab": null, @@ -310,164 +309,6 @@ }, "_id": "f3uurI1edKpb/AsUQZyW7c" }, - { - "__type__": "cc.Node", - "_name": "Node", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 6 - }, - "_children": [ - { - "__id__": 8 - } - ], - "_active": true, - "_components": [ - { - "__id__": 11 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": 406.656, - "y": -285.541, - "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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "2eqXq8mlZNEo1OEHiSCz+/" - }, - { - "__type__": "cc.Node", - "_name": "Button", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 7 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 9 - }, - { - "__id__": 10 - } - ], - "_prefab": null, - "_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": 1073741824, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "3cMhmwzlJJ4qTMaShfKXN9" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 40, - "height": 36 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "6b2rDbQKRJBI5YM2ruCZ/7" - }, - { - "__type__": "227e93p2mxEV5zjvG1ofJkL", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": null, - "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/00_main.img", - "NormalImgIndex": 1, - "HoverImgIndex": 2, - "PressImgIndex": 3, - "DisableImgIndex": 4, - "_id": "b2Dl0a+fBCVb43F/u+R87a" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 7 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "d52kwcSPVPjYkvdV5Y3yKc" - }, { "__type__": "cc.UITransform", "_name": "", @@ -541,32 +382,31 @@ "__prefab": null, "ImgPath": "interface2/event/chn_event_2020/200922_dnf_marble/00_main.img", "ImgIndex": 0, - "_id": "63oRTrNBxMGLodUQWYSkjV" + "_id": "fc2gTwXM1Lq68bZxSz8rQ1" }, { "__type__": "cc.Node", - "_name": "touzi", + "_name": "UIRoot", "_objFlags": 0, "__editorExtras__": {}, "_parent": { "__id__": 5 }, - "_children": [ - { - "__id__": 16 - } - ], + "_children": [], "_active": true, "_components": [ { - "__id__": 20 + "__id__": 11 + }, + { + "__id__": 12 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": 552.147, - "y": 198.485, + "x": 0, + "y": 0, "z": 0 }, "_lrot": { @@ -590,34 +430,66 @@ "y": 0, "z": 0 }, - "_id": "72Pcn+hmZEIpMeO4JclUIB" + "_id": "b70q1cqLNPiaJjOCmvNnRI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "6cbBeNcXdJr6bJDAOt5tLP" + }, + { + "__type__": "a578c1qrTRIdaMFhEtim8LM", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": null, + "startGameRootPrefab": { + "__uuid__": "500c80cc-b47e-4a2d-98c7-4f6ce6113811", + "__expectedType__": "cc.Prefab" + }, + "_id": "6clS3n6E1O3Ir6YO9pV5rA" }, { "__type__": "cc.Node", - "_name": "Test", + "_name": "DialogRoot", "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 15 + "__id__": 5 }, "_children": [], "_active": true, "_components": [ { - "__id__": 17 - }, - { - "__id__": 18 - }, - { - "__id__": 19 + "__id__": 14 } ], "_prefab": null, "_lpos": { "__type__": "cc.Vec3", - "x": 646.928, - "y": 177.592, + "x": 0, + "y": 0, "z": 0 }, "_lrot": { @@ -634,14 +506,14 @@ "z": 1 }, "_mobility": 0, - "_layer": 33554432, + "_layer": 1073741824, "_euler": { "__type__": "cc.Vec3", "x": 0, "y": 0, "z": 0 }, - "_id": "58nLsryTdISqQKID5Hb4CI" + "_id": "d8/VyHU6hLfKN4/JXsnt1M" }, { "__type__": "cc.UITransform", @@ -649,7 +521,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 16 + "__id__": 13 }, "_enabled": true, "__prefab": null, @@ -663,78 +535,7 @@ "x": 0.5, "y": 0.5 }, - "_id": "e3PWU61UNEv7dpgCI4tyOQ" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 16 - }, - "_enabled": true, - "__prefab": null, - "_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": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "2fzSKdC4tJv4cl+tDLmGI9" - }, - { - "__type__": "da8cbJJkjxC+qVdpm9/+8LT", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 16 - }, - "_enabled": true, - "__prefab": null, - "AnimationPath": "ani/000_1x1_double.ani", - "_id": "86S/B40YdJLqyx40ueYpvW" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 15 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "7fDqoE7tdNjLdQj8L8oM8f" + "_id": "28/iYuYk1JyqaQ0l2uDYPY" }, { "__type__": "cc.UITransform", @@ -815,28 +616,28 @@ { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 26 + "__id__": 20 }, "shadows": { - "__id__": 27 + "__id__": 21 }, "_skybox": { - "__id__": 28 + "__id__": 22 }, "fog": { - "__id__": 29 + "__id__": 23 }, "octree": { - "__id__": 30 + "__id__": 24 }, "skin": { - "__id__": 31 + "__id__": 25 }, "lightProbeInfo": { - "__id__": 32 + "__id__": 26 }, "postSettings": { - "__id__": 33 + "__id__": 27 }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false diff --git a/settings/v2/packages/information.json b/settings/v2/packages/information.json index 0ff6dc3..2d81fe5 100644 --- a/settings/v2/packages/information.json +++ b/settings/v2/packages/information.json @@ -7,7 +7,7 @@ "enable": true, "customSplash": { "complete": true, - "form": "https://creator-api.cocos.com/api/form/show?sid=9ca4a815f78c9bcd01d30320bbf2f99b" + "form": "https://creator-api.cocos.com/api/form/show?sid=713f3d658f5b15c1ab406d720b890938" } }, "removeSplash": { @@ -16,7 +16,7 @@ "enable": true, "removeSplash": { "complete": true, - "form": "https://creator-api.cocos.com/api/form/show?sid=9ca4a815f78c9bcd01d30320bbf2f99b" + "form": "https://creator-api.cocos.com/api/form/show?sid=713f3d658f5b15c1ab406d720b890938" } } }