Commit 261b357f authored by haiyoucuv's avatar haiyoucuv

上传

parent db9a87da
This diff is collapsed.
assets/Bundles/HomeScene/png/rank.png

9.94 KB | W: | H:

assets/Bundles/HomeScene/png/rank.png

11.2 KB | W: | H:

assets/Bundles/HomeScene/png/rank.png
assets/Bundles/HomeScene/png/rank.png
assets/Bundles/HomeScene/png/rank.png
assets/Bundles/HomeScene/png/rank.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -46,9 +46,9 @@
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 138,
"width": 152,
"height": 49,
"rawWidth": 138,
"rawWidth": 152,
"rawHeight": 49,
"borderTop": 0,
"borderBottom": 0,
......@@ -61,16 +61,16 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-69,
-76,
-24.5,
0,
69,
76,
-24.5,
0,
-69,
-76,
24.5,
0,
69,
76,
24.5,
0
],
......@@ -85,11 +85,11 @@
"uv": [
0,
49,
138,
152,
49,
0,
0,
138,
152,
0
],
"nuv": [
......@@ -103,12 +103,12 @@
1
],
"minPos": [
-69,
-76,
-24.5,
0
],
"maxPos": [
69,
76,
24.5,
0
]
......
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "68028c7e-3354-4aa3-8c64-5bd0b2f49c4c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "68028c7e-3354-4aa3-8c64-5bd0b2f49c4c@6c48a",
"displayName": "音乐关闭",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "68028c7e-3354-4aa3-8c64-5bd0b2f49c4c",
"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": "68028c7e-3354-4aa3-8c64-5bd0b2f49c4c@f9941",
"displayName": "音乐关闭",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 48,
"height": 48,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-24,
-24,
0,
24,
-24,
0,
-24,
24,
0,
24,
24,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
48,
48,
48,
0,
0,
48,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-24,
-24,
0
],
"maxPos": [
24,
24,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "68028c7e-3354-4aa3-8c64-5bd0b2f49c4c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "68028c7e-3354-4aa3-8c64-5bd0b2f49c4c@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "06448464-80e0-4c4e-8d52-47377910bde4",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "06448464-80e0-4c4e-8d52-47377910bde4@6c48a",
"displayName": "音乐打开",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "06448464-80e0-4c4e-8d52-47377910bde4",
"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": "06448464-80e0-4c4e-8d52-47377910bde4@f9941",
"displayName": "音乐打开",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 48,
"height": 48,
"rawWidth": 48,
"rawHeight": 48,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-24,
-24,
0,
24,
-24,
0,
-24,
24,
0,
24,
24,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
48,
48,
48,
0,
0,
48,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-24,
-24,
0
],
"maxPos": [
24,
24,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "06448464-80e0-4c4e-8d52-47377910bde4@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "06448464-80e0-4c4e-8d52-47377910bde4@6c48a"
}
}
......@@ -102,7 +102,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 375,
"y": 811.9999999999999,
"y": 812,
"z": 0
},
"_lrot": {
......@@ -187,7 +187,7 @@
"_priority": 50000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 811.9999999999999,
"_orthoHeight": 812,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -251,7 +251,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 811.9999999999999,
"y": 812,
"z": 0
},
"_lrot": {
......@@ -1005,7 +1005,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1623.9999999999998
"height": 1624
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -889,7 +889,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 131.26914978027344,
"width": 137.3142547607422,
"height": 34.208999999999996
},
"_anchorPoint": {
......@@ -938,7 +938,7 @@
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 1,
......@@ -1178,6 +1178,8 @@
"__id__": 0
},
"fileId": "30efbc7P5Ls5xkig5kB8tJ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
......
assets/Bundles/PrizePanel/png/bg.png

168 KB | W: | H:

assets/Bundles/PrizePanel/png/bg.png

167 KB | W: | H:

assets/Bundles/PrizePanel/png/bg.png
assets/Bundles/PrizePanel/png/bg.png
assets/Bundles/PrizePanel/png/bg.png
assets/Bundles/PrizePanel/png/bg.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
assets/Bundles/RankPanel/png/bg.png

116 KB | W: | H:

assets/Bundles/RankPanel/png/bg.png

115 KB | W: | H:

assets/Bundles/RankPanel/png/bg.png
assets/Bundles/RankPanel/png/bg.png
assets/Bundles/RankPanel/png/bg.png
assets/Bundles/RankPanel/png/bg.png
  • 2-up
  • Swipe
  • Onion skin
import { _decorator, Button, Component, Node, Sprite, SpriteFrame } from 'cc';
import { AudioMgr } from "../../core_tgx/base/AudioMgr";
const {ccclass, property} = _decorator;
const {ccclass, property, requireComponent} = _decorator;
@ccclass('MusicBtn')
@requireComponent(Button)
export class MusicBtn extends Component {
......@@ -65,4 +67,3 @@ export class MusicBtn extends Component {
}
}
......@@ -44,14 +44,14 @@ export default class NoPrizePanel extends Panel {
clickRank = () => {
this.hidePanel();
changeScene(HomeScene);
showPanel(RankPanel);
// changeScene(HomeScene);
showPanel(RankPanel, {from: "Game"});
}
onClose = () => {
this.hidePanel();
changeScene(HomeScene);
// popWindow();
// this.hidePanel();
// changeScene(HomeScene);
popWindow();
}
clickAgain = async () => {
......
......@@ -75,12 +75,13 @@ export default class PrizePanel extends Panel {
clickRank = () => {
this.hidePanel();
changeScene(HomeScene);
showPanel(RankPanel);
// changeScene(HomeScene);
showPanel(RankPanel, {from: "Game"});
}
onClose = () => {
this.hidePanel();
// this.hidePanel();
popWindow();
changeScene(HomeScene);
}
......
......@@ -11,6 +11,7 @@ const {ccclass, property} = _decorator;
import { YXCollectionView, YXFlowLayout, YXIndexPath } from "../../Component/YXList/lib";
import { sendWebNet, WebNetName } from "../Utils/WebNet/WebNet";
import { popWindow } from "../AppTool";
enum TAB {
......@@ -172,7 +173,11 @@ export default class RankPanel extends Panel {
}
clickClose = () => {
this.hidePanel();
if (this.data?.from == "Game") {
popWindow();
} else {
this.hidePanel();
}
}
}
......@@ -71,17 +71,6 @@ export class MainGame extends Scene {
@property({type: [BgAndColor], visible: true, displayName: `背景和颜色`})
private bgAndColor: BgAndColor[] = [];
private _propScore: number = 0;
set propScore(value: number) {
this._propScore = value;
this.updateScore();
}
get propScore() {
return this._propScore;
}
private _score: number = 0;
set score(value: number) {
......@@ -98,6 +87,7 @@ export class MainGame extends Scene {
wallArr: Node[] = [];
maxZ = 0;
scoreRadio = 1;
onLoad() {
......@@ -165,6 +155,10 @@ export class MainGame extends Scene {
}
scoreRadioFunc = () => {
this.scoreRadio = 1;
}
onTriggerEnter(event: ITriggerEvent) {
const {otherCollider, selfCollider} = event;
......@@ -175,7 +169,9 @@ export class MainGame extends Scene {
this.changeMainColor();
} else if (otherName == "圆环") {
otherCollider.node.active = false;
this.propScore += 10;
this.scoreRadio = 2;
this.unschedule(this.scoreRadioFunc);
this.scheduleOnce(this.scoreRadioFunc, 5);
tween(this.hitTip)
.set({active: true})
.delay(2)
......@@ -317,7 +313,7 @@ export class MainGame extends Scene {
{
lastZ: 0,
create: false,
interval: 10,
interval: 20,
funcName: "createRing",
},
]
......@@ -362,9 +358,9 @@ export class MainGame extends Scene {
}
}
updateScore() {
this.score = ~~(this.maxZ * 15) + this.propScore;
updateScore(addScore) {
console.log(this.scoreRadio);
this.score += ~~((addScore * 15) * this.scoreRadio);
if (this.score > 9999) {
this.score = 9999;
PhysicsSystem.instance.enable = false;
......@@ -396,10 +392,11 @@ export class MainGame extends Scene {
if (this.isOver) return;
const pz = -this.player.position.z;
const addScore = pz - this.maxZ;
if (pz > this.maxZ) {
this.maxZ = pz;
this.updateScore();
if (pz > 0) {
this.maxZ += addScore;
this.updateScore(addScore);
}
this.checkFrame++;
......
......@@ -54,7 +54,7 @@ export class Start extends Component {
document.body.style.visibility = "visible";
MusicBtn.open = false;
// MusicBtn.open = false;
}
......
......@@ -20,7 +20,7 @@
<script type="text/javascript" src="https://appx/web-view.min.js"></script>
</head>
<body style="overflow: hidden; visibility: hidden">
<body style="overflow: hidden;">
<%- include(cocosToolBar, {config: config}) %>
<div id="content" class="content" style="overflow: hidden;">
<div class="contentWrap">
......
......@@ -9,7 +9,7 @@
"8": {
"3\\extension": {
"name": "extension",
"time": 1727228579670
"time": 1727315987289
}
}
}
......
......@@ -3,7 +3,7 @@
"config": {
"images": [],
"sceneUUID": {},
"scene": "53947ca7-3484-4b53-800d-509405063d68"
"scene": "04224ebd-adcd-4112-8010-da14ed5ea48a"
},
"show": false
}
......@@ -1267,8 +1267,8 @@
},
"53947ca7-3484-4b53-800d-509405063d68": {
"position": {
"x": 432.80046469068134,
"y": 984.2290985376288,
"x": 212.99999999999997,
"y": 275,
"z": 5000
},
"rotation": {
......@@ -1283,12 +1283,12 @@
"z": 0
},
"contentRect": {
"x": -112.8312539329105,
"y": 278.9283085694491,
"width": 408.8,
"height": 483.7
"x": 0,
"y": -2.9999999999999516,
"width": 298.2,
"height": 385
},
"scale": 0.30469269715364333
"scale": 0.7
}
},
"camera-uuids": [
......
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