Commit 36b06aff authored by haiyoucuv's avatar haiyoucuv

上传

parent c0575648
import Panel from "../../Module/Panel";
import { _decorator, Button, Node } from "cc";
import { observer, render } from "../store/decorators";
const {ccclass, property} = _decorator;
import { popWindow } from "../AppTool";
@observer
@ccclass('BackPanel')
export default class BackPanel extends Panel {
static skin = "BackPanel";
static group = "BackPanel";
@property(Node) closeBtn: Node = null;
@property(Node) yes: Node = null;
@property(Node) no: Node = null;
onLoad() {
this.closeBtn.on(Button.EventType.CLICK, this.clickClose);
this.no.on(Button.EventType.CLICK, this.clickClose);
this.yes.on(Button.EventType.CLICK, this.clickYes);
}
clickClose = () => {
this.hidePanel();
}
clickYes = () => {
popWindow();
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"e5585b7a-910d-44c9-b376-319c311ab59f","files":[],"subMetas":{},"userData":{}}
...@@ -9,7 +9,7 @@ import { GuideScene } from "./GuideScene"; ...@@ -9,7 +9,7 @@ import { GuideScene } from "./GuideScene";
import GameMgr from "../GameMgr"; import GameMgr from "../GameMgr";
import RankPanel from "../Panels/RankPanel"; import RankPanel from "../Panels/RankPanel";
import { UIMgr } from "../../Module/UIMgr"; import { UIMgr } from "../../Module/UIMgr";
import { popWindow } from "../AppTool"; import { AudioMgr } from "../../core_tgx/base/AudioMgr";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -35,6 +35,11 @@ export class HomeScene extends Scene { ...@@ -35,6 +35,11 @@ export class HomeScene extends Scene {
} }
async start() { async start() {
AudioMgr.ins.play("audio/飞球背景音乐", true);
await store.updateIndex(); await store.updateIndex();
UIMgr.ins.preloadScene(MainGame); UIMgr.ins.preloadScene(MainGame);
......
...@@ -2,7 +2,7 @@ import { ...@@ -2,7 +2,7 @@ import {
_decorator, _decorator,
Collider, Collider,
Color, Color,
easing, EPhysicsDrawFlags, easing, EPhysicsDrawFlags, game,
ICollisionEvent, ICollisionEvent,
Input, Input,
input, input,
...@@ -25,6 +25,7 @@ import Scene from "db://assets/Module/Scene"; ...@@ -25,6 +25,7 @@ import Scene from "db://assets/Module/Scene";
import { Wall } from "./Wall"; import { Wall } from "./Wall";
import { sleep } from "../../Utils/Utils"; import { sleep } from "../../Utils/Utils";
import GameMgr from "../../GameMgr"; import GameMgr from "../../GameMgr";
import { AudioMgr } from "../../../core_tgx/base/AudioMgr";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -98,8 +99,6 @@ export class MainGame extends Scene { ...@@ -98,8 +99,6 @@ export class MainGame extends Scene {
maxZ = 0; maxZ = 0;
onLoad() { onLoad() {
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);
...@@ -111,7 +110,6 @@ export class MainGame extends Scene { ...@@ -111,7 +110,6 @@ export class MainGame extends Scene {
this.playerBody = this.player.getComponent(RigidBody); this.playerBody = this.player.getComponent(RigidBody);
this.playerConstraint = this.linkPoint.getComponent(PointToPointConstraint); this.playerConstraint = this.linkPoint.getComponent(PointToPointConstraint);
} }
async start() { async start() {
...@@ -251,6 +249,8 @@ export class MainGame extends Scene { ...@@ -251,6 +249,8 @@ export class MainGame extends Scene {
this.isTouch = true; this.isTouch = true;
AudioMgr.ins.playOneShot("audio/点击音效");
this.line.active = true; this.line.active = true;
const pPos = this.player.position; const pPos = this.player.position;
...@@ -293,7 +293,7 @@ export class MainGame extends Scene { ...@@ -293,7 +293,7 @@ export class MainGame extends Scene {
onTouchEnd(event: any) { onTouchEnd(event: any) {
if (this.isOver) return; if (this.isOver) return;
if(!this.isTouch)return; if (!this.isTouch) return;
this.isTouch = false; this.isTouch = false;
this.line.active = false; this.line.active = false;
...@@ -359,7 +359,7 @@ export class MainGame extends Scene { ...@@ -359,7 +359,7 @@ export class MainGame extends Scene {
updateScore() { updateScore() {
this.score = ~~(this.maxZ * 15) + this.propScore; this.score = ~~(this.maxZ * 15) + this.propScore;
if(this.score > 9999){ if (this.score > 9999) {
this.score = 9999; this.score = 9999;
PhysicsSystem.instance.enable = false; PhysicsSystem.instance.enable = false;
this.gameOver(); this.gameOver();
...@@ -374,6 +374,17 @@ export class MainGame extends Scene { ...@@ -374,6 +374,17 @@ export class MainGame extends Scene {
return Math.min(this.score, 5000) / 5000; return Math.min(this.score, 5000) / 5000;
} }
protected lateUpdate(dt: number) {
// PhysicsSystem.instance.physicsWorld.syncSceneToPhysics();
//
// // PhysicsSystem.instance.fixedTimeStep = dt;
// // PhysicsSystem.instance.update(dt);
// PhysicsSystem.instance.step(1/60, dt);
//
// PhysicsSystem.instance.physicsWorld.emitEvents();
// PhysicsSystem.instance.physicsWorld.syncAfterEvents();
}
update(dt: number) { update(dt: number) {
if (this.isOver) return; if (this.isOver) return;
......
...@@ -6,6 +6,7 @@ import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene"; ...@@ -6,6 +6,7 @@ import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import { sendWebNet, WebNetName } from "../Scripts/Utils/WebNet/WebNet"; import { sendWebNet, WebNetName } from "../Scripts/Utils/WebNet/WebNet";
import { getUrlParams } from "../Scripts/Utils/WebNet/web/webTools"; import { getUrlParams } from "../Scripts/Utils/WebNet/web/webTools";
import store from "../Scripts/store/store"; import store from "../Scripts/store/store";
import { AudioMgr } from "../core_tgx/base/AudioMgr";
const {ccclass, property} = _decorator; const {ccclass, property} = _decorator;
...@@ -37,7 +38,6 @@ export class Start extends Component { ...@@ -37,7 +38,6 @@ export class Start extends Component {
UIMgr.ins.setup(this.uiPrefab); UIMgr.ins.setup(this.uiPrefab);
document.body.style.visibility = "visible"; document.body.style.visibility = "visible";
} }
......
//AudioMgr.ts //AudioMgr.ts
import { Node, AudioSource, AudioClip, resources, director, assetManager } from 'cc'; import { Node, AudioSource, AudioClip, resources, director, assetManager } from 'cc';
/** /**
* @en * @en
* this is a sington class for audio play, can be easily called from anywhere in you project. * this is a sington class for audio play, can be easily called from anywhere in you project.
...@@ -8,18 +9,19 @@ import { Node, AudioSource, AudioClip, resources, director, assetManager } from ...@@ -8,18 +9,19 @@ import { Node, AudioSource, AudioClip, resources, director, assetManager } from
*/ */
export class AudioMgr { export class AudioMgr {
private static _inst: AudioMgr; private static _ins: AudioMgr;
public static get inst(): AudioMgr { public static get ins(): AudioMgr {
if (this._inst == null) { if (!this._ins) {
this._inst = new AudioMgr(); this._ins = new AudioMgr();
} }
return this._inst; return this._ins;
} }
private _audioSource: AudioSource; private _audioSource: AudioSource;
private _musicVolume = 1.0; private _musicVolume = 1.0;
private _musicVolumeScale = 1.0; private _musicVolumeScale = 1.0;
private _soundVolume = 1.0; private _soundVolume = 1.0;
constructor() { constructor() {
//@en create a node as audioMgr //@en create a node as audioMgr
//@zh 创建一个节点作为 audioMgr //@zh 创建一个节点作为 audioMgr
...@@ -58,20 +60,18 @@ export class AudioMgr { ...@@ -58,20 +60,18 @@ export class AudioMgr {
* @zh * @zh
* 播放短音频,比如 打击音效,爆炸音效等 * 播放短音频,比如 打击音效,爆炸音效等
* @param sound clip or url for the audio * @param sound clip or url for the audio
* @param volume * @param volume
*/ */
playOneShot(sound: AudioClip | string, volume: number = 1.0, bundleName: string = 'resources') { playOneShot(sound: AudioClip | string, volume: number = 1.0, bundleName: string = 'resources') {
if (sound instanceof AudioClip) { if (sound instanceof AudioClip) {
this._audioSource.volume = 1.0; this._audioSource.volume = 1.0;
this._audioSource.playOneShot(sound, volume * this._soundVolume); this._audioSource.playOneShot(sound, volume * this._soundVolume);
} } else {
else {
let bundle = assetManager.getBundle(bundleName); let bundle = assetManager.getBundle(bundleName);
bundle.load(sound, (err, clip: AudioClip) => { bundle.load(sound, (err, clip: AudioClip) => {
if (err) { if (err) {
console.log(err); console.log(err);
} } else {
else {
this._audioSource.volume = 1.0; this._audioSource.volume = 1.0;
this._audioSource.playOneShot(clip, volume * this._soundVolume); this._audioSource.playOneShot(clip, volume * this._soundVolume);
} }
...@@ -85,23 +85,25 @@ export class AudioMgr { ...@@ -85,23 +85,25 @@ export class AudioMgr {
* @zh * @zh
* 播放长音频,比如 背景音乐 * 播放长音频,比如 背景音乐
* @param sound clip or url for the sound * @param sound clip or url for the sound
* @param volume * @param loop
* @param volume
* @param bundleName
*/ */
play(sound: AudioClip | string, volume: number = 1.0, bundleName: string = 'resources') { play(sound: AudioClip | string, loop: boolean = false, volume: number = 1.0, bundleName: string = 'resources') {
this._musicVolumeScale = volume; this._musicVolumeScale = volume;
if (sound instanceof AudioClip) { if (sound instanceof AudioClip) {
this._audioSource.clip = sound; this._audioSource.clip = sound;
this._audioSource.loop = loop;
this._audioSource.play(); this._audioSource.play();
this.audioSource.volume = this._musicVolume * this._musicVolumeScale; this.audioSource.volume = this._musicVolume * this._musicVolumeScale;
} } else {
else {
let bundle = assetManager.getBundle(bundleName); let bundle = assetManager.getBundle(bundleName);
bundle.load(sound, (err, clip: AudioClip) => { bundle.load(sound, (err, clip: AudioClip) => {
if (err) { if (err) {
console.log(err); console.log(err);
} } else {
else {
this._audioSource.clip = clip; this._audioSource.clip = clip;
this._audioSource.loop = loop;
this._audioSource.play(); this._audioSource.play();
this.audioSource.volume = this._musicVolume * this._musicVolumeScale; this.audioSource.volume = this._musicVolume * this._musicVolumeScale;
} }
......
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"8bb0f8e1-4b82-4896-8741-1c77ba5cb975","files":[],"subMetas":{},"userData":{}}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "0fe5b446-0dca-460d-99f1-cf13098f7777",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "BackPanel"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "2b51ad0b-f8b1-4dab-96c6-8678d2acdc26",
"files": [],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "9f11c074-9c34-4963-aa56-cbb650c7db27",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "9f11c074-9c34-4963-aa56-cbb650c7db27@6c48a",
"displayName": "BackPanel",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "9f11c074-9c34-4963-aa56-cbb650c7db27",
"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": "9f11c074-9c34-4963-aa56-cbb650c7db27@f9941",
"displayName": "BackPanel",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 625,
"height": 488,
"rawWidth": 625,
"rawHeight": 488,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-312.5,
-244,
0,
312.5,
-244,
0,
-312.5,
244,
0,
312.5,
244,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
488,
625,
488,
0,
0,
625,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-312.5,
-244,
0
],
"maxPos": [
312.5,
244,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "9f11c074-9c34-4963-aa56-cbb650c7db27@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "9f11c074-9c34-4963-aa56-cbb650c7db27@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f5976a2b-422e-404c-98e0-d028d384717d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f5976a2b-422e-404c-98e0-d028d384717d@6c48a",
"displayName": "no",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f5976a2b-422e-404c-98e0-d028d384717d",
"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": "f5976a2b-422e-404c-98e0-d028d384717d@f9941",
"displayName": "no",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 213,
"height": 71,
"rawWidth": 213,
"rawHeight": 71,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-106.5,
-35.5,
0,
106.5,
-35.5,
0,
-106.5,
35.5,
0,
106.5,
35.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
71,
213,
71,
0,
0,
213,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-106.5,
-35.5,
0
],
"maxPos": [
106.5,
35.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f5976a2b-422e-404c-98e0-d028d384717d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f5976a2b-422e-404c-98e0-d028d384717d@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "80351fa4-5441-42b8-ae10-70ec2452a194",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "80351fa4-5441-42b8-ae10-70ec2452a194@6c48a",
"displayName": "yes",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "80351fa4-5441-42b8-ae10-70ec2452a194",
"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": "80351fa4-5441-42b8-ae10-70ec2452a194@f9941",
"displayName": "yes",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 213,
"height": 71,
"rawWidth": 213,
"rawHeight": 71,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-106.5,
-35.5,
0,
106.5,
-35.5,
0,
-106.5,
35.5,
0,
106.5,
35.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
71,
213,
71,
0,
0,
213,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-106.5,
-35.5,
0
],
"maxPos": [
106.5,
35.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "80351fa4-5441-42b8-ae10-70ec2452a194@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "80351fa4-5441-42b8-ae10-70ec2452a194@6c48a"
}
}
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
"_prefab": null, "_prefab": null,
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 375, "x": 375.00000000000006,
"y": 812, "y": 812,
"z": 0 "z": 0
}, },
...@@ -391,7 +391,7 @@ ...@@ -391,7 +391,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 665.84, "y": 649.6,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 3, "x": 3,
"y": -289.286, "y": -272.5,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
...@@ -541,9 +541,9 @@ ...@@ -541,9 +541,9 @@
"__prefab": null, "__prefab": null,
"_alignFlags": 9, "_alignFlags": 9,
"_target": null, "_target": null,
"_left": 119, "_left": 119.00000000000006,
"_right": 0, "_right": 0,
"_top": 156.786, "_top": 140,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
...@@ -586,8 +586,8 @@ ...@@ -586,8 +586,8 @@
"_prefab": null, "_prefab": null,
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 375, "x": 375.00000000000006,
"y": -107.286, "y": 0,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
...@@ -625,8 +625,8 @@ ...@@ -625,8 +625,8 @@
"__prefab": null, "__prefab": null,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 173, "width": 138,
"height": 63 "height": 49
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -688,7 +688,7 @@ ...@@ -688,7 +688,7 @@
"_target": null, "_target": null,
"_left": 288.5, "_left": 288.5,
"_right": 0, "_right": 0,
"_top": 75.786, "_top": -24.5,
"_bottom": 218, "_bottom": 218,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
...@@ -781,8 +781,8 @@ ...@@ -781,8 +781,8 @@
"_prefab": null, "_prefab": null,
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -321.5, "x": -328.00000000000006,
"y": -28.5, "y": 0,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
...@@ -820,8 +820,8 @@ ...@@ -820,8 +820,8 @@
"__prefab": null, "__prefab": null,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 57, "width": 48,
"height": 57 "height": 48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -881,9 +881,9 @@ ...@@ -881,9 +881,9 @@
"__prefab": null, "__prefab": null,
"_alignFlags": 9, "_alignFlags": 9,
"_target": null, "_target": null,
"_left": 25, "_left": 23,
"_right": 0, "_right": 0,
"_top": 0, "_top": -24,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
...@@ -951,7 +951,7 @@ ...@@ -951,7 +951,7 @@
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "rule", "_name": "tutorial",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"_parent": { "_parent": {
...@@ -976,8 +976,8 @@ ...@@ -976,8 +976,8 @@
"_prefab": null, "_prefab": null,
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": -375, "x": -204.00000000000006,
"y": -107.286, "y": 0,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
...@@ -1015,12 +1015,12 @@ ...@@ -1015,12 +1015,12 @@
"__prefab": null, "__prefab": null,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 221, "width": 172,
"height": 63 "height": 48
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0.5,
"y": 0.5 "y": 0.5
}, },
"_id": "e7q23NiylB7ozGfoI7Ojm2" "_id": "e7q23NiylB7ozGfoI7Ojm2"
...@@ -1076,9 +1076,9 @@ ...@@ -1076,9 +1076,9 @@
"__prefab": null, "__prefab": null,
"_alignFlags": 9, "_alignFlags": 9,
"_target": null, "_target": null,
"_left": 0, "_left": 85,
"_right": 0, "_right": 0,
"_top": 75.786, "_top": -24,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
...@@ -1158,7 +1158,7 @@ ...@@ -1158,7 +1158,7 @@
"__prefab": null, "__prefab": null,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 750, "width": 750.0000000000001,
"height": 0 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -1182,7 +1182,7 @@ ...@@ -1182,7 +1182,7 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0.09, "_top": 0.1,
"_bottom": 812, "_bottom": 812,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": -0.2, "_verticalCenter": -0.2,
...@@ -1393,7 +1393,7 @@ ...@@ -1393,7 +1393,7 @@
"_prefab": null, "_prefab": null,
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 13, "x": 12.999999999999943,
"y": -108, "y": -108,
"z": 0 "z": 0
}, },
...@@ -1569,7 +1569,7 @@ ...@@ -1569,7 +1569,7 @@
"y": -180, "y": -180,
"z": -19.35996391123362 "z": -19.35996391123362
}, },
"_id": "26tsSxhAJJG5V/Mix0doJc" "_id": "d6Pu4bIm5Fg6B+4SV5sSez"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -1591,7 +1591,7 @@ ...@@ -1591,7 +1591,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "caYXxCXYRF7pD2zGa+nc7C" "_id": "11+NwKpsVKuJF+KW7TpK5x"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -1627,7 +1627,7 @@ ...@@ -1627,7 +1627,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "0e7VD8aNtDGYmHPnq9aM1G" "_id": "d2AB41YxROQqeppR3xq9AV"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -1675,7 +1675,7 @@ ...@@ -1675,7 +1675,7 @@
"y": 180, "y": 180,
"z": 0 "z": 0
}, },
"_id": "45QwcTro9Ky4/CsxQvJqgX" "_id": "38iOOYNwVItZknHLq+Bt/e"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -1697,7 +1697,7 @@ ...@@ -1697,7 +1697,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "b889rrowxNTasOVlCl2IwT" "_id": "aduorvarNDZLU5QOWfVR6b"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -1733,7 +1733,7 @@ ...@@ -1733,7 +1733,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "35FB0TzztFip7LdatH4SkU" "_id": "88VSR5PrFBz5KkWJQOg9QA"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -1781,7 +1781,7 @@ ...@@ -1781,7 +1781,7 @@
"y": 180, "y": 180,
"z": 0 "z": 0
}, },
"_id": "e2NaW0wa9AppPMbRkRYyLW" "_id": "d6Z50Zm1ZASKaiFMX6eNuC"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -1803,7 +1803,7 @@ ...@@ -1803,7 +1803,7 @@
"x": 0, "x": 0,
"y": 1 "y": 1
}, },
"_id": "42Pms7v7pJL5FN04NDe9YU" "_id": "75dcuvTK5KAaD1hW9TVSth"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
...@@ -1839,7 +1839,7 @@ ...@@ -1839,7 +1839,7 @@
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_useGrayscale": false, "_useGrayscale": false,
"_atlas": null, "_atlas": null,
"_id": "55YbQvrqtAz4toKXktEeqQ" "_id": "3am3e4aMxEBoZukcfa18vZ"
}, },
{ {
"__type__": "cc.UITransform", "__type__": "cc.UITransform",
...@@ -2105,7 +2105,7 @@ ...@@ -2105,7 +2105,7 @@
"__prefab": null, "__prefab": null,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 750, "width": 750.0000000000001,
"height": 0 "height": 0
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -2157,7 +2157,7 @@ ...@@ -2157,7 +2157,7 @@
"__prefab": null, "__prefab": null,
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 750, "width": 750.0000000000001,
"height": 1624 "height": 1624
}, },
"_anchorPoint": { "_anchorPoint": {
......
assets/resources/HomeScene/png/rank.png

14.5 KB | W: | H:

assets/resources/HomeScene/png/rank.png

9.94 KB | W: | H:

assets/resources/HomeScene/png/rank.png
assets/resources/HomeScene/png/rank.png
assets/resources/HomeScene/png/rank.png
assets/resources/HomeScene/png/rank.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 173, "width": 138,
"height": 63, "height": 49,
"rawWidth": 173, "rawWidth": 138,
"rawHeight": 63, "rawHeight": 49,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
...@@ -61,17 +61,17 @@ ...@@ -61,17 +61,17 @@
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-86.5, -69,
-31.5, -24.5,
0, 0,
86.5, 69,
-31.5, -24.5,
0, 0,
-86.5, -69,
31.5, 24.5,
0, 0,
86.5, 69,
31.5, 24.5,
0 0
], ],
"indexes": [ "indexes": [
...@@ -84,12 +84,12 @@ ...@@ -84,12 +84,12 @@
], ],
"uv": [ "uv": [
0, 0,
63, 49,
173, 138,
63, 49,
0, 0,
0, 0,
173, 138,
0 0
], ],
"nuv": [ "nuv": [
...@@ -103,13 +103,13 @@ ...@@ -103,13 +103,13 @@
1 1
], ],
"minPos": [ "minPos": [
-86.5, -69,
-31.5, -24.5,
0 0
], ],
"maxPos": [ "maxPos": [
86.5, 69,
31.5, 24.5,
0 0
] ]
}, },
......
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 221, "width": 172,
"height": 63, "height": 48,
"rawWidth": 221, "rawWidth": 172,
"rawHeight": 63, "rawHeight": 48,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
...@@ -61,17 +61,17 @@ ...@@ -61,17 +61,17 @@
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-110.5, -86,
-31.5, -24,
0, 0,
110.5, 86,
-31.5, -24,
0, 0,
-110.5, -86,
31.5, 24,
0, 0,
110.5, 86,
31.5, 24,
0 0
], ],
"indexes": [ "indexes": [
...@@ -84,12 +84,12 @@ ...@@ -84,12 +84,12 @@
], ],
"uv": [ "uv": [
0, 0,
63, 48,
221, 172,
63, 48,
0, 0,
0, 0,
221, 172,
0 0
], ],
"nuv": [ "nuv": [
...@@ -103,13 +103,13 @@ ...@@ -103,13 +103,13 @@
1 1
], ],
"minPos": [ "minPos": [
-110.5, -86,
-31.5, -24,
0 0
], ],
"maxPos": [ "maxPos": [
110.5, 86,
31.5, 24,
0 0
] ]
}, },
......
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 57, "width": 48,
"height": 57, "height": 48,
"rawWidth": 57, "rawWidth": 48,
"rawHeight": 57, "rawHeight": 48,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
...@@ -61,17 +61,17 @@ ...@@ -61,17 +61,17 @@
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-28.5, -24,
-28.5, -24,
0, 0,
28.5, 24,
-28.5, -24,
0, 0,
-28.5, -24,
28.5, 24,
0, 0,
28.5, 24,
28.5, 24,
0 0
], ],
"indexes": [ "indexes": [
...@@ -84,12 +84,12 @@ ...@@ -84,12 +84,12 @@
], ],
"uv": [ "uv": [
0, 0,
57, 48,
57, 48,
57, 48,
0, 0,
0, 0,
57, 48,
0 0
], ],
"nuv": [ "nuv": [
...@@ -103,13 +103,13 @@ ...@@ -103,13 +103,13 @@
1 1
], ],
"minPos": [ "minPos": [
-28.5, -24,
-28.5, -24,
0 0
], ],
"maxPos": [ "maxPos": [
28.5, 24,
28.5, 24,
0 0
] ]
}, },
......
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "0b3040bb-f48a-45f2-80e7-ca0714dff2c7",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
<!--<link rel="apple-touch-icon" href=".png" />--> <!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />--> <!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/src/assets/plugin/zepto.min.js"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/src/assets/plugin/zepto.min.js"></script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/src/assets/plugin/declare-process.js"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/src/assets/plugin/declare-process.js"></script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/style.css" /> <link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/style.css" />
<link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/custom.css" /> <link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/custom.css" />
<script type="text/javascript" src="https://appx/web-view.min.js"></script> <script type="text/javascript" src="https://appx/web-view.min.js"></script>
...@@ -51,16 +51,16 @@ ...@@ -51,16 +51,16 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/src/system.bundle.js" charset="utf-8"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script> <script>
System.import('//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726057349058/index.js').catch(function (err) { System.import('//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1726128905034/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
"_value": false "_value": false
}, },
"audio": { "audio": {
"_value": false "_value": true
}, },
"video": { "video": {
"_value": false "_value": false
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
"2d", "2d",
"3d", "3d",
"animation", "animation",
"audio",
"base", "base",
"debug-renderer", "debug-renderer",
"geometry-renderer", "geometry-renderer",
......
...@@ -31,8 +31,10 @@ ...@@ -31,8 +31,10 @@
"3": 20, "3": 20,
"4": 8 "4": 8
}, },
"maxSubSteps": 2, "maxSubSteps": 1,
"defaultMaterial": "ba21476f-2866-4f81-9c4d-6e359316e448" "defaultMaterial": "ba21476f-2866-4f81-9c4d-6e359316e448",
"fixedTimeStep": 0.016666666666666666,
"autoSimulation": true
}, },
"layer": [], "layer": [],
"version": "2.4.10", "version": "2.4.10",
......
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