Commit 5745a9bf authored by wjf's avatar wjf

l

parent 6ea681fb
......@@ -132,8 +132,8 @@
];
// localStorage.clear();
window['imgver'] = '1022'
window['total_level'] = 18 + 13 * 14;
window['last_level'] = 200;//必须大于等于total_level
window['total_level'] = 18 + 13 * 16;
window['last_level'] = 225;//必须大于等于total_level
// localStorage.clear();
......
......@@ -15,7 +15,7 @@ import { StateType } from "./enum/StateType";
const offsetYTwo: number[] = [];
const gameAreaHeightTwo: number[] = [];
//初始化适配位置,就因为棒棒糖的45偏移
(function () {
function initClientScale() {
var stageHeight = document.body.clientHeight / document.body.clientWidth * 750;
var middleHeight = 80 * 9;
var smallestHeight = 230 + middleHeight + 180;
......@@ -30,7 +30,7 @@ const gameAreaHeightTwo: number[] = [];
gameAreaHeightTwo[0] = stageHeight - 230 - 180;;
gameAreaHeightTwo[1] = stageHeight - 230 - 180;
}
})()
}
export class Tool {
/**
......@@ -95,6 +95,8 @@ export class Tool {
* 提前的缓存数据,千万别修改,因为给出的数据都没有深拷贝过
*/
public static init(isTwo: boolean = false, hasLollipop: boolean = false) {
//初始化屏幕尺寸
if(!offsetYTwo.length)initClientScale();
//x的偏移
var ooox: number = isTwo ? 55 : 15;// 49 : 8.25
var oooy: number = hasLollipop ? offsetYTwo[1] : offsetYTwo[0];
......
This diff is collapsed.
This diff is collapsed.
......@@ -9,9 +9,11 @@ import { Chapters7 } from "./Chapter7";
import { Chapters8 } from "./Chapter8";
import { Chapters9 } from "./Chapter9";
import { Chapters10 } from "./Chapter10";
import { Chapters11 } from "./Chapter11";
import { PassTargetData } from "../interface/PassTargetData";
import { PassType } from "../enum/PassType";
import { submitTran } from "../enum/ElementType";
import { Chapters12 } from "./Chapter12";
//所有的关卡
const chapters: ChapterData[] = [].concat(
......@@ -25,6 +27,8 @@ const chapters: ChapterData[] = [].concat(
Chapters8,
Chapters9,
Chapters10,
Chapters11,
Chapters12,
)
/**
* 获取关卡数据,返回关卡数据
......
......@@ -52,7 +52,7 @@ const config = {
data: './happyclear/openTreasureBox.json'
},
'/customActivity/happyclear/home': {
data: './happyclear/home.json'
data: './happyclear/homemax.json'
},
'/customActivity/happyclear/getLevelInfo': {
data: './happyclear/getLevelInfo.json'
......
......@@ -986,6 +986,151 @@
"levelNum": 196,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 197,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 198,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 199,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 200,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 201,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 202,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 203,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 204,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 205,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 206,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 207,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 208,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 209,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 210,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 211,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 212,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 213,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 214,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 215,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 216,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 217,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 218,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 219,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 220,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 221,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 222,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 223,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 224,
"maxScore": 47440,
"stars": 1
},
{
"levelNum": 225,
"maxScore": 47440,
"stars": 1
}
],
"remainProp": [
......
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