Commit 863ab529 authored by haiyoucuv's avatar haiyoucuv

init

parent ba154cdd
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"2e730492-411a-4939-baeb-5af8168ec83b","files":[],"subMetas":{},"userData":{"isBundle":true}}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "0bf3174b-3969-4ccb-bb3f-c1623eb50166",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "GameResultPanel"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "65593d0c-9e52-468a-9717-c49388f18adb",
"files": [],
"subMetas": {},
"userData": {}
}
[
{
"__type__": "cc.AnimationClip",
"_name": "light",
"_objFlags": 0,
"__editorExtras__": {
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 30,
"speed": 0.5,
"wrapMode": 2,
"enableTrsBlending": false,
"_duration": 3,
"_hash": 500763545,
"_tracks": [
{
"__id__": 1
}
],
"_exoticAnimation": null,
"_events": [],
"_embeddedPlayers": [],
"_additiveSettings": {
"__id__": 11
},
"_auxiliaryCurveEntries": []
},
{
"__type__": "cc.animation.VectorTrack",
"_binding": {
"__type__": "cc.animation.TrackBinding",
"path": {
"__id__": 2
},
"proxy": null
},
"_channels": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 9
}
],
"_nComponents": 3
},
{
"__type__": "cc.animation.TrackPath",
"_paths": [
"eulerAngles"
]
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 4
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
3
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"broken": null
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": null
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 6
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
3
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"broken": null
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": null
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 8
}
},
{
"__type__": "cc.RealCurve",
"_times": [
0,
3
],
"_values": [
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": 0,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": {
"broken": null
}
},
{
"__type__": "cc.RealKeyframeValue",
"interpolationMode": 0,
"tangentWeightMode": 0,
"value": -360,
"rightTangent": 0,
"rightTangentWeight": 1,
"leftTangent": 0,
"leftTangentWeight": 1,
"easingMethod": 0,
"__editorExtras__": null
}
],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 10
}
},
{
"__type__": "cc.RealCurve",
"_times": [],
"_values": [],
"preExtrapolation": 1,
"postExtrapolation": 1
},
{
"__type__": "cc.AnimationClipAdditiveSettings",
"enabled": false,
"refClip": null
}
]
\ No newline at end of file
{
"ver": "2.0.3",
"importer": "animation-clip",
"imported": true,
"uuid": "d9727687-7b05-41d5-b08a-bc0d7d0cd4a8",
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"name": "light"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "ad5c5c2f-dd71-4ed3-a993-d4030f72ab97",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "dd584c86-f809-4db8-9487-7003953dec4c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "dd584c86-f809-4db8-9487-7003953dec4c@6c48a",
"displayName": "再来一局",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "dd584c86-f809-4db8-9487-7003953dec4c",
"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": "dd584c86-f809-4db8-9487-7003953dec4c@f9941",
"displayName": "再来一局",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "dd584c86-f809-4db8-9487-7003953dec4c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "dd584c86-f809-4db8-9487-7003953dec4c@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d82d1def-b32d-49b4-bc46-eb80c317511d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d82d1def-b32d-49b4-bc46-eb80c317511d@6c48a",
"displayName": "分享好友",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d82d1def-b32d-49b4-bc46-eb80c317511d",
"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": "d82d1def-b32d-49b4-bc46-eb80c317511d@f9941",
"displayName": "分享好友",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d82d1def-b32d-49b4-bc46-eb80c317511d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d82d1def-b32d-49b4-bc46-eb80c317511d@6c48a"
}
}
This diff is collapsed.
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "23688bae-9f82-467c-9efc-c6cde46c2c9e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "23688bae-9f82-467c-9efc-c6cde46c2c9e@6c48a",
"displayName": "发光",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "23688bae-9f82-467c-9efc-c6cde46c2c9e",
"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": "23688bae-9f82-467c-9efc-c6cde46c2c9e@f9941",
"displayName": "发光",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1743,
"height": 1721,
"rawWidth": 1743,
"rawHeight": 1721,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-871.5,
-860.5,
0,
871.5,
-860.5,
0,
-871.5,
860.5,
0,
871.5,
860.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1721,
1743,
1721,
0,
0,
1743,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-871.5,
-860.5,
0
],
"maxPos": [
871.5,
860.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "23688bae-9f82-467c-9efc-c6cde46c2c9e@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "23688bae-9f82-467c-9efc-c6cde46c2c9e@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "22b83409-e7ea-487e-9cd8-333fafe7c793",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "22b83409-e7ea-487e-9cd8-333fafe7c793@6c48a",
"displayName": "弹窗背景",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "22b83409-e7ea-487e-9cd8-333fafe7c793",
"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": "22b83409-e7ea-487e-9cd8-333fafe7c793@f9941",
"displayName": "弹窗背景",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1136,
"height": 599,
"rawWidth": 1136,
"rawHeight": 599,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-568,
-299.5,
0,
568,
-299.5,
0,
-568,
299.5,
0,
568,
299.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
599,
1136,
599,
0,
0,
1136,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-568,
-299.5,
0
],
"maxPos": [
568,
299.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "22b83409-e7ea-487e-9cd8-333fafe7c793@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "22b83409-e7ea-487e-9cd8-333fafe7c793@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "92cc1371-f959-4243-9d27-7d34035891f7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "92cc1371-f959-4243-9d27-7d34035891f7@6c48a",
"displayName": "返回首页",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "92cc1371-f959-4243-9d27-7d34035891f7",
"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": "92cc1371-f959-4243-9d27-7d34035891f7@f9941",
"displayName": "返回首页",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 88,
"rawWidth": 240,
"rawHeight": 88,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-120,
-44,
0,
120,
-44,
0,
-120,
44,
0,
120,
44,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
88,
240,
88,
0,
0,
240,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-120,
-44,
0
],
"maxPos": [
120,
44,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "92cc1371-f959-4243-9d27-7d34035891f7@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "92cc1371-f959-4243-9d27-7d34035891f7@6c48a"
}
}
import Panel from "../../Module/Panel";
import { _decorator, Button, Label, Node, Sprite } from "cc";
import { observer } from "../store/decorators";
const { ccclass, property } = _decorator;
@observer
@ccclass("GameResultPanel")
export default class GameResultPanel extends Panel {
static bundle = "GameResultPanel";
static skin = "GameResultPanel";
@property(Node) share: Node = null;
@property(Node) again: Node = null;
@property(Node) back: Node = null;
@property(Sprite) prizeImg: Sprite = null;
@property(Label) prizeName: Label = null;
@property(Label) totalLength: Label = null;
@property(Label) totalKill: Label = null;
onLoad() {
this.share.on(Button.EventType.CLICK, this.clickShare, this);
this.again.on(Button.EventType.CLICK, this.clickAgain, this);
this.back.on(Button.EventType.CLICK, this.clickBack, this);
}
async start() {
}
clickShare() {
}
clickAgain() {
}
clickBack() {
}
// @render
// render() {
// const {ruleInfo = ""} = store;
// this.setRuleTxt(ruleInfo);
// }
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"e0911d8b-0d27-49ae-8fd2-f6d2ad741906","files":[],"subMetas":{},"userData":{}}
......@@ -8,6 +8,7 @@ import { _asyncThrottle } from "../Utils/Utils";
import RankPanel from "../Panels/RankPanel";
import { UIMgr } from "../../Module/UIMgr";
import gameStore from "../store/gameStore";
import GameResultPanel from "../Panels/GameResultPanel";
const { ccclass, property } = _decorator;
......@@ -36,6 +37,8 @@ export class HomeScene extends Scene {
await store.updateIndex();
showPanel(GameResultPanel);
UIMgr.ins.preloadScene(MainGame);
}
......
......@@ -7,17 +7,6 @@ const { ccclass } = _decorator;
@ccclass('Global')
export class Global {
/** 设计分辨率 */
public static designResolutionSize = View.instance.getDesignResolutionSize();
/** 可视区域大小 */
public static visibleSize = View.instance.getVisibleSize();
/** 宽度缩放比例 */
public static widthScaling = Math.round(
(Global.visibleSize.width / Global.designResolutionSize.width) * 100
) / 100;
/** 地图宽度 */
public static MAP_WIDTH: number = 6000;
......
......@@ -76,9 +76,9 @@ export class Start extends Component {
await changeScene(HomeScene);
AudioMgr.ins.play("audio/飞球背景音乐", {
bundleName: "common",
});
// AudioMgr.ins.play("audio/飞球背景音乐", {
// bundleName: "common",
// });
}
......
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