Commit c17f6288 authored by unknown's avatar unknown

食物派对和快问快答加入玩法说明

parent 2941a6e8
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
"rawHeight": 110, "rawHeight": 110,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 53,
"borderRight": 0, "borderRight": 51,
"packable": true, "packable": true,
"isUuid": true, "isUuid": true,
"imageUuidOrDatabaseUri": "e46a0e17-feab-47b2-a420-68e833a7f45f@6c48a", "imageUuidOrDatabaseUri": "e46a0e17-feab-47b2-a420-68e833a7f45f@6c48a",
......
{
"ver": "1.0.21",
"importer": "image",
"imported": true,
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60",
"files": [
".png",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@6c48a",
"displayName": "编组 3备份 8",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "fc3861cd-4450-42f8-93c8-d8eb45c13e60"
},
"ver": "1.0.21",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941",
"displayName": "编组 3备份 8",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 240,
"height": 110,
"rawWidth": 240,
"rawHeight": 110,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 191,
"borderRight": 25,
"packable": true,
"isUuid": true,
"imageUuidOrDatabaseUri": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@6c48a",
"atlasUuid": ""
},
"ver": "1.0.9",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "sprite-frame",
"redirect": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941"
}
}
...@@ -853,7 +853,7 @@ ...@@ -853,7 +853,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 240, "width": 280,
"height": 110 "height": 110
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -893,9 +893,9 @@ ...@@ -893,9 +893,9 @@
"__uuid__": "e46a0e17-feab-47b2-a420-68e833a7f45f@f9941", "__uuid__": "e46a0e17-feab-47b2-a420-68e833a7f45f@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 1,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -972,7 +972,7 @@ ...@@ -972,7 +972,7 @@
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "8ekrwCGFJAf4/g0sSsV4qu" "fileId": "22Zg5K6ZhBfKuBfamLGz7p"
}, },
{ {
"__type__": "cc.ClickEvent", "__type__": "cc.ClickEvent",
...@@ -992,7 +992,7 @@ ...@@ -992,7 +992,7 @@
"asset": { "asset": {
"__id__": 0 "__id__": 0
}, },
"fileId": "575AJ1gZNLmJ65Hg90j7us" "fileId": "adHlrsiSNAYqMH9zH6Fw7j"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
...@@ -1071,7 +1071,7 @@ ...@@ -1071,7 +1071,7 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 67.014, "x": 106.169,
"y": 4.469, "y": 4.469,
"z": 0 "z": 0
}, },
...@@ -1191,7 +1191,7 @@ ...@@ -1191,7 +1191,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 240, "width": 280,
"height": 110 "height": 110
}, },
"_anchorPoint": { "_anchorPoint": {
...@@ -1228,12 +1228,12 @@ ...@@ -1228,12 +1228,12 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "0f027098-877e-40c1-84d2-fa8a96cadf53@f9941", "__uuid__": "fc3861cd-4450-42f8-93c8-d8eb45c13e60@f9941",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 1,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
...@@ -1296,10 +1296,7 @@ ...@@ -1296,10 +1296,7 @@
"b": 124, "b": 124,
"a": 255 "a": 255
}, },
"_normalSprite": { "_normalSprite": null,
"__uuid__": "0f027098-877e-40c1-84d2-fa8a96cadf53@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_hoverSprite": null, "_hoverSprite": null,
"_pressedSprite": null, "_pressedSprite": null,
"_disabledSprite": null, "_disabledSprite": null,
......
...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/ ...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/
import { BeginCountdownView } from '../../commonView/script/BeginCountdownView'; import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import { ChallengeFailView } from '../../commonView/script/ChallengeFailView'; import { ChallengeFailView } from '../../commonView/script/ChallengeFailView';
import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView'; import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView';
import { GameDescView } from '../../commonView/script/GameDescView';
import { FFTPPipAnswerView } from './FFTPPipAnswerView'; import { FFTPPipAnswerView } from './FFTPPipAnswerView';
import { FFTPPipCtr } from './FFTPPipCtr'; import { FFTPPipCtr } from './FFTPPipCtr';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
...@@ -88,6 +89,24 @@ export class FoodForThePartyCtr extends Component { ...@@ -88,6 +89,24 @@ export class FoodForThePartyCtr extends Component {
private costTime = 0; private costTime = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
private isShowGameDescViewOnce = false;
showGameDescView() {
viewMgr.openView(VIEW_DEF.GameDescView, (node) => {
node.getComponent(GameDescView)?.setDesc("记住进入每个管道中的每种食物的数量。");
});
}
onCloseGameDescView() {
if (!this.isShowGameDescViewOnce) {
this.isShowGameDescViewOnce = true;
this.roundStart();
}
else {
this.gameState = GAME_STATE.RUN;
}
}
setGameData(resData: object) { setGameData(resData: object) {
console.log(`kkkkkkttttttttt`); console.log(`kkkkkkttttttttt`);
//@ts-ignore //@ts-ignore
...@@ -115,6 +134,14 @@ export class FoodForThePartyCtr extends Component { ...@@ -115,6 +134,14 @@ export class FoodForThePartyCtr extends Component {
//@ts-ignore //@ts-ignore
this.oneScore = resData.oneScore; this.oneScore = resData.oneScore;
} }
//@ts-ignore
if (resData.isShowGuide) {
//@ts-ignore
this.isShowGameDescViewOnce = false;
}
else {
this.isShowGameDescViewOnce = true;
}
} }
start() { start() {
...@@ -131,11 +158,16 @@ export class FoodForThePartyCtr extends Component { ...@@ -131,11 +158,16 @@ export class FoodForThePartyCtr extends Component {
director.on("finish_game", () => { director.on("finish_game", () => {
}); });
director.on("begin_countdown_end", () => { director.on("begin_countdown_end", () => {
//引导 //引导
this.roundStart(); if (!this.isShowGameDescViewOnce) {
this.showGameDescView();
}
else {
this.roundStart();
}
}, this); }, this);
director.on("game_desc_close", this.onCloseGameDescView, this);
director.on("add_score", () => { director.on("add_score", () => {
this.curScore += this.oneScore; this.curScore += this.oneScore;
this.curScoreLab.string = "我的" + this.curScore + "分"; this.curScoreLab.string = "我的" + this.curScore + "分";
......
...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/ ...@@ -9,6 +9,7 @@ import { GameEndDataItf, htmlSendDataMgr } from '../../../../startFolder/script/
import { BeginCountdownView } from '../../commonView/script/BeginCountdownView'; import { BeginCountdownView } from '../../commonView/script/BeginCountdownView';
import { ChallengeFailView } from '../../commonView/script/ChallengeFailView'; import { ChallengeFailView } from '../../commonView/script/ChallengeFailView';
import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView'; import { ChallengeSuccView } from '../../commonView/script/ChallengeSuccView';
import { GameDescView } from '../../commonView/script/GameDescView';
import { SwitchErrorView } from '../../commonView/script/SwitchErrorView'; import { SwitchErrorView } from '../../commonView/script/SwitchErrorView';
import { SwitchOkView } from '../../commonView/script/SwitchOkView'; import { SwitchOkView } from '../../commonView/script/SwitchOkView';
import { QQDrawingMachineCtr } from './QQDrawingMachineCtr'; import { QQDrawingMachineCtr } from './QQDrawingMachineCtr';
...@@ -59,6 +60,19 @@ export class QuickQuizCtr extends Component { ...@@ -59,6 +60,19 @@ export class QuickQuizCtr extends Component {
private costTime = 0; private costTime = 0;
private isPlayCountdownMus = false; private isPlayCountdownMus = false;
private isShowGameDescViewOnce = false;
showGameDescView() {
this.isShowGameDescViewOnce = true;
viewMgr.openView(VIEW_DEF.GameDescView, (node) => {
node.getComponent(GameDescView)?.setDesc("当小球落入某个洞时,判断其是否符合该洞所对应的题目。\n正确点击勾,错误点击叉。");
});
}
onCloseGameDescView() {
this.gameState = GAME_STATE.RUN;
}
setGameData(resData: object) { setGameData(resData: object) {
//@ts-ignore //@ts-ignore
if (resData.totalTime) { if (resData.totalTime) {
...@@ -70,11 +84,19 @@ export class QuickQuizCtr extends Component { ...@@ -70,11 +84,19 @@ export class QuickQuizCtr extends Component {
//@ts-ignore //@ts-ignore
this.succScore = resData.succScore; this.succScore = resData.succScore;
} }
//@ts-ignore //@ts-ignore
if (resData.oneScore) { if (resData.oneScore) {
//@ts-ignore //@ts-ignore
this.oneScore = resData.oneScore; this.oneScore = resData.oneScore;
} }
//@ts-ignore
if (resData.isShowGuide) {
//@ts-ignore
this.isShowGameDescViewOnce = false;
}
else {
this.isShowGameDescViewOnce = true;
}
} }
start() { start() {
...@@ -88,19 +110,27 @@ export class QuickQuizCtr extends Component { ...@@ -88,19 +110,27 @@ export class QuickQuizCtr extends Component {
}); });
director.on("finish_game", () => { director.on("finish_game", () => {
}); });
director.on("begin_countdown_end", () => { director.on("begin_countdown_end", () => {
//引导 //引导
this.gameState = GAME_STATE.RUN; if (!this.isShowGameDescViewOnce) {
this.gameState = GAME_STATE.READY;
this.showGameDescView();
}
else {
this.gameState = GAME_STATE.RUN;
}
}, this); }, this);
director.on("game_desc_close", this.onCloseGameDescView, this);
this.gameStart(); this.gameStart();
} }
onDestroy(){ onDestroy() {
director.off("continue_game"); director.off("continue_game");
director.off("begin_countdown_end"); director.off("begin_countdown_end");
director.off("game_desc_close", this.onCloseGameDescView, this);
} }
update(deltaTime: number) { update(deltaTime: number) {
......
...@@ -48,6 +48,7 @@ export class SudokuCtr extends Component { ...@@ -48,6 +48,7 @@ export class SudokuCtr extends Component {
private isShowGameDescViewOnce = false; private isShowGameDescViewOnce = false;
showGameDescView() { showGameDescView() {
this.isShowGameDescViewOnce = true;
viewMgr.openView(VIEW_DEF.GameDescView, (node) => { viewMgr.openView(VIEW_DEF.GameDescView, (node) => {
node.getComponent(GameDescView)?.setDesc("填入数字使同行、同列不存在相同数字,\n同种颜色的格子里也不要出现相同数字。\n如果填入数字错误可以使用橡皮擦擦掉数字,\n也可点击还原按钮直接恢复最初状态。"); node.getComponent(GameDescView)?.setDesc("填入数字使同行、同列不存在相同数字,\n同种颜色的格子里也不要出现相同数字。\n如果填入数字错误可以使用橡皮擦擦掉数字,\n也可点击还原按钮直接恢复最初状态。");
}); });
......
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
"_priority": 1073741824, "_priority": 1073741824,
"_fov": 45, "_fov": 45,
"_fovAxis": 0, "_fovAxis": 0,
"_orthoHeight": 375, "_orthoHeight": 414.4124472573839,
"_near": 1, "_near": 1,
"_far": 2000, "_far": 2000,
"_color": { "_color": {
......
...@@ -679,7 +679,8 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -679,7 +679,8 @@ export const levelCfg: OneVarLevelItf[] = [
foodVarCount: 2, foodVarCount: 2,
succScore: 5, succScore: 5,
oneScore: 1, oneScore: 1,
foodNumCount: 6 foodNumCount: 6,
isShowGuide: true
} }
} }
, { , {
...@@ -750,7 +751,8 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -750,7 +751,8 @@ export const levelCfg: OneVarLevelItf[] = [
foodVarCount: 2, foodVarCount: 2,
succScore: 5, succScore: 5,
oneScore: 1, oneScore: 1,
foodNumCount: 5 foodNumCount: 5,
isShowGuide: true
} }
} }
, { , {
...@@ -832,7 +834,8 @@ export const levelCfg: OneVarLevelItf[] = [ ...@@ -832,7 +834,8 @@ export const levelCfg: OneVarLevelItf[] = [
resData: { resData: {
totalTime: 30, totalTime: 30,
succScore: 15, succScore: 15,
oneScore: 1 oneScore: 1,
isShowGuide: true
} }
} }
, { , {
......
...@@ -23,7 +23,7 @@ export class LevelHomeCtr extends Component { ...@@ -23,7 +23,7 @@ export class LevelHomeCtr extends Component {
// [3] // [3]
if (!levelMgr.loadedOutData) { if (!levelMgr.loadedOutData) {
levelMgr.loadedOutData = true; levelMgr.loadedOutData = true;
levelMgr.gameIdHead = 130; levelMgr.gameIdHead = 101;
levelMgr.unLockCount = 10; levelMgr.unLockCount = 10;
if(Utils.getValueFromHref("gameIdHead")){ if(Utils.getValueFromHref("gameIdHead")){
levelMgr.gameIdHead = Number(Utils.getValueFromHref("gameIdHead")); levelMgr.gameIdHead = Number(Utils.getValueFromHref("gameIdHead"));
......
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