Commit edbba4e3 authored by haiyoucuv's avatar haiyoucuv

上传

parent 809f519d
assets/Bundles/BackPanel/png/no.png

14.5 KB | W: | H:

assets/Bundles/BackPanel/png/no.png

13.7 KB | W: | H:

assets/Bundles/BackPanel/png/no.png
assets/Bundles/BackPanel/png/no.png
assets/Bundles/BackPanel/png/no.png
assets/Bundles/BackPanel/png/no.png
  • 2-up
  • Swipe
  • Onion skin
assets/Bundles/BackPanel/png/yes.png

15.2 KB | W: | H:

assets/Bundles/BackPanel/png/yes.png

14.4 KB | W: | H:

assets/Bundles/BackPanel/png/yes.png
assets/Bundles/BackPanel/png/yes.png
assets/Bundles/BackPanel/png/yes.png
assets/Bundles/BackPanel/png/yes.png
  • 2-up
  • Swipe
  • Onion skin
assets/Bundles/PrizePanel/png/again.png

20.7 KB | W: | H:

assets/Bundles/PrizePanel/png/again.png

20.4 KB | W: | H:

assets/Bundles/PrizePanel/png/again.png
assets/Bundles/PrizePanel/png/again.png
assets/Bundles/PrizePanel/png/again.png
assets/Bundles/PrizePanel/png/again.png
  • 2-up
  • Swipe
  • Onion skin
assets/Bundles/PrizePanel/png/rank.png

19.6 KB | W: | H:

assets/Bundles/PrizePanel/png/rank.png

20.2 KB | W: | H:

assets/Bundles/PrizePanel/png/rank.png
assets/Bundles/PrizePanel/png/rank.png
assets/Bundles/PrizePanel/png/rank.png
assets/Bundles/PrizePanel/png/rank.png
  • 2-up
  • Swipe
  • Onion skin
assets/Bundles/PrizePanel/png/view.png

30.5 KB | W: | H:

assets/Bundles/PrizePanel/png/view.png

29.3 KB | W: | H:

assets/Bundles/PrizePanel/png/view.png
assets/Bundles/PrizePanel/png/view.png
assets/Bundles/PrizePanel/png/view.png
assets/Bundles/PrizePanel/png/view.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -23,12 +23,16 @@ import { ...@@ -23,12 +23,16 @@ import {
} from "cc"; } from "cc";
import Scene from "db://assets/Module/Scene"; import Scene from "db://assets/Module/Scene";
import { Wall } from "./Wall"; import { Wall } from "./Wall";
import { sleep } from "../../Utils/Utils"; import { _asyncThrottle, sleep } from "../../Utils/Utils";
import GameMgr from "../../GameMgr"; import GameMgr from "../../GameMgr";
import { AudioMgr } from "../../../core_tgx/base/AudioMgr"; import { AudioMgr } from "../../../core_tgx/base/AudioMgr";
import { mdEvent } from "../../AppTool"; import { mdEvent } from "../../AppTool";
import { BgAndColor } from "./BgAndColor"; import { BgAndColor } from "./BgAndColor";
import { GuideNode } from "./GuideNode"; import { GuideNode } from "./GuideNode";
import { changeScene } from "../../../Module/UIFast";
import { HomeScene } from "../HomeScene";
import { sendWebNet, WebNetName } from "../../Utils/WebNet/WebNet";
import { MainGame } from "./MainGame";
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
...@@ -122,6 +126,7 @@ export class GuideGame extends Scene { ...@@ -122,6 +126,7 @@ export class GuideGame extends Scene {
input.on(Input.EventType.TOUCH_END, this.onTouchEnd, this); input.on(Input.EventType.TOUCH_END, this.onTouchEnd, this);
input.on(Input.EventType.TOUCH_CANCEL, this.onTouchEnd, this); input.on(Input.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
this.guideNode.guide4Next.on(Button.EventType.CLICK, this.clickStart, this);
this.guideNode.show(1); this.guideNode.show(1);
} }
...@@ -135,6 +140,20 @@ export class GuideGame extends Scene { ...@@ -135,6 +140,20 @@ export class GuideGame extends Scene {
// this.playerConstraint.enabled = false; // this.playerConstraint.enabled = false;
} }
clickStart = _asyncThrottle(async () => {
if (this.data?.from === "HomeScene") {
changeScene(HomeScene);
return;
}
await sendWebNet(WebNetName.stepNewGuide);
const success = await GameMgr.ins.start();
if (!success) {
changeScene(HomeScene);
return;
}
await changeScene(MainGame);
});
mainColor: BgAndColor = null; mainColor: BgAndColor = null;
...@@ -156,9 +175,6 @@ export class GuideGame extends Scene { ...@@ -156,9 +175,6 @@ export class GuideGame extends Scene {
this.phyUpdate = false; this.phyUpdate = false;
this.guideNode.show(4); this.guideNode.show(4);
// await GameMgr.ins.submit(this.score);
} }
scoreRadioFunc = () => { scoreRadioFunc = () => {
...@@ -181,6 +197,9 @@ export class GuideGame extends Scene { ...@@ -181,6 +197,9 @@ export class GuideGame extends Scene {
this.guideNode.guide3Next.once(Button.EventType.CLICK, () => { this.guideNode.guide3Next.once(Button.EventType.CLICK, () => {
this.phyUpdate = true; this.phyUpdate = true;
this.guideNode.hide(); this.guideNode.hide();
if (this.data?.from !== "HomeScene") {
sendWebNet(WebNetName.stepNewGuide);
}
// this.scheduleOnce(() => { // this.scheduleOnce(() => {
// this.gameOver(); // this.gameOver();
...@@ -315,12 +334,18 @@ export class GuideGame extends Scene { ...@@ -315,12 +334,18 @@ export class GuideGame extends Scene {
// 新手引导 // 新手引导
if (this.guideNode.guideIndex == 1) { if (this.guideNode.guideIndex == 1) {
this.guideNode.hide(); this.guideNode.hide();
if (this.data?.from !== "HomeScene") {
sendWebNet(WebNetName.stepNewGuide);
}
this.scheduleOnce(() => { this.scheduleOnce(() => {
this.phyUpdate = false; this.phyUpdate = false;
this.guideNode.show(2); this.guideNode.show(2);
this.guideNode.guide2Next.on(Button.EventType.CLICK, () => { this.guideNode.guide2Next.on(Button.EventType.CLICK, () => {
this.guideNode.hide(); this.guideNode.hide();
this.phyUpdate = true; this.phyUpdate = true;
if (this.data?.from !== "HomeScene") {
sendWebNet(WebNetName.stepNewGuide);
}
}); });
}, 0.65); }, 0.65);
} }
......
...@@ -84,6 +84,8 @@ export class MainGame extends Scene { ...@@ -84,6 +84,8 @@ export class MainGame extends Scene {
mdEvent({pageView: "gamsStart"}); mdEvent({pageView: "gamsStart"});
PhysicsSystem.instance.autoSimulation = true;
const playerCollider = this.player.getComponent(Collider); const playerCollider = this.player.getComponent(Collider);
playerCollider.on("onCollisionEnter", this.onPlayerCollision, this); playerCollider.on("onCollisionEnter", this.onPlayerCollision, this);
playerCollider.on('onTriggerEnter', this.onTriggerEnter, this); playerCollider.on('onTriggerEnter', this.onTriggerEnter, this);
......
...@@ -98,14 +98,14 @@ ...@@ -98,14 +98,14 @@
</style> </style>
<script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/src/assets/plugin/zepto.min.js"></script> <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/src/assets/plugin/zepto.min.js"></script>
<script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/src/assets/plugin/declare-process.js"></script> <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/src/assets/plugin/declare-process.js"></script>
<script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<script type="text/javascript" src="https://appx/web-view.min.js"></script> <script type="text/javascript" src="https://appx/web-view.min.js"></script>
<!-- <link rel="stylesheet" type="text/css" href="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/style.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/style.css" />-->
<!-- <link rel="stylesheet" type="text/css" href="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/custom.css" />--> <!-- <link rel="stylesheet" type="text/css" href="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/custom.css" />-->
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>--> <!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>--> <!-- <script>eruda.init()</script>-->
...@@ -118,20 +118,20 @@ ...@@ -118,20 +118,20 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/src/system.bundle.js" charset="utf-8"></script> <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<!--<script src="https://yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>--> <!--<script src="https://yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script type="systemjs-importmap" charset="utf-8"> <script type="systemjs-importmap" charset="utf-8">
{"imports":{"cc":"//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/cocos-js/cc.js"}} {"imports":{"cc":"//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/cocos-js/cc.js"}}
</script> </script>
<script> <script>
System.import('//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1727403133635/index.js').catch(function (err) { System.import('//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/Cave_Cruiser/1728456380388/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
"progress": 1, "progress": 1,
"state": "success", "state": "success",
"stage": "build", "stage": "build",
"message": "2024-9-27 10:13:09 build success in 55 s!", "message": "2024-10-9 14:47:16 build success in 55 s!",
"detailMessage": "%c兑吧发布插件 >> 版本号:1727403133635\rcolor: green\r", "detailMessage": "%c兑吧发布插件 >> 版本号:1728456380388\rcolor: green\r",
"options": { "options": {
"name": "cocos-template-3d", "name": "cocos-template-3d",
"server": "", "server": "",
...@@ -116,6 +116,11 @@ ...@@ -116,6 +116,11 @@
"url": "db://assets/Bundles/HomeScene/HomeScene.scene", "url": "db://assets/Bundles/HomeScene/HomeScene.scene",
"uuid": "04224ebd-adcd-4112-8010-da14ed5ea48a", "uuid": "04224ebd-adcd-4112-8010-da14ed5ea48a",
"bundle": "db://assets/Bundles/HomeScene" "bundle": "db://assets/Bundles/HomeScene"
},
{
"url": "db://assets/Bundles/MainGame/GuideGame.scene",
"uuid": "7b5de2a0-8504-46ba-9019-37a3548ce8e1",
"bundle": "db://assets/Bundles/MainGame"
} }
], ],
"packages": {}, "packages": {},
...@@ -135,7 +140,7 @@ ...@@ -135,7 +140,7 @@
"nativeCodeBundleMode": "both", "nativeCodeBundleMode": "both",
"wasmCompressionMode": false "wasmCompressionMode": false
}, },
"time": "2024-9-27 10:12:13", "time": "2024-10-9 14:46:20",
"dirty": false "dirty": false
}, },
"1727146301455": { "1727146301455": {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"config": { "config": {
"images": [], "images": [],
"sceneUUID": {}, "sceneUUID": {},
"scene": "7b5de2a0-8504-46ba-9019-37a3548ce8e1" "scene": "0fe5b446-0dca-460d-99f1-cf13098f7777"
}, },
"show": false "show": false
} }
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