Commit 92263bac authored by unknown's avatar unknown

关卡完全好了

parent 7ce649fa
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -74,6 +74,14 @@ export class FaceRecognitionCtr extends Component { ...@@ -74,6 +74,14 @@ export class FaceRecognitionCtr extends Component {
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
private audioSrc: AudioSrc = null!; private audioSrc: AudioSrc = null!;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375.00000000000006, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -151,6 +151,14 @@ export class BombDisposalExpertCtr extends Component { ...@@ -151,6 +151,14 @@ export class BombDisposalExpertCtr extends Component {
private isShake = false; private isShake = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -70,6 +70,14 @@ export class BuyTicketCtr extends Component { ...@@ -70,6 +70,14 @@ export class BuyTicketCtr extends Component {
private gameState = GAME_STATE.READY; private gameState = GAME_STATE.READY;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -101,6 +101,14 @@ export class ClassifyCtr_1 extends Component { ...@@ -101,6 +101,14 @@ export class ClassifyCtr_1 extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -93,6 +93,14 @@ export class ClassifyCtr extends Component { ...@@ -93,6 +93,14 @@ export class ClassifyCtr extends Component {
private bestScore = 0; private bestScore = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
}, },
{ {
"__type__": "cc.Scene", "__type__": "cc.Scene",
"_name": "FoodForTheParty", "_name": "FoodForTheParty_1",
"_objFlags": 0, "_objFlags": 0,
"_parent": null, "_parent": null,
"_children": [ "_children": [
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -10744,7 +10744,7 @@ ...@@ -10744,7 +10744,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"gameId": 0, "gameId": 7001,
"mainNode": { "mainNode": {
"__id__": 16 "__id__": 16
}, },
......
...@@ -102,6 +102,14 @@ export class PasswordMatrixCtr extends Component { ...@@ -102,6 +102,14 @@ export class PasswordMatrixCtr extends Component {
private bestTime = 0; private bestTime = 0;
private tipsTween: Tween<Node> = null!; private tipsTween: Tween<Node> = null!;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -59,6 +59,14 @@ export class QuickQuizCtr extends Component { ...@@ -59,6 +59,14 @@ export class QuickQuizCtr extends Component {
private costTime = 0; private costTime = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375.00000000000006, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -3807,7 +3807,7 @@ ...@@ -3807,7 +3807,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"gameId": 1006, "gameId": 1101,
"blockPosNodes": [ "blockPosNodes": [
{ {
"__id__": 48 "__id__": 48
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375.00000000000006, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -3626,7 +3626,7 @@ ...@@ -3626,7 +3626,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"gameId": 1004, "gameId": 1201,
"blockPosNodes": [ "blockPosNodes": [
{ {
"__id__": 48 "__id__": 48
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375.00000000000006, "_orthoHeight": 418.6192468619247,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
...@@ -4142,7 +4142,7 @@ ...@@ -4142,7 +4142,7 @@
}, },
"_enabled": true, "_enabled": true,
"__prefab": null, "__prefab": null,
"gameId": 1005, "gameId": 1202,
"blockPosNodes": [ "blockPosNodes": [
{ {
"__id__": 48 "__id__": 48
......
...@@ -87,6 +87,14 @@ export class SiHaiShiYiCtr extends Component { ...@@ -87,6 +87,14 @@ export class SiHaiShiYiCtr extends Component {
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
private audioSrc: AudioSrc = null! private audioSrc: AudioSrc = null!
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -163,6 +163,14 @@ export class TransientCtr_1 extends Component { ...@@ -163,6 +163,14 @@ export class TransientCtr_1 extends Component {
private isShake = false; private isShake = false;
private hangGameState = GAME_STATE.GAME_PAUSE; private hangGameState = GAME_STATE.GAME_PAUSE;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
...@@ -233,7 +241,7 @@ export class TransientCtr_1 extends Component { ...@@ -233,7 +241,7 @@ export class TransientCtr_1 extends Component {
this.stopShake(); this.stopShake();
this.isPlayCountdownMus = false; this.isPlayCountdownMus = false;
this.curScore = 0; this.curScore = 0;
this.curRoundIdx = -1; // this.curRoundIdx = -1;
this.succScoreLab.string = "通关≥" + this.succScore + "分"; this.succScoreLab.string = "通关≥" + this.succScore + "分";
this.curScoreLab.string = "我的" + this.curScore + "分"; this.curScoreLab.string = "我的" + this.curScore + "分";
this.countdownLab.string = Utils.formatTime(this.totalTime * 1000); this.countdownLab.string = Utils.formatTime(this.totalTime * 1000);
...@@ -338,6 +346,7 @@ export class TransientCtr_1 extends Component { ...@@ -338,6 +346,7 @@ export class TransientCtr_1 extends Component {
} }
isGameOver() { isGameOver() {
// return true;
if (this.curRoundIdx + 1 >= this.roundsIfo.length) { if (this.curRoundIdx + 1 >= this.roundsIfo.length) {
//游戏结束 //游戏结束
return true; return true;
......
...@@ -156,6 +156,14 @@ export class UniqueCtr_1 extends Component { ...@@ -156,6 +156,14 @@ export class UniqueCtr_1 extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
let outGameTime = Utils.getValueFromHref("gameTime"); let outGameTime = Utils.getValueFromHref("gameTime");
if (outGameTime !== null) { if (outGameTime !== null) {
......
...@@ -157,6 +157,14 @@ export class UniqueCtr_2 extends Component { ...@@ -157,6 +157,14 @@ export class UniqueCtr_2 extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
if (EDITOR) { if (EDITOR) {
return; return;
......
...@@ -160,6 +160,14 @@ export class UniqueCtr extends Component { ...@@ -160,6 +160,14 @@ export class UniqueCtr extends Component {
private bestScore: number = 0; private bestScore: number = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
setGameData(resData: object){
//@ts-ignore
if(resData.totalTime){
//@ts-ignore
this.totalTime = resData.totalTime;
}
}
start() { start() {
if (EDITOR) { if (EDITOR) {
return; return;
......
This diff is collapsed.
...@@ -22,7 +22,7 @@ export class LevelHomeCtr extends Component { ...@@ -22,7 +22,7 @@ export class LevelHomeCtr extends Component {
// [3] // [3]
if (!levelMgr.loadedOutData) { if (!levelMgr.loadedOutData) {
levelMgr.loadedOutData = true; levelMgr.loadedOutData = true;
levelMgr.gameIdHead = 10; levelMgr.gameIdHead = 70;
levelMgr.unLockCount = 1; levelMgr.unLockCount = 1;
} }
// //
...@@ -54,6 +54,7 @@ export class LevelHomeCtr extends Component { ...@@ -54,6 +54,7 @@ export class LevelHomeCtr extends Component {
} }
let levelArr = levelMgr.getLevelItfArr(levelMgr.gameIdHead); let levelArr = levelMgr.getLevelItfArr(levelMgr.gameIdHead);
// console.log(`个数`, count); // console.log(`个数`, count);
this.secondLayout!.active = count > 5 ? true : false;
for (let i = 0; i < starArr.length; ++i) { for (let i = 0; i < starArr.length; ++i) {
if (i >= count) starArr[i].node.active = false; if (i >= count) starArr[i].node.active = false;
else starArr[i].node.active = true; else starArr[i].node.active = true;
......
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