Commit dd7c7b58 authored by haiyoucuv's avatar haiyoucuv

1111

parent 348688ed
This diff is collapsed.
{ {
"code": "000000", "code": "000000",
"data": { "data": {
"guideStep": 8, "guideStep": 0,
"guideIsEnd": true, "guideIsEnd": false,
"waterDrops": 0, "waterDrops": 0,
"plants": [ "plants": [
{ {
......
...@@ -87,7 +87,7 @@ export class Tool { ...@@ -87,7 +87,7 @@ export class Tool {
} }
// cloud://21DC968488CF65B20EC98D34D07B7B9D//浇水动效.svga // cloud://21DC968488CF65B20EC98D34D07B7B9D//浇水动效.svga
const src = `cloud://21DC968488CF65B20EC98D34D07B7B9D//${name}.svga`; const src = `cloud://5C68107E2545139A29BC2BA5EF618280//${name}.svga`;
// const src = `../svga/${name}.svga`; /// TODO 线上替换 // const src = `../svga/${name}.svga`; /// TODO 线上替换
SvgaParser.loadSvga(src, (v) => { SvgaParser.loadSvga(src, (v) => {
Tool.svgaCache[name] = v; // 做一个缓存 Tool.svgaCache[name] = v; // 做一个缓存
......
...@@ -37,17 +37,17 @@ export const s_PlantData = { ...@@ -37,17 +37,17 @@ export const s_PlantData = {
CHESTNUT: { CHESTNUT: {
key: PLANT_TYPE.CHESTNUT, key: PLANT_TYPE.CHESTNUT,
name: '板栗', name: '板栗',
time: 1, time: 6,
}, },
PECAN: { PECAN: {
key: PLANT_TYPE.PECAN, key: PLANT_TYPE.PECAN,
name: '山核桃', name: '山核桃',
time: 2, time: 4,
}, },
PEANUT: { PEANUT: {
key: PLANT_TYPE.PEANUT, key: PLANT_TYPE.PEANUT,
name: '花生', name: '花生',
time: 3, time: 6,
}, },
MELON: { MELON: {
key: PLANT_TYPE.MELON, key: PLANT_TYPE.MELON,
...@@ -57,12 +57,12 @@ export const s_PlantData = { ...@@ -57,12 +57,12 @@ export const s_PlantData = {
PISTACHIONUT: { PISTACHIONUT: {
key: PLANT_TYPE.PISTACHIONUT, key: PLANT_TYPE.PISTACHIONUT,
name: '开心果', name: '开心果',
time: 5, time: 4,
}, },
CASHEWNUT: { CASHEWNUT: {
key: PLANT_TYPE.CASHEWNUT, key: PLANT_TYPE.CASHEWNUT,
name: '腰果', name: '腰果',
time: 6, time: 5,
}, },
} }
......
...@@ -36,13 +36,13 @@ export class GuideScene extends Scene { ...@@ -36,13 +36,13 @@ export class GuideScene extends Scene {
}); });
// UI层
this.uiLayer = this.addChild(new UILayer());
// 游戏层 // 游戏层
GameLayer.kill(); GameLayer.kill();
this.gameLayer = this.addChild(GameLayer.ins); this.gameLayer = this.addChild(GameLayer.ins);
// UI层
this.uiLayer = this.addChild(new UILayer());
// 引导层 // 引导层
this.guideLayer = this.addChild(new GuideLayer()); this.guideLayer = this.addChild(new GuideLayer());
} }
......
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