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
377aecaa
Commit
377aecaa
authored
Jul 21, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
02f20e2c
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
4710 additions
and
25 deletions
+4710
-25
aa.json
lotties/aa.json
+1
-1
bb.json
lotties/bb.json
+2
-2
output.js
output.js
+66
-8
output.js.map
output.js.map
+1
-1
magicLion.png
resource/playScene/magicLion.png
+0
-0
aa.js
scripts/aa.js
+1
-0
handleLot.js
scripts/handleLot.js
+41
-0
psdH.js
scripts/psdH.js
+3
-1
ResJson.ts
src/ResJson.ts
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+6
-2
bonus_lottie.ts
src/lotties/bonus_lottie.ts
+3761
-0
loading_animal.ts
src/lotties/loading_animal.ts
+796
-0
TaskPanel.ts
src/panels/TaskPanel.ts
+1
-0
LoadingScene.ts
src/scene/LoadingScene.ts
+2
-2
PlayScene.ts
src/scene/PlayScene.ts
+13
-3
MapScene.ts
src/scene/map/MapScene.ts
+2
-1
Chapter2.ts
src/something/chapters/Chapter2.ts
+1
-1
FirstPropGift.ts
src/something/uis/FirstPropGift.ts
+12
-2
No files found.
src/aa.ts
→
lotties/aa.json
View file @
377aecaa
export
const
lottieConfig
=
{
{
"v"
:
"5.6.10"
,
"fr"
:
30
,
"ip"
:
0
,
...
...
src/bb.ts
→
lotties/bb.json
View file @
377aecaa
export
const
bb
=
{
{
"v"
:
"5.6.10"
,
"fr"
:
30
,
"ip"
:
0
,
...
...
@@ -7930,5 +7930,5 @@ export const bb = {
"st"
:
-6
,
"bm"
:
0
}
]
,
]
}
\ No newline at end of file
output.js
View file @
377aecaa
...
...
@@ -10066,7 +10066,7 @@ exports.ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1595
246717
/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1595
336296
/resource/"
};
...
...
@@ -11206,6 +11206,7 @@ var TbNetName;
TbNetName["showSharePanel"] = "mine.showSharePanel";
TbNetName["openDetail"] = "mine.openDetail";
TbNetName["reportAnalytics"] = "mine.reportAnalytics";
TbNetName["openMusic"] = "mine.openMusic";
})(TbNetName = exports.TbNetName || (exports.TbNetName = {}));
var dataRecord = {};
var fc;
...
...
@@ -22465,6 +22466,7 @@ var TaskPanel = (function (_super) {
_this[d.taskType].enabled = true;
}
else if (d.todayCompleteTimes == d.times) {
_this[d.taskType].canGetStatus = false;
_this[d.taskType].enabled = false;
}
else {
...
...
@@ -23076,11 +23078,12 @@ var ctrls_1 = __webpack_require__(/*! ../../module/ctrls */ "./module/ctrls/inde
var layers_1 = __webpack_require__(/*! ../../module/views/layers */ "./module/views/layers.ts");
var ToolsOutPanel_1 = __webpack_require__(/*! ../panels/ToolsOutPanel */ "./src/panels/ToolsOutPanel.ts");
var Lottie_1 = __webpack_require__(/*! ../Lottie */ "./src/Lottie.ts");
var bb_1 = __webpack_require__(/*! ../bb */ "./src/bb.ts");
var GameToast_1 = __webpack_require__(/*! ../something/uis/GameToast */ "./src/something/uis/GameToast.ts");
var TaoBaoNet_1 = __webpack_require__(/*! ../TaoBaoNet */ "./src/TaoBaoNet.ts");
var MapScene_1 = __webpack_require__(/*! ./map/MapScene */ "./src/scene/map/MapScene.ts");
var NoStepPanel_1 = __webpack_require__(/*! ../panels/NoStepPanel */ "./src/panels/NoStepPanel.ts");
var FirstPropGift_1 = __webpack_require__(/*! ../something/uis/FirstPropGift */ "./src/something/uis/FirstPropGift.ts");
var bb_1 = __webpack_require__(/*! ../bb */ "./src/bb.ts");
var aniClass = {
"BoomAni": BoomAni_1.BoomAni,
"IceAni": IceAni_1.IceAni,
...
...
@@ -23191,6 +23194,7 @@ var PlayScene = (function (_super) {
this.settingBtn.position.set(618, 16);
};
PlayScene.prototype.start = function (data) {
var _this = this;
_super.prototype.start.call(this);
this.chapter = (data && data.chapter) ? data.chapter : 1;
this.chapterData = getChapter_1.getChapterData(this.chapter);
...
...
@@ -23214,6 +23218,12 @@ var PlayScene = (function (_super) {
else {
this.enableMouseEvt(true);
if (this.chapter == 1 && Tools_1.Tools.gameData.isFristLogin) {
this.addChild(new FirstPropGift_1.FirstPropGift())
.once(FYGE.MouseEvent.CLICK, function (e) {
Tools_1.Tools.gameData.isFristLogin = false;
_this.removeChild(e.target);
_this.initGuide();
}, this);
}
else {
this.initGuide();
...
...
@@ -25222,6 +25232,7 @@ var SettingBtn = (function (_super) {
_this.addEventListener(FYGE.MouseEvent.CLICK, function () {
_this.isOn = !_this.isOn;
_this.texture = RES_1.RES.getRes(_this.isOn ? "musicOn.png" : "musicOff.png");
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMusic, { isOn: _this.isOn });
}, _this);
return _this;
}
...
...
@@ -25886,7 +25897,6 @@ var MapScene = (function (_super) {
}
};
MapScene.prototype.initGuide = function () {
Tools_1.Tools.gameData.isFristLogin = false;
var guide = this.addChild(new Container());
var g = guide.addChild(new Graphics());
g.beginFill(0, 0.6);
...
...
@@ -25944,8 +25954,8 @@ var MapScene = (function (_super) {
data.visitors.forEach(function (v) {
MapScene.checkArr[v.level].data = v;
});
data.prize
s.forEach(function (v) {
MapScene.checkArr[v
.level
].isPrize = true;
Tools_1.Tools.baseInfo.prizeLevel
s.forEach(function (v) {
MapScene.checkArr[v].isPrize = true;
});
if (this.data && this.data.level) {
this.scrollToCheck(this.data.level);
...
...
@@ -37604,6 +37614,53 @@ var FestivalTarget = (function (_super) {
exports.FestivalTarget = FestivalTarget;
/***/ }),
/***/ "./src/something/uis/FirstPropGift.ts":
/*!********************************************!*\
!*** ./src/something/uis/FirstPropGift.ts ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var GameGuide_1 = __webpack_require__(/*! ./GameGuide */ "./src/something/uis/GameGuide.ts");
var layers_1 = __webpack_require__(/*! ../../../module/views/layers */ "./module/views/layers.ts");
var FirstPropGift = (function (_super) {
__extends(FirstPropGift, _super);
function FirstPropGift() {
var _this = _super.call(this) || this;
var bg = _this.addChild(new FYGE.Shape);
bg.beginFill(0x000000, 0.7);
bg.drawRect(0, 0, 750, layers_1.layers.stageHeight);
bg.endFill();
bg.hitTestByPixel = false;
var msgBoard = _this.addChild(new GameGuide_1.MsgBoard());
msgBoard.position.set((750 - 604) / 2, 800);
msgBoard.msg = "首次进入游戏,送你三个道具,让你通关无阻力!";
["stepBtn", "boomBtn", "hammerBtn"].forEach(function (e, i) {
_this.addChild(FYGE.Sprite.fromFrame(e + ".png"))
.position.set(100 + i * 230, 500);
});
return _this;
}
return FirstPropGift;
}(FYGE.Container));
exports.FirstPropGift = FirstPropGift;
/***/ }),
/***/ "./src/something/uis/GameGuide.ts":
...
...
@@ -38207,11 +38264,12 @@ var PropGuide = (function (_super) {
this.bg.clear();
this.bg.beginFill(0x000000, 0.7);
this.bg.moveTo(0, 0);
this.bg.lineTo(750, 0);
this.bg.lineTo(750, 1624);
this.bg.lineTo(0, 1624);
this.bg.lineTo(750, 1624);
this.bg.lineTo(750, 0);
this.bg.lineTo(0, 0);
this.bg.arc(BonusShootAni_1.stepPosition[0], BonusShootAni_1.stepPosition[1], 55, 0, Math.PI * 2, true);
this.bg.moveTo(BonusShootAni_1.stepPosition[0] + 50, BonusShootAni_1.stepPosition[1]);
this.bg.drawCircle(BonusShootAni_1.stepPosition[0], BonusShootAni_1.stepPosition[1], 50, false);
this.bg.endFill();
this.msgTxt.text = "点击左上方步数,可为闯关时增加额外5次步数";
}
output.js.map
View file @
377aecaa
This diff is collapsed.
Click to expand it.
resource/playScene/magicLion.png
View replaced file @
02f20e2c
View file @
377aecaa
11.7 KB
|
W:
|
H:
13.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
scripts/aa.js
View file @
377aecaa
...
...
@@ -2,6 +2,7 @@
var
fs
=
require
(
"fs"
);
var
iconv
=
require
(
'iconv-lite'
);
//别执行了,临时方法
return
//读取json文件
var
data
=
iconv
.
decode
(
fs
.
readFileSync
(
"./resource/skin.json"
),
"utf-8"
);
//GBK
...
...
scripts/handleLot.js
0 → 100644
View file @
377aecaa
var
fs
=
require
(
"fs"
);
var
iconv
=
require
(
'iconv-lite'
);
var
data
=
iconv
.
decode
(
fs
.
readFileSync
(
"./lotties/bb.json"
),
"utf-8"
);
//GBK
//反序列化
data
=
JSON
.
parse
(
data
);
//原文件,到时考虑把assets里的图片拿出来
//开始删东西
delete
data
.
ddd
;
//遍历删除图层东西
for
(
var
i
=
0
;
i
<
data
.
layers
.
length
;
i
++
)
{
var
l
=
data
.
layers
[
i
];
//是否3d,后缀,sr,ap,开始时间,混合模式,特效
[
"ddd"
,
"cl"
,
"sr"
,
"ao"
,
"st"
,
"bm"
,
"ef"
].
forEach
((
e
)
=>
{
delete
l
[
e
];
});
//ks删除
[
"o"
,
"r"
,
"p"
,
"a"
,
"s"
].
forEach
((
e
)
=>
{
var
d
=
l
.
ks
[
e
];
//ix不知道干嘛用,删了
delete
d
.
ix
;
//删除k里数据
if
(
d
.
k
.
length
&&
typeof
d
.
k
[
0
]
==
"object"
)
{
d
.
k
.
forEach
((
ee
)
=>
{
[
"i"
,
"o"
,
"ti"
,
"to"
].
forEach
((
eee
)
=>
{
delete
ee
[
eee
];
})
})
}
})
}
//导出代码到src的lotties文件夹,名字就是lottie动画名字,资源名字临时处理了,首页加载动画用图层的nm,bonustime用refid
var
endPath
=
'./src/lotties'
;
if
(
!
fs
.
existsSync
(
endPath
))
fs
.
mkdirSync
(
endPath
);
//导出对象直接用lottie动画名字
var
endFile
=
`export const
${
data
.
nm
}
=
${
JSON
.
stringify
(
data
,
""
,
"
\
t"
)}
`
//文件名字用lottie动画名字
fs
.
writeFileSync
(
endPath
+
"/"
+
data
.
nm
+
".ts"
,
endFile
);
scripts/psdH.js
View file @
377aecaa
...
...
@@ -153,8 +153,10 @@ files.forEach(async function (psdFileName) {
'y'
:
node
/*.layer*/
.
top
-
(
node
.
parent
?
node
.
parent
.
top
:
0
),
// 'width': node.layer.width,
// 'height': node.layer.height
'alpha'
:
node
.
layer
.
opacity
/
255
,
//
'alpha': node.layer.opacity / 255,
};
//只有不为1才记录alpha
if
(
node
.
layer
.
opacity
<
255
)
structure
.
alpha
=
node
.
layer
.
opacity
/
255
;
//如果是文本
if
(
node
.
layer
.
typeTool
)
{
structure
.
type
=
"text"
;
...
...
src/ResJson.ts
View file @
377aecaa
...
...
@@ -8281,5 +8281,5 @@ export const ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1595
246717
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1595
336296
/resource/"
}
\ No newline at end of file
src/TaoBaoNet.ts
View file @
377aecaa
...
...
@@ -126,12 +126,16 @@ export enum TbNetName {
* itemId
*/
openDetail
=
"mine.openDetail"
,
/**
* 自定义埋点
* logkey
*/
reportAnalytics
=
"mine.reportAnalytics"
reportAnalytics
=
"mine.reportAnalytics"
,
/**
* 打开音频
* isOn
*/
openMusic
=
"mine.openMusic"
,
}
//返回数据类型,到时再调整
...
...
src/lotties/bonus_lottie.ts
0 → 100644
View file @
377aecaa
This diff is collapsed.
Click to expand it.
src/lotties/loading_animal.ts
0 → 100644
View file @
377aecaa
export
const
loading_animal
=
{
"v"
:
"5.6.10"
,
"fr"
:
30
,
"ip"
:
0
,
"op"
:
60
,
"w"
:
750
,
"h"
:
1624
,
"nm"
:
"loading_animal"
,
"layers"
:
[
{
"ind"
:
1
,
"ty"
:
2
,
"nm"
:
"owl_sleep.png"
,
"parent"
:
2
,
"refId"
:
"image_0"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
0
,
"k"
:
0
},
"p"
:
{
"a"
:
0
,
"k"
:
[
{
"t"
:
15
,
"s"
:
[
41.002
,
21.5
,
0
]
},
{
"t"
:
42
,
"s"
:
[
41.115
,
27.521
,
0
]
}
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
26
,
9.5
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
15
,
"op"
:
42
},
{
"ind"
:
2
,
"ty"
:
2
,
"nm"
:
"img_owl.png"
,
"refId"
:
"image_1"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
12
,
"s"
:
[
0
]
},
{
"t"
:
42
,
"s"
:
[
-
6
]
},
{
"t"
:
48
,
"s"
:
[
6
]
},
{
"t"
:
54
,
"s"
:
[
-
2
]
},
{
"t"
:
60
,
"s"
:
[
0
]
}
]
},
"p"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
42
,
"s"
:
[
679.5
,
559
,
0
]
},
{
"t"
:
45
,
"s"
:
[
679.5
,
547
,
0
]
},
{
"t"
:
48
,
"s"
:
[
679.5
,
559
,
0
]
}
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
48
,
110.5
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
3
,
"ty"
:
2
,
"nm"
:
"img_tree.png"
,
"refId"
:
"image_2"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
42
,
"s"
:
[
0
]
},
{
"t"
:
45
,
"s"
:
[
-
2
]
},
{
"t"
:
48
,
"s"
:
[
0
]
}
]
},
"p"
:
{
"a"
:
0
,
"k"
:
[
739
,
566.5
,
0
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
150
,
29.5
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
4
,
"ty"
:
2
,
"nm"
:
"fox_head.png"
,
"parent"
:
6
,
"refId"
:
"image_3"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
0
,
"k"
:
0
},
"p"
:
{
"a"
:
0
,
"k"
:
[
87.5
,
-
4
,
0
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
206
,
250.5
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
5
,
"ty"
:
2
,
"nm"
:
"hommer.png"
,
"parent"
:
6
,
"refId"
:
"image_4"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
-
6
]
},
{
"t"
:
40
,
"s"
:
[
-
6
]
},
{
"t"
:
45
,
"s"
:
[
6
]
},
{
"t"
:
50
,
"s"
:
[
-
6
]
},
{
"t"
:
55
,
"s"
:
[
6
]
},
{
"t"
:
60
,
"s"
:
[
-
6
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('cycle', 0);"
},
"p"
:
{
"a"
:
0
,
"k"
:
[
143
,
32
,
0
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
29.5
,
201.5
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
6
,
"ty"
:
2
,
"nm"
:
"fox_body.png"
,
"refId"
:
"image_5"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
-
1
]
},
{
"t"
:
15
,
"s"
:
[
1
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
},
"p"
:
{
"a"
:
0
,
"k"
:
[
356
,
992
,
0
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
85
,
206
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
7
,
"ty"
:
2
,
"nm"
:
"fox_arm_l.png"
,
"parent"
:
6
,
"refId"
:
"image_6"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
2
]
},
{
"t"
:
40
,
"s"
:
[
2
]
},
{
"t"
:
45
,
"s"
:
[
-
6
]
},
{
"t"
:
50
,
"s"
:
[
2
]
},
{
"t"
:
55
,
"s"
:
[
-
6
]
},
{
"t"
:
60
,
"s"
:
[
2
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('cycle', 0);"
},
"p"
:
{
"a"
:
0
,
"k"
:
[
45
,
44
,
0
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
116
,
32
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
9
,
"ty"
:
2
,
"nm"
:
"carb_hand_r.png"
,
"parent"
:
10
,
"refId"
:
"image_8"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
0
,
"k"
:
0
},
"p"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
8.75
,
18
,
0
]
},
{
"t"
:
15
,
"s"
:
[
4.25
,
8
,
0
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
},
"a"
:
{
"a"
:
0
,
"k"
:
[
17.5
,
42.25
,
0
]
},
"s"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
-
100
,
100
,
100
]
},
{
"t"
:
15
,
"s"
:
[
-
95
,
95
,
100
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
10
,
"ty"
:
2
,
"nm"
:
"carb_arm.png"
,
"parent"
:
13
,
"refId"
:
"image_9"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
0
,
"k"
:
0
},
"p"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
107
,
46.75
,
0
]
},
{
"t"
:
15
,
"s"
:
[
101
,
32.25
,
0
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
},
"a"
:
{
"a"
:
0
,
"k"
:
[
12.75
,
18
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
-
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
11
,
"ty"
:
2
,
"nm"
:
"carb_hand_l.png"
,
"parent"
:
12
,
"refId"
:
"image_10"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
0
,
"k"
:
0
},
"p"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
5.75
,
3.5
,
0
]
},
{
"t"
:
15
,
"s"
:
[
10.75
,
16
,
0
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
},
"a"
:
{
"a"
:
0
,
"k"
:
[
26.5
,
39.25
,
0
]
},
"s"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
100
,
100
,
100
]
},
{
"t"
:
15
,
"s"
:
[
105
,
105
,
100
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
12
,
"ty"
:
2
,
"nm"
:
"carb_arm.png"
,
"parent"
:
13
,
"refId"
:
"image_9"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
0
,
"k"
:
0
},
"p"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
28
,
31.75
,
0
]
},
{
"t"
:
15
,
"s"
:
[
23
,
45.75
,
0
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
},
"a"
:
{
"a"
:
0
,
"k"
:
[
12.5
,
17.75
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
},
{
"ind"
:
13
,
"ty"
:
2
,
"nm"
:
"carb_body.png"
,
"refId"
:
"image_11"
,
"ks"
:
{
"o"
:
{
"a"
:
0
,
"k"
:
100
},
"r"
:
{
"a"
:
1
,
"k"
:
[
{
"t"
:
0
,
"s"
:
[
0
]
},
{
"t"
:
15
,
"s"
:
[
-
2
]
}
],
"x"
:
"var $bm_rt;
\n
$bm_rt = loopOut('pingpong', 0);"
},
"p"
:
{
"a"
:
0
,
"k"
:
[
566.5
,
1031
,
0
]
},
"a"
:
{
"a"
:
0
,
"k"
:
[
64.5
,
93
,
0
]
},
"s"
:
{
"a"
:
0
,
"k"
:
[
100
,
100
,
100
]
}
},
"ip"
:
0
,
"op"
:
180
}
],
"markers"
:
[]
}
\ No newline at end of file
src/panels/TaskPanel.ts
View file @
377aecaa
...
...
@@ -116,6 +116,7 @@ export class TaskPanel extends Panel {
}
//如果已全部完成
else
if
(
d
.
todayCompleteTimes
==
d
.
times
)
{
this
[
d
.
taskType
].
canGetStatus
=
false
;
this
[
d
.
taskType
].
enabled
=
false
;
}
//去完成状态
...
...
src/scene/LoadingScene.ts
View file @
377aecaa
...
...
@@ -9,7 +9,7 @@ import { MapScene } from "./map/MapScene";
import
{
layers
}
from
"../../module/views/layers"
;
import
{
GTool
}
from
"../../module/tools/GTool"
;
import
{
Lottie
}
from
"../Lottie"
;
import
{
lo
ttieConfig
}
from
"../aa
"
;
import
{
lo
ading_animal
}
from
"../lotties/loading_animal
"
;
export
class
LoadingScene
extends
Scene
{
get
groupNames
()
{
...
...
@@ -59,7 +59,7 @@ export class LoadingScene extends Scene {
//@ts-ignore 进度条托管
this
.
progressBar
=
new
ProgressBarS
(
pro
);
//动画
var
l
=
this
.
addChild
(
new
Lottie
(
lo
ttieConfig
))
var
l
=
this
.
addChild
(
new
Lottie
(
lo
ading_animal
))
l
.
play
(
0
)
//尾巴
var
foxTail
=
new
FYGE
.
FrameAni
((()
=>
{
...
...
src/scene/PlayScene.ts
View file @
377aecaa
...
...
@@ -56,11 +56,13 @@ import { showToast, showWaiting, showPanel, hideWaiting, wait, changeScene } fro
import
{
layers
}
from
'../../module/views/layers'
;
import
{
ToolsOutPanel
}
from
'../panels/ToolsOutPanel'
;
import
{
Lottie
}
from
'../Lottie'
;
import
{
bb
}
from
'../bb'
;
import
{
GameToast
}
from
'../something/uis/GameToast'
;
import
{
sendTbNet
,
TbNetName
}
from
'../TaoBaoNet'
;
import
{
MapScene
}
from
'./map/MapScene'
;
import
{
NoStepPanel
}
from
'../panels/NoStepPanel'
;
import
{
FirstPropGift
}
from
'../something/uis/FirstPropGift'
;
import
{
bonus_lottie
}
from
'../lotties/bonus_lottie'
;
const
aniClass
=
{
"BoomAni"
:
BoomAni
,
...
...
@@ -312,7 +314,14 @@ export class PlayScene extends Scene {
this
.
enableMouseEvt
(
true
);
//首次送道具,的动画先出,然后再出引导 TODO
if
(
this
.
chapter
==
1
&&
Tools
.
gameData
.
isFristLogin
)
{
this
.
addChild
(
new
FirstPropGift
())
.
once
(
FYGE
.
MouseEvent
.
CLICK
,
(
e
:
FYGE
.
MouseEvent
)
=>
{
Tools
.
gameData
.
isFristLogin
=
false
;
//移除自己
this
.
removeChild
(
e
.
target
)
//游戏引导
this
.
initGuide
();
},
this
)
}
else
{
//游戏引导
this
.
initGuide
();
...
...
@@ -341,7 +350,7 @@ export class PlayScene extends Scene {
async
initSvgas
()
{
//这里加载资源吧
await
RES
.
loadGroup
(
"bonusTime"
)
var
bonusTime
=
new
Lottie
(
b
b
)
var
bonusTime
=
new
Lottie
(
b
onus_lottie
)
bonusTime
.
position
.
set
(
(
750
-
bonusTime
.
videoWidth
)
/
2
,
(
1624
-
bonusTime
.
videoHeight
)
/
2
-
layers
.
stageOffsetY
...
...
@@ -2883,6 +2892,7 @@ class SettingBtn extends FYGE.Container {
this
.
isOn
=
!
this
.
isOn
;
this
.
texture
=
RES
.
getRes
(
this
.
isOn
?
"musicOn.png"
:
"musicOff.png"
);
//播放或暂停音乐接口
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
this
.
isOn
})
},
this
);
}
});
...
...
src/scene/map/MapScene.ts
View file @
377aecaa
...
...
@@ -76,7 +76,8 @@ export class MapScene extends Scene {
}
private
initGuide
()
{
Tools
.
gameData
.
isFristLogin
=
false
;
//有bug再说
// Tools.gameData.isFristLogin = false;
const
guide
=
this
.
addChild
(
new
Container
());
const
g
=
guide
.
addChild
(
new
Graphics
());
...
...
src/something/chapters/Chapter2.ts
View file @
377aecaa
...
...
@@ -302,7 +302,7 @@ export const Chapters2: ChapterData[] = [
0
,
0
,
0
,
4
,
4
,
4
,
4
,
4
,
4
,
],
baseElements
:
[
1
1
,
13
,
20
,
10
,
0
,
0
,
0
,
0
,
0
,
1
2
,
13
,
20
,
10
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
20
,
30
,
20
,
30
,
20
,
30
,
0
,
0
,
0
,
30
,
20
,
30
,
20
,
30
,
20
,
...
...
src/something/uis/FirstPropGift.ts
View file @
377aecaa
import
{
RES
}
from
"../../../module/RES"
;
import
{
MsgBoard
}
from
"./GameGuide"
;
import
{
layers
}
from
"../../../module/views/layers"
;
// 首次道具赠送
export
class
FirstPropGift
extends
FYGE
.
Container
{
constructor
()
{
super
();
//背景图片
this
.
addChild
(
new
FYGE
.
Shape
).
hitTestByPixel
=
false
;
var
bg
=
this
.
addChild
(
new
FYGE
.
Shape
)
bg
.
beginFill
(
0x000000
,
0.7
)
bg
.
drawRect
(
0
,
0
,
750
,
layers
.
stageHeight
)
bg
.
endFill
();
bg
.
hitTestByPixel
=
false
;
//信息板
var
msgBoard
=
this
.
addChild
(
new
MsgBoard
());
msgBoard
.
position
.
set
((
750
-
604
)
/
2
,
10
00
);
msgBoard
.
position
.
set
((
750
-
604
)
/
2
,
8
00
);
msgBoard
.
msg
=
"首次进入游戏,送你三个道具,让你通关无阻力!"
;
//三个道具
[
"stepBtn"
,
"boomBtn"
,
"hammerBtn"
].
forEach
((
e
,
i
)
=>
{
this
.
addChild
(
FYGE
.
Sprite
.
fromFrame
(
e
+
".png"
))
.
position
.
set
(
100
+
i
*
230
,
500
)
})
}
}
\ No newline at end of file
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