Commit 92263bac authored by unknown's avatar unknown

关卡完全好了

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