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
665d2d24
Commit
665d2d24
authored
Feb 19, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
6a5c45d3
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
112 additions
and
29 deletions
+112
-29
workspace.xml
.idea/workspace.xml
+18
-4
feile.getActivityBaseInfoById.json
mock/miniTb/feile.getActivityBaseInfoById.json
+1
-1
output.js
output.js
+47
-12
output.js.map
output.js.map
+1
-1
startNum0.png
resource/StartPanel/startNum0.png
+0
-0
loadingBg.jpg
resource/loadingScene/loadingBg.jpg
+0
-0
res.json
resource/res.json
+1
-1
ResJson.ts
src/ResJson.ts
+14
-3
Element.ts
src/something/class/Element.ts
+30
-7
No files found.
.idea/workspace.xml
View file @
665d2d24
...
@@ -2,8 +2,15 @@
...
@@ -2,8 +2,15 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/StartPanel/startNum0.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/uis/GameGuide.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/uis/GameGuide.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js.map"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/loadingScene/loadingBg.jpg"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/loadingScene/loadingBg.jpg"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/class/Element.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/class/Element.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -116,9 +123,9 @@
...
@@ -116,9 +123,9 @@
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.copyJs"
/>
<item
itemvalue=
"npm.copyJs"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
...
@@ -134,7 +141,7 @@
...
@@ -134,7 +141,7 @@
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"
184
73000"
/>
<workItem
from=
"1613698993022"
duration=
"
220
73000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
<created>
1612581213298
</created>
...
@@ -297,7 +304,14 @@
...
@@ -297,7 +304,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613719810975
</updated>
<updated>
1613719810975
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"24"
/>
<task
id=
"LOCAL-00024"
summary=
"m"
>
<created>
1613727027414
</created>
<option
name=
"number"
value=
"00024"
/>
<option
name=
"presentableId"
value=
"LOCAL-00024"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613727027414
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"25"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
mock/miniTb/feile.getActivityBaseInfoById.json
View file @
665d2d24
{
{
"code"
:
"000000"
,
"code"
:
"000000"
,
"data"
:
{
"data"
:
{
"currentLevel"
:
99
,
"currentLevel"
:
1
,
"topLevelVisitSuccess"
:
true
,
"topLevelVisitSuccess"
:
true
,
"isDrawTopLevelPrize"
:
false
,
"isDrawTopLevelPrize"
:
false
,
"power"
:
10
,
"power"
:
10
,
...
...
output.js
View file @
665d2d24
...
@@ -2070,7 +2070,7 @@ exports.ResJson = {
...
@@ -2070,7 +2070,7 @@ exports.ResJson = {
}
}
},
},
{
{
"keys": "startBg.png,startBtn.png,startNum1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png",
"keys": "startBg.png,startBtn.png,startNum
0.png,startNum
1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png",
"name": "StartPanel",
"name": "StartPanel",
"atlas": {
"atlas": {
"startBg.png": {
"startBg.png": {
...
@@ -2095,9 +2095,20 @@ exports.ResJson = {
...
@@ -2095,9 +2095,20 @@ exports.ResJson = {
"sh": 126,
"sh": 126,
"ro": false
"ro": false
},
},
"startNum
1
.png": {
"startNum
0
.png": {
"x": 496,
"x": 496,
"y": 599,
"y": 599,
"w": 26,
"h": 39,
"ox": 0,
"oy": 4,
"sw": 26,
"sh": 47,
"ro": false
},
"startNum1.png": {
"x": 497,
"y": 681,
"w": 25,
"w": 25,
"h": 39,
"h": 39,
"ox": 0,
"ox": 0,
...
@@ -7655,7 +7666,7 @@ exports.ResJson = {
...
@@ -7655,7 +7666,7 @@ exports.ResJson = {
}
}
}
}
],
],
"path": "https://yun.duiba.com.cn/db_games/activity/feile_xiaoxiao/16137
03486
/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/feile_xiaoxiao/16137
28610
/resource/"
};
};
...
@@ -24176,6 +24187,10 @@ var Element = (function (_super) {
...
@@ -24176,6 +24187,10 @@ var Element = (function (_super) {
_this.temEffectType = null;
_this.temEffectType = null;
_this._effectType = null;
_this._effectType = null;
_this.states = [];
_this.states = [];
_this.moveCount = 0;
_this.moveDir = 1;
_this.moveFrame = 0;
_this.moveFrameSign = 6;
_this._type = type;
_this._type = type;
_this.changeSource();
_this.changeSource();
if (type == ElementType_1.ElementType.CHICKEN_EGG) {
if (type == ElementType_1.ElementType.CHICKEN_EGG) {
...
@@ -24269,6 +24284,26 @@ var Element = (function (_super) {
...
@@ -24269,6 +24284,26 @@ var Element = (function (_super) {
enumerable: false,
enumerable: false,
configurable: true
configurable: true
});
});
Element.prototype.update = function () {
_super.prototype.update.call(this);
if (this._effectType == EffectType_1.EffectType.HORIZONTAL
|| this._effectType == EffectType_1.EffectType.VERTICAL) {
this.moveFrame++;
if (this.moveFrame > this.moveFrameSign) {
this.moveFrame = 0;
this.moveCount += this.moveDir;
}
if (this._effectType == EffectType_1.EffectType.HORIZONTAL) {
this.x += this.moveDir / this.moveFrameSign;
}
else if (this._effectType == EffectType_1.EffectType.VERTICAL) {
this.y += this.moveDir / this.moveFrameSign;
}
if (Math.abs(this.moveCount) >= 3) {
this.moveDir *= -1;
}
}
};
Element.prototype.changeSource = function () {
Element.prototype.changeSource = function () {
var texArr;
var texArr;
if (this._effectType == null) {
if (this._effectType == null) {
...
@@ -27255,7 +27290,7 @@ var chapterFuns = {
...
@@ -27255,7 +27290,7 @@ var chapterFuns = {
[58, 67]
[58, 67]
],
],
msg: [
msg: [
"3个同色猫头
像
成一排即可消除~"
"3个同色猫头成一排即可消除~"
],
],
img: [
img: [
'gameGuide_1.png'
'gameGuide_1.png'
...
@@ -27273,7 +27308,7 @@ var chapterFuns = {
...
@@ -27273,7 +27308,7 @@ var chapterFuns = {
[21, 20]
[21, 20]
],
],
msg: [
msg: [
"消除冰块上的猫头
像
即可打破冰块"
"消除冰块上的猫头即可打破冰块"
]
]
},
},
3: {
3: {
...
@@ -27288,7 +27323,7 @@ var chapterFuns = {
...
@@ -27288,7 +27323,7 @@ var chapterFuns = {
[12, 13]
[12, 13]
],
],
msg: [
msg: [
"当石头附近的猫头
像
产生消除时,即可粉碎石头"
"当石头附近的猫头产生消除时,即可粉碎石头"
]
]
},
},
5: {
5: {
...
@@ -27306,7 +27341,7 @@ var chapterFuns = {
...
@@ -27306,7 +27341,7 @@ var chapterFuns = {
[49, 50]
[49, 50]
],
],
msg: [
msg: [
"4个同样的猫头
像
形成直线就能合成直线特效",
"4个同样的猫头形成直线就能合成直线特效",
"消除直线特效会产生直线消除"
"消除直线特效会产生直线消除"
],
],
img: [
img: [
...
@@ -27332,7 +27367,7 @@ var chapterFuns = {
...
@@ -27332,7 +27367,7 @@ var chapterFuns = {
[30, 29]
[30, 29]
],
],
msg: [
msg: [
"5个同样的猫头
像
成L形或T形就能合成爆炸特效",
"5个同样的猫头成L形或T形就能合成爆炸特效",
"消除爆炸特效会产生3*3的范围消除",
"消除爆炸特效会产生3*3的范围消除",
],
],
img: [
img: [
...
@@ -27373,7 +27408,7 @@ var chapterFuns = {
...
@@ -27373,7 +27408,7 @@ var chapterFuns = {
[73, 64]
[73, 64]
],
],
msg: [
msg: [
"五个同样的猫头
像
形成一字型即可合成魔力花特效",
"五个同样的猫头形成一字型即可合成魔力花特效",
"拖动魔力花特效即可直接触发"
"拖动魔力花特效即可直接触发"
],
],
dp: [
dp: [
...
@@ -27412,7 +27447,7 @@ var chapterFuns = {
...
@@ -27412,7 +27447,7 @@ var chapterFuns = {
],
],
msg: [
msg: [
"当棒棒糖移至底层时,即可移除棒棒糖",
"当棒棒糖移至底层时,即可移除棒棒糖",
"消除棒棒糖下方的猫头
像
\n就可以收集棒棒糖啦"
"消除棒棒糖下方的猫头\n就可以收集棒棒糖啦"
],
],
dp: [
dp: [
[0, 0],
[0, 0],
...
@@ -27431,7 +27466,7 @@ var chapterFuns = {
...
@@ -27431,7 +27466,7 @@ var chapterFuns = {
[3, 2]
[3, 2]
],
],
msg: [
msg: [
"和困住藤蔓里的猫头
像匹配\n
消除,就可以打破藤蔓啦!"
"和困住藤蔓里的猫头
匹配
消除,就可以打破藤蔓啦!"
]
]
},
},
41: {
41: {
...
@@ -27446,7 +27481,7 @@ var chapterFuns = {
...
@@ -27446,7 +27481,7 @@ var chapterFuns = {
[40, 49]
[40, 49]
],
],
msg: [
msg: [
"小心!会蔓延的毛线球!\n消除毛线球旁边的猫头
像
\n就能消除毛线球~"
"小心!会蔓延的毛线球!\n消除毛线球旁边的猫头\n就能消除毛线球~"
]
]
},
},
61: {
61: {
output.js.map
View file @
665d2d24
This diff is collapsed.
Click to expand it.
resource/StartPanel/startNum0.png
0 → 100644
View file @
665d2d24
1.15 KB
resource/loadingScene/loadingBg.jpg
View replaced file @
6a5c45d3
View file @
665d2d24
This diff is collapsed.
Click to expand it.
resource/res.json
View file @
665d2d24
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
"name"
:
"RulePanel"
"name"
:
"RulePanel"
},
},
{
{
"keys"
:
"startBg.png,startBtn.png,startNum1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png"
,
"keys"
:
"startBg.png,startBtn.png,startNum
0.png,startNum
1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png"
,
"name"
:
"StartPanel"
"name"
:
"StartPanel"
},
},
{
{
...
...
src/ResJson.ts
View file @
665d2d24
...
@@ -197,7 +197,7 @@ export const ResJson = {
...
@@ -197,7 +197,7 @@ export const ResJson = {
}
}
},
},
{
{
"keys"
:
"startBg.png,startBtn.png,startNum1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png"
,
"keys"
:
"startBg.png,startBtn.png,startNum
0.png,startNum
1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png"
,
"name"
:
"StartPanel"
,
"name"
:
"StartPanel"
,
"atlas"
:
{
"atlas"
:
{
"startBg.png"
:
{
"startBg.png"
:
{
...
@@ -222,9 +222,20 @@ export const ResJson = {
...
@@ -222,9 +222,20 @@ export const ResJson = {
"sh"
:
126
,
"sh"
:
126
,
"ro"
:
false
"ro"
:
false
},
},
"startNum
1
.png"
:
{
"startNum
0
.png"
:
{
"x"
:
496
,
"x"
:
496
,
"y"
:
599
,
"y"
:
599
,
"w"
:
26
,
"h"
:
39
,
"ox"
:
0
,
"oy"
:
4
,
"sw"
:
26
,
"sh"
:
47
,
"ro"
:
false
},
"startNum1.png"
:
{
"x"
:
497
,
"y"
:
681
,
"w"
:
25
,
"w"
:
25
,
"h"
:
39
,
"h"
:
39
,
"ox"
:
0
,
"ox"
:
0
,
...
@@ -5782,5 +5793,5 @@ export const ResJson = {
...
@@ -5782,5 +5793,5 @@ export const ResJson = {
}
}
}
}
],
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/feile_xiaoxiao/16137
03486
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/feile_xiaoxiao/16137
28610
/resource/"
}
}
\ No newline at end of file
src/something/class/Element.ts
View file @
665d2d24
...
@@ -8,13 +8,7 @@ import { VerticalBgAni } from "../periodAni/VerticalBgAni";
...
@@ -8,13 +8,7 @@ import { VerticalBgAni } from "../periodAni/VerticalBgAni";
import
{
ExplosiveBgAni
}
from
"../periodAni/ExplosiveBgAni"
;
import
{
ExplosiveBgAni
}
from
"../periodAni/ExplosiveBgAni"
;
import
{
ChickenEgg
}
from
"./ChickenEgg"
;
import
{
ChickenEgg
}
from
"./ChickenEgg"
;
import
{
State
}
from
"./State"
;
import
{
State
}
from
"./State"
;
import
{
StateType
,
stateDatas
}
from
"../enum/StateType"
;
import
{
stateDatas
,
StateType
}
from
"../enum/StateType"
;
import
{
LockState
}
from
"../states/LockState"
;
import
{
HairballBrownState
}
from
"../states/HairballBrownState"
;
import
{
BubbleState
}
from
"../states/BubbleState"
;
import
{
HairballGreyState
}
from
"../states/HairballGreyState"
;
import
{
HairballBlackState
}
from
"../states/HairballBlackState"
;
import
{
Tool
}
from
"../Tool"
;
import
{
Tool
}
from
"../Tool"
;
import
{
FestivalEle
}
from
"./FestivalEle"
;
import
{
FestivalEle
}
from
"./FestivalEle"
;
import
{
RES
}
from
"../../../module/RES"
;
import
{
RES
}
from
"../../../module/RES"
;
...
@@ -162,6 +156,35 @@ export class Element extends FYGE.Container {
...
@@ -162,6 +156,35 @@ export class Element extends FYGE.Container {
}
}
moveCount
=
0
;
// 移动计数
moveDir
=
1
;
// 移动计数
moveFrame
=
0
;
// 移动了几帧
moveFrameSign
=
6
;
// 要几帧
update
()
{
super
.
update
();
if
(
this
.
_effectType
==
EffectType
.
HORIZONTAL
||
this
.
_effectType
==
EffectType
.
VERTICAL
)
{
this
.
moveFrame
++
;
if
(
this
.
moveFrame
>
this
.
moveFrameSign
)
{
this
.
moveFrame
=
0
;
this
.
moveCount
+=
this
.
moveDir
;
}
if
(
this
.
_effectType
==
EffectType
.
HORIZONTAL
)
{
this
.
x
+=
this
.
moveDir
/
this
.
moveFrameSign
;
}
else
if
(
this
.
_effectType
==
EffectType
.
VERTICAL
)
{
this
.
y
+=
this
.
moveDir
/
this
.
moveFrameSign
;
}
if
(
Math
.
abs
(
this
.
moveCount
)
>=
3
)
{
this
.
moveDir
*=
-
1
;
}
}
}
/**
/**
* 类型和特效类型得提前赋值
* 类型和特效类型得提前赋值
* 暂时为,修改贴图
* 暂时为,修改贴图
...
...
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