Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
babycare_xiaoxiao
Commits
b80e54c7
Commit
b80e54c7
authored
Oct 14, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页树的动画修改
parent
71900eb4
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
104 additions
and
56 deletions
+104
-56
workspace.xml
.idea/workspace.xml
+27
-25
output.js
output.js
+35
-20
output.js.map
output.js.map
+1
-1
mapGuide.png
resource/map/mapGuide.png
+0
-0
ResJson.ts
src/ResJson.ts
+1
-1
MapMid.ts
src/scene/map/MapMid.ts
+25
-1
MapTop.ts
src/scene/map/MapTop.ts
+15
-8
No files found.
.idea/workspace.xml
View file @
b80e54c7
This diff is collapsed.
Click to expand it.
output.js
View file @
b80e54c7
...
...
@@ -12741,7 +12741,7 @@ exports.ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/160266
5117
/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/160266
7722
/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'));
output.js.map
View file @
b80e54c7
This diff is collapsed.
Click to expand it.
resource/map/mapGuide.png
View replaced file @
71900eb4
View file @
b80e54c7
123 KB
|
W:
|
H:
126 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/ResJson.ts
View file @
b80e54c7
...
...
@@ -10547,5 +10547,5 @@ export const ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/160266
5117
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/160266
7722
/resource/"
}
\ No newline at end of file
src/scene/map/MapMid.ts
View file @
b80e54c7
...
...
@@ -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
));
}
}
src/scene/map/MapTop.ts
View file @
b80e54c7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment