Commit 523c3b98 authored by unknown's avatar unknown

增加数字3X3舒尔特方格

parent f0c744fc
This diff is collapsed.
{"ver":"1.1.27","importer":"scene","imported":true,"uuid":"36aaa26e-4a36-431e-ad74-e670f79a3f41","files":[".json"],"subMetas":{},"userData":{}}
......@@ -321,7 +321,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 375.00000000000006,
"_orthoHeight": 414.4124472573839,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -3090,7 +3090,7 @@
},
"_enabled": true,
"__prefab": null,
"gameId": 1002,
"gameId": 1003,
"blockPosNodes": [
{
"__id__": 48
......
......@@ -321,7 +321,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 375.00000000000006,
"_orthoHeight": 414.4124472573839,
"_near": 1,
"_far": 2000,
"_color": {
......@@ -3807,7 +3807,7 @@
},
"_enabled": true,
"__prefab": null,
"gameId": 1003,
"gameId": 1004,
"blockPosNodes": [
{
"__id__": 48
......
......@@ -320,7 +320,7 @@
"_priority": 1073741824,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 375,
"_orthoHeight": 693.7362869198312,
"_near": 1,
"_far": 2000,
"_color": {
......
......@@ -34,18 +34,28 @@ export const levelCfg: OneVarLevelItf[] = [
}
, {
gameId: 1002,
sceneUnitIfo: SCENE_DEF.Schulte_4_4,
sceneUnitIfo: SCENE_DEF.Schulte_3_3,
comName: "SchulteCtr",
level: 2,
resData: {
totalTime: 60
}
}
, {
gameId: 1003,
sceneUnitIfo: SCENE_DEF.Schulte_5_5,
sceneUnitIfo: SCENE_DEF.Schulte_4_4,
comName: "SchulteCtr",
level: 3,
resData: {
totalTime: 60
}
}
, {
gameId: 1004,
sceneUnitIfo: SCENE_DEF.Schulte_5_5,
comName: "SchulteCtr",
level: 4,
resData: {
totalTime: 90
}
......
......@@ -26,13 +26,16 @@ export class LevelHomeCtr extends Component {
levelMgr.gameIdHead = 70;
levelMgr.unLockCount = 1;
if(Utils.getValueFromHref("gameIdHead")){
levelMgr.gameIdHead = <number><any>(Utils.getValueFromHref("gameIdHead"));
levelMgr.gameIdHead = Number(Utils.getValueFromHref("gameIdHead"));
}
if(Utils.getValueFromHref("unLockCount")){
levelMgr.unLockCount = <number><any>Utils.getValueFromHref("unLockCount");
levelMgr.unLockCount = Number(Utils.getValueFromHref("unLockCount"));
}
}
//
// console.log(`home关卡`);
// console.log(levelMgr.unLockCount);
// console.log(typeof levelMgr.unLockCount);
director.on("load_level", this.loadLevel, this);
this.updateStar();
}
......
......@@ -79,7 +79,7 @@ class LevelMgr {
}
}
let gameId = this._gameIdHead * 100 + this._runLevel;
// console.log(`加载关卡`, gameId, this._runLevel);
console.log(`加载关卡`, gameId, this._runLevel);
for(let i = 0; i < levelArr.length; ++ i){
if(levelArr[i].gameId == gameId) {
sceneMgr.openScene(levelArr[i].sceneUnitIfo, (scene) => {
......
......@@ -22,6 +22,7 @@ interface ScenePathItf {
ErrorScene: ScenePathUnitItf,
//舒尔特
Schulte_2_2: ScenePathUnitItf,
Schulte_3_3: ScenePathUnitItf,
Schulte_4_4: ScenePathUnitItf,
Schulte_5_5: ScenePathUnitItf,
Schulte_letter_5_5: ScenePathUnitItf,
......@@ -96,6 +97,11 @@ export const SCENE_DEF: ScenePathItf = {
sceneName: "Schulte_2_2",
desc: "舒尔特数字 2x2"
}
, Schulte_3_3: {
bundleName: "sceneBundle",
sceneName: "Schulte_3_3",
desc: "舒尔特数字 3x3"
}
, Schulte_4_4: {
bundleName: "sceneBundle",
sceneName: "Schulte_4_4",
......
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