Commit b80e54c7 authored by haiyoucuv's avatar haiyoucuv

首页树的动画修改

parent 71900eb4
This diff is collapsed.
......@@ -12741,7 +12741,7 @@ exports.ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1602665117/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1602667722/resource/"
};
......@@ -23710,7 +23710,17 @@ var PlayScene = (function (_super) {
PlayScene.prototype.openRedBombPanel = function (callback) {
if (callback === void 0) { callback = null; }
if (this.redBombPanelMark) {
ctrls_1.showPanel(FesRedPrizePanel_1.FesRedPrizePanel, { callback: callback });
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.drawLotteryPrize, {
level: this.chapter,
prizeDataType: 1
}, function (success, res) {
if (success && res.data) {
ctrls_1.showPanel(FesRedPrizePanel_1.FesRedPrizePanel, { callback: callback });
}
else {
callback();
}
});
this.redBombPanelMark = false;
return true;
}
......@@ -23846,15 +23856,7 @@ var PlayScene = (function (_super) {
_this.festivalTarget.count--;
});
if (this.festivalTargetNum <= 0) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.drawLotteryPrize, {
level: this.chapter,
prizeDataType: 1
}, function (success, res) {
if (success && res.data) {
_this.redBombPanelMark = true;
_this.openRedBombPanel();
}
});
this.redBombPanelMark = true;
}
}
};
......@@ -24323,21 +24325,36 @@ var MapMid = (function (_super) {
for (var i = 0; i < 106; i++) {
treeTexture.push(RES_1.RES.getRes("map_tree_" + i + ".png"));
}
for (var i = 106; i < 246; i++) {
treeTexture.push(RES_1.RES.getRes("map_tree_" + 105 + ".png"));
}
var treeEffect1 = this.addChild(new FrameAni(treeTexture));
treeEffect1.frameRate = 20;
treeEffect1.position.set(735, 400);
treeEffect1.play(-1);
var treeEffect2 = this.addChild(new FrameAni(treeTexture));
treeEffect2.frameRate = 20;
treeEffect2.position.set(30, 765);
treeEffect2.scaleX = -1;
treeEffect2.play(-1);
this.timeOutArr.push(setTimeout(function () {
treeEffect2.play(-1);
}, 1200));
var treeEffect3 = this.addChild(new FrameAni(treeTexture));
treeEffect3.frameRate = 20;
treeEffect3.position.set(30, 1590);
treeEffect3.scaleX = -1;
treeEffect3.play(-1);
this.timeOutArr.push(setTimeout(function () {
treeEffect3.play(-1);
}, 2000));
var treeEffect4 = this.addChild(new FrameAni(treeTexture));
treeEffect4.frameRate = 20;
treeEffect4.position.set(740, 1780);
treeEffect4.scaleX = -1;
treeEffect4.play(-1);
this.timeOutArr.push(setTimeout(function () {
treeEffect4.play(-1);
}, 2500));
this.addChild(Tools_1.Tools.getSprite('薯片店.png', -80, 1570));
var aromaTexture = [];
for (var i = 0; i < 86; i++) {
......@@ -24360,6 +24377,7 @@ var MapMid = (function (_super) {
};
MapMid.prototype.destroy = function () {
_super.prototype.destroy.call(this);
this.timeOutArr.forEach(function (v) { return clearTimeout(v); });
};
MapMid.HEIGHT = 2222;
MapMid.totalCount = 18;
......@@ -24753,23 +24771,20 @@ var MapTop = (function (_super) {
for (var i = 0; i < 106; i++) {
treeTexture.push(RES_1.RES.getRes("map_tree_" + i + ".png"));
}
for (var i = 106; i < 246; i++) {
treeTexture.push(RES_1.RES.getRes("map_tree_" + 105 + ".png"));
}
var treeEffect1 = this.addChild(new FrameAni(treeTexture));
treeEffect1.frameRate = 20;
treeEffect1.position.set(85, 913);
treeEffect1.scaleX = -1;
treeEffect1.play(-1);
var treeEffect2 = this.addChild(new FrameAni(treeTexture));
treeEffect2.position.set(729, 1068);
treeEffect2.frameRate = 20;
this.timeOutArr.push(setTimeout(function () {
treeEffect2.play(-1);
}, 1000));
var aromaTexture = [];
for (var i = 0; i < 106; i++) {
aromaTexture.push(RES_1.RES.getRes("Aroma_2_" + i + ".png"));
}
var aroma = this.addChild(new FrameAni(aromaTexture));
aroma.position.set(610, 910);
aroma.scaleX = -1;
aroma.play(-1);
var foot = this.addChild(Tools_1.Tools.getSprite('top_foot.png'));
foot.position.set(-24, 758);
var cloud = this.addChild(Tools_1.Tools.getSprite('cloud.png'));
This diff is collapsed.
resource/map/mapGuide.png

123 KB | W: | H:

resource/map/mapGuide.png

126 KB | W: | H:

resource/map/mapGuide.png
resource/map/mapGuide.png
resource/map/mapGuide.png
resource/map/mapGuide.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -10547,5 +10547,5 @@ export const ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1602665117/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1602667722/resource/"
}
\ No newline at end of file
......@@ -63,24 +63,47 @@ export default class MapMid extends MapPart {
for (let i = 0; i < 106; i++) {
treeTexture.push(RES.getRes(`map_tree_${i}.png`));
}
for (let i = 106; i < 246; i++) {
treeTexture.push(RES.getRes(`map_tree_${105}.png`));
}
const treeEffect1 = this.addChild(new FrameAni(treeTexture));
treeEffect1.frameRate = 20;
treeEffect1.position.set(735, 400);
treeEffect1.play(-1);
const treeEffect2 = this.addChild(new FrameAni(treeTexture));
treeEffect2.frameRate = 20;
treeEffect2.position.set(30, 765);
treeEffect2.scaleX = -1;
treeEffect2.play(-1);
this.timeOutArr.push(
setTimeout(() => {
treeEffect2.play(-1);
}, 1200)
);
const treeEffect3 = this.addChild(new FrameAni(treeTexture));
treeEffect3.frameRate = 20;
treeEffect3.position.set(30, 1590);
treeEffect3.scaleX = -1;
treeEffect3.play(-1);
this.timeOutArr.push(
setTimeout(() => {
treeEffect3.play(-1);
}, 2000)
);
const treeEffect4 = this.addChild(new FrameAni(treeTexture));
treeEffect4.frameRate = 20;
treeEffect4.position.set(740, 1780);
treeEffect4.scaleX = -1;
treeEffect4.play(-1);
this.timeOutArr.push(
setTimeout(() => {
treeEffect4.play(-1);
}, 2500)
);
this.addChild(Tools.getSprite('薯片店.png',-80, 1570));
......@@ -109,6 +132,7 @@ export default class MapMid extends MapPart {
public destroy() {
super.destroy();
this.timeOutArr.forEach(v => clearTimeout(v));
}
}
......@@ -36,27 +36,34 @@ export default class MapTop extends MapPart {
for (let i = 0; i < 106; i++) {
treeTexture.push(RES.getRes(`map_tree_${i}.png`));
}
for (let i = 106; i < 246; i++) {
treeTexture.push(RES.getRes(`map_tree_${105}.png`));
}
const treeEffect1 = this.addChild(new FrameAni(treeTexture));
treeEffect1.frameRate = 20;
treeEffect1.position.set(85, 913);
treeEffect1.scaleX = -1;
treeEffect1.play(-1);
const treeEffect2 = this.addChild(new FrameAni(treeTexture));
treeEffect2.position.set(729, 1068);
treeEffect2.frameRate = 20;
this.timeOutArr.push(
setTimeout(() => {
treeEffect2.play(-1);
}, 1000)
);
const aromaTexture: Texture[] = [];
for (let i = 0; i < 106; i++) {
aromaTexture.push(RES.getRes(`Aroma_2_${i}.png`));
}
const aroma = this.addChild(new FrameAni(aromaTexture));
aroma.position.set(610, 910);
aroma.scaleX = -1;
aroma.play(-1);
// const aromaTexture: Texture[] = [];
// for (let i = 0; i < 106; i++) {
// aromaTexture.push(RES.getRes(`Aroma_2_${i}.png`));
// }
// const aroma = this.addChild(new FrameAni(aromaTexture));
// aroma.position.set(610, 910);
// aroma.scaleX = -1;
// aroma.play(-1);
const foot = this.addChild(Tools.getSprite('top_foot.png'));
foot.position.set(-24, 758);
......
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