Commit bbffc415 authored by haiyoucuv's avatar haiyoucuv

init

parent 3ed06349
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"210bbfa6-d735-473e-9b62-d18973a2d769","files":[],"subMetas":{},"userData":{"isBundle":true}}
This diff is collapsed.
{"ver":"1.1.50","importer":"scene","imported":true,"uuid":"a22cdbba-2e7b-4764-9d81-ee908bc8fe4b","files":[".json"],"subMetas":{},"userData":{}}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3673d3e9-760c-4823-a13f-668c436ced58",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3673d3e9-760c-4823-a13f-668c436ced58@6c48a",
"displayName": "guideBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3673d3e9-760c-4823-a13f-668c436ced58",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3673d3e9-760c-4823-a13f-668c436ced58@f9941",
"displayName": "guideBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 1624,
"rawWidth": 750,
"rawHeight": 1624,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-375,
-812,
0,
375,
-812,
0,
-375,
812,
0,
375,
812,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1624,
750,
1624,
0,
0,
750,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-375,
-812,
0
],
"maxPos": [
375,
812,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3673d3e9-760c-4823-a13f-668c436ced58@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3673d3e9-760c-4823-a13f-668c436ced58@6c48a"
}
}
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"d42768ca-15b0-4d70-b53f-e5187f45905f","files":[],"subMetas":{},"userData":{}}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "330393b2-e167-4f07-ae46-04d2b24c6c73",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "330393b2-e167-4f07-ae46-04d2b24c6c73@6c48a",
"displayName": "guide1",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "330393b2-e167-4f07-ae46-04d2b24c6c73",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "330393b2-e167-4f07-ae46-04d2b24c6c73@f9941",
"displayName": "guide1",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 396,
"height": 452,
"rawWidth": 396,
"rawHeight": 452,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-198,
-226,
0,
198,
-226,
0,
-198,
226,
0,
198,
226,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
452,
396,
452,
0,
0,
396,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-198,
-226,
0
],
"maxPos": [
198,
226,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "330393b2-e167-4f07-ae46-04d2b24c6c73@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "330393b2-e167-4f07-ae46-04d2b24c6c73@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e2f3b544-f8aa-473a-a04b-b98af3a0cf54",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e2f3b544-f8aa-473a-a04b-b98af3a0cf54@6c48a",
"displayName": "guide2",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "e2f3b544-f8aa-473a-a04b-b98af3a0cf54",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "e2f3b544-f8aa-473a-a04b-b98af3a0cf54@f9941",
"displayName": "guide2",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 327,
"height": 424,
"rawWidth": 327,
"rawHeight": 424,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-163.5,
-212,
0,
163.5,
-212,
0,
-163.5,
212,
0,
163.5,
212,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
424,
327,
424,
0,
0,
327,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-163.5,
-212,
0
],
"maxPos": [
163.5,
212,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "e2f3b544-f8aa-473a-a04b-b98af3a0cf54@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "e2f3b544-f8aa-473a-a04b-b98af3a0cf54@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "cbb081d6-892a-420d-93df-8f04012b8848",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "cbb081d6-892a-420d-93df-8f04012b8848@6c48a",
"displayName": "guide3",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "cbb081d6-892a-420d-93df-8f04012b8848",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "cbb081d6-892a-420d-93df-8f04012b8848@f9941",
"displayName": "guide3",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 211,
"height": 436,
"rawWidth": 211,
"rawHeight": 436,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-105.5,
-218,
0,
105.5,
-218,
0,
-105.5,
218,
0,
105.5,
218,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
436,
211,
436,
0,
0,
211,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-105.5,
-218,
0
],
"maxPos": [
105.5,
218,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "cbb081d6-892a-420d-93df-8f04012b8848@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "cbb081d6-892a-420d-93df-8f04012b8848@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "98e49ff5-5e1e-4dd1-8cef-28b4b8135f3d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "98e49ff5-5e1e-4dd1-8cef-28b4b8135f3d@6c48a",
"displayName": "guide4",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "98e49ff5-5e1e-4dd1-8cef-28b4b8135f3d",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "98e49ff5-5e1e-4dd1-8cef-28b4b8135f3d@f9941",
"displayName": "guide4",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 196,
"height": 426,
"rawWidth": 196,
"rawHeight": 426,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-98,
-213,
0,
98,
-213,
0,
-98,
213,
0,
98,
213,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
426,
196,
426,
0,
0,
196,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-98,
-213,
0
],
"maxPos": [
98,
213,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "98e49ff5-5e1e-4dd1-8cef-28b4b8135f3d@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "98e49ff5-5e1e-4dd1-8cef-28b4b8135f3d@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a76e03ee-9d11-4f04-9ac8-c9800dab3ede",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a76e03ee-9d11-4f04-9ac8-c9800dab3ede@6c48a",
"displayName": "guide5",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a76e03ee-9d11-4f04-9ac8-c9800dab3ede",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a76e03ee-9d11-4f04-9ac8-c9800dab3ede@f9941",
"displayName": "guide5",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 194,
"height": 430,
"rawWidth": 194,
"rawHeight": 430,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-97,
-215,
0,
97,
-215,
0,
-97,
215,
0,
97,
215,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
430,
194,
430,
0,
0,
194,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-97,
-215,
0
],
"maxPos": [
97,
215,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a76e03ee-9d11-4f04-9ac8-c9800dab3ede@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a76e03ee-9d11-4f04-9ac8-c9800dab3ede@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "dd84ee28-3877-4626-8e8f-c338ee9d211c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "dd84ee28-3877-4626-8e8f-c338ee9d211c@6c48a",
"displayName": "guide6",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "dd84ee28-3877-4626-8e8f-c338ee9d211c",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "dd84ee28-3877-4626-8e8f-c338ee9d211c@f9941",
"displayName": "guide6",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 493,
"rawWidth": 750,
"rawHeight": 493,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-375,
-246.5,
0,
375,
-246.5,
0,
-375,
246.5,
0,
375,
246.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
493,
750,
493,
0,
0,
750,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-375,
-246.5,
0
],
"maxPos": [
375,
246.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "dd84ee28-3877-4626-8e8f-c338ee9d211c@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "dd84ee28-3877-4626-8e8f-c338ee9d211c@6c48a"
}
}
This diff is collapsed.
import {
_decorator,
Node,
} from "cc";
import Scene from "db://assets/core/Module/Scene";
import { changeScene } from "db://assets/core/Module/UIFast";
import { MainGame } from "db://assets/Scripts/Scenes/MainGame/MainGame";
const { ccclass, property } = _decorator;
@ccclass('GuideScene')
export class GuideScene extends Scene {
static bundle: string = "GuideScene";
static skin: string = "GuideScene";
@property({ type: [Node] }) guideList: Node[] = [];
guideIndex: number = -1;
onLoad() {
this.nextGuide();
this.node.on(Node.EventType.TOUCH_END, this.nextGuide, this);
}
nextGuide() {
this.guideIndex++;
if (this.guideIndex >= this.guideList.length) {
changeScene(MainGame);
return;
}
this.guideList.forEach((node, index) => {
node.active = index === this.guideIndex;
});
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"cb499471-fd0c-41e2-b718-6b1c06577f27","files":[],"subMetas":{},"userData":{}}
......@@ -109,7 +109,11 @@ export class HomeScene extends Scene {
const suc = await gameStore.start();
if (!suc) return
changeScene(MainGame);
if (gameStore.startInfo.guideFlag) {
changeScene(MainGame);
} else {
changeScene(MainGame);
}
});
}
......
......@@ -11,6 +11,7 @@ export interface IStartInfo {
level: number,
startId: string,
shareUnlocked: boolean,
guideFlag: boolean,
}
class GameStore {
......@@ -19,6 +20,7 @@ class GameStore {
level: 0,
startId: "",
shareUnlocked: false,
guideFlag: false,
}
async start() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment