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
3a6a2136
Commit
3a6a2136
authored
Feb 06, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NoStep
parent
5e7a2c9f
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
68 additions
and
121 deletions
+68
-121
workspace.xml
.idea/workspace.xml
+20
-33
babycare.consumerTools.json
mock/miniTb/babycare.consumerTools.json
+1
-1
babycare.getGameInfo.json
mock/miniTb/babycare.getGameInfo.json
+1
-1
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+1
-1
noStepCancel.png
resource/NoStepPanel/noStepCancel.png
+0
-0
noStepOk.png
resource/NoStepPanel/noStepOk.png
+0
-0
步数耗尽Bg.png
resource/NoStepPanel/步数耗尽Bg.png
+0
-0
步数耗尽复活.png
resource/NoStepPanel/步数耗尽复活.png
+0
-0
步数耗尽结束按钮.png
resource/NoStepPanel/步数耗尽结束按钮.png
+0
-0
res.json
resource/res.json
+1
-1
ResJson.ts
src/ResJson.ts
+1
-1
SkinJson.ts
src/SkinJson.ts
+0
-60
Tools.ts
src/Tools.ts
+2
-0
NoEnergyPanel.ts
src/panels/NoEnergyPanel.ts
+0
-1
NoStepPanel.ts
src/panels/NoStepPanel.ts
+34
-15
UseStep.ts
src/panels/UseStep.ts
+1
-1
LoadingScene.ts
src/scene/LoadingScene.ts
+2
-2
PlayScene.ts
src/scene/PlayScene.ts
+2
-2
Chapter1.ts
src/something/chapters/Chapter1.ts
+2
-2
No files found.
.idea/workspace.xml
View file @
3a6a2136
...
@@ -2,46 +2,25 @@
...
@@ -2,46 +2,25 @@
<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/NoEnergyPanel/体力不足.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/NoStepPanel/noStepCancel.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/StartPanel/关卡弹窗Bg.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/NoStepPanel/noStepOk.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/common/panelBgS.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$/mock/miniTb/babycare.consumerTools.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.consumerTools.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.getGameInfo.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.getGameInfo.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/NoStepPanel/步数耗尽Bg.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/BuyPowerPanel/增加体力背景.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/NoStepPanel/步数耗尽复活.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/BuyPowerPanel/无字按钮底.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/NoStepPanel/步数耗尽结束按钮.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/CreditsOutPanel/积分不足背景.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/CreditsOutPanel/赚取积分.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/ExchangeSucPanel/兑换成功背景.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/ExchangeSucPanel/知道啦.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/JoinPanel/joinBg.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/JoinPanel/joinBtn.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/NoEnergyPanel/体力不足Bg.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/NoEnergyPanel/体力不足按钮.png"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/NoEnergyPanel/体力不足按钮.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/StartPanel/开始闯关Bg.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/StartPanelPrize/关卡弹窗Bg.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/ToolsOutPanel/道具不足背景.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/UseStep/useStepBg.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/UseToolPanel/使用道具背景.png"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Main.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Main.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/SkinJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/SkinJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/SkinJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/SkinJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/BuyPowerPanel.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/CreditsOutPanel.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/ExchangeSucPanel.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/JoinPanel.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/NoStepPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/NoStepPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/NoStepPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/NoStepPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/TaskPanel.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/ToolsOutPanel.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/UseStep.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/UseStep.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/UseStep.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/UseStep.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/chapters/Chapter1.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/chapters/Chapter1.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI.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"
/>
...
@@ -145,7 +124,7 @@
...
@@ -145,7 +124,7 @@
<option
name=
"presentableId"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1612576978320
</updated>
<updated>
1612576978320
</updated>
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612577003915"
duration=
"1
8185
000"
/>
<workItem
from=
"1612577003915"
duration=
"1
9222
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
<created>
1612581213298
</created>
...
@@ -182,7 +161,14 @@
...
@@ -182,7 +161,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1612599420632
</updated>
<updated>
1612599420632
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"6"
/>
<task
id=
"LOCAL-00006"
summary=
"NoEnergyPanel"
>
<created>
1612601677844
</created>
<option
name=
"number"
value=
"00006"
/>
<option
name=
"presentableId"
value=
"LOCAL-00006"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1612601677845
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"7"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -196,6 +182,7 @@
...
@@ -196,6 +182,7 @@
<MESSAGE
value=
"gameGuide"
/>
<MESSAGE
value=
"gameGuide"
/>
<MESSAGE
value=
"首页引导"
/>
<MESSAGE
value=
"首页引导"
/>
<MESSAGE
value=
"Rule"
/>
<MESSAGE
value=
"Rule"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"Rule"
/>
<MESSAGE
value=
"NoEnergyPanel"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"NoEnergyPanel"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
mock/miniTb/babycare.consumerTools.json
View file @
3a6a2136
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"data"
:
{
"data"
:
{
"tools"
:
{
"tools"
:
{
"HAMMERS"
:
1
,
"HAMMERS"
:
1
,
"STEPS"
:
1
,
"STEPS"
:
0
,
"BOOMS"
:
1
"BOOMS"
:
1
}
}
},
},
...
...
mock/miniTb/babycare.getGameInfo.json
View file @
3a6a2136
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
"power"
:
523
,
"power"
:
523
,
"tools"
:
{
"tools"
:
{
"HAMMERS"
:
89
,
"HAMMERS"
:
89
,
"STEPS"
:
103
,
"STEPS"
:
0
,
"BOOMS"
:
95
"BOOMS"
:
95
}
}
},
},
...
...
mock/miniTb/babycare.getIndex.json
View file @
3a6a2136
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
"power"
:
0
,
"power"
:
0
,
"tools"
:
{
"tools"
:
{
"HAMMERS"
:
9
,
"HAMMERS"
:
9
,
"STEPS"
:
99
,
"STEPS"
:
0
,
"BOOMS"
:
999
"BOOMS"
:
999
},
},
"topAward"
:
{
"topAward"
:
{
...
...
resource/NoStepPanel/noStepCancel.png
0 → 100644
View file @
3a6a2136
40.7 KB
resource/NoStepPanel/noStepOk.png
0 → 100644
View file @
3a6a2136
34.2 KB
resource/NoStepPanel/步数耗尽Bg.png
deleted
100644 → 0
View file @
5e7a2c9f
57 KB
resource/NoStepPanel/步数耗尽复活.png
deleted
100644 → 0
View file @
5e7a2c9f
17.7 KB
resource/NoStepPanel/步数耗尽结束按钮.png
deleted
100644 → 0
View file @
5e7a2c9f
16.8 KB
resource/res.json
View file @
3a6a2136
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"name"
:
"NoPrizePanel"
"name"
:
"NoPrizePanel"
},
},
{
{
"keys"
:
"
步数耗尽Bg.png,步数耗尽复活.png,步数耗尽结束按钮
.png"
,
"keys"
:
"
noStepCancel.png,noStepOk
.png"
,
"name"
:
"NoStepPanel"
"name"
:
"NoStepPanel"
},
},
{
{
...
...
src/ResJson.ts
View file @
3a6a2136
...
@@ -17,7 +17,7 @@ export const ResJson = {
...
@@ -17,7 +17,7 @@ export const ResJson = {
"name"
:
"NoPrizePanel"
"name"
:
"NoPrizePanel"
},
},
{
{
"keys"
:
"
步数耗尽Bg.png,步数耗尽复活.png,步数耗尽结束按钮
.png"
,
"keys"
:
"
noStepCancel.png,noStepOk
.png"
,
"name"
:
"NoStepPanel"
"name"
:
"NoStepPanel"
},
},
{
{
...
...
src/SkinJson.ts
View file @
3a6a2136
...
@@ -277,66 +277,6 @@ export const SkinJson = {
...
@@ -277,66 +277,6 @@ export const SkinJson = {
}
}
]
]
},
},
{
"name"
:
"NoStepPanel"
,
"x"
:
0
,
"y"
:
0
,
"type"
:
"container"
,
"children"
:
[
{
"name"
:
"步数耗尽Bg"
,
"x"
:
55
,
"y"
:
498
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"步数耗尽Bg.png"
}
},
{
"name"
:
"提示文案"
,
"x"
:
163
,
"y"
:
661
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"消耗20积分可复活 ,步数+5
\n
确认复活吗?"
,
"size"
:
34
,
"fillColor"
:
"#df5942"
,
"textAlpha"
:
1
},
"id"
:
"tipsTex"
},
{
"name"
:
"关闭按钮"
,
"x"
:
631
,
"y"
:
470
,
"type"
:
"button"
,
"props"
:
{
"tUp"
:
"关闭按钮.png"
},
"id"
:
"closeBtn"
},
{
"name"
:
"步数耗尽复活"
,
"x"
:
383
,
"y"
:
845
,
"type"
:
"button"
,
"props"
:
{
"tUp"
:
"步数耗尽复活.png"
},
"id"
:
"liveBtn"
},
{
"name"
:
"步数耗尽结束按钮"
,
"x"
:
93
,
"y"
:
845
,
"type"
:
"button"
,
"props"
:
{
"tUp"
:
"步数耗尽结束按钮.png"
},
"id"
:
"overBtn"
}
]
},
{
{
"name"
:
"FailedPanel"
,
"name"
:
"FailedPanel"
,
"x"
:
0
,
"x"
:
0
,
...
...
src/Tools.ts
View file @
3a6a2136
...
@@ -20,6 +20,8 @@ export class Tools {
...
@@ -20,6 +20,8 @@ export class Tools {
alert
(
'TODO 打开任务'
);
alert
(
'TODO 打开任务'
);
}
}
public
static
addSteps
=
5
;
/**
/**
* 缓存key
* 缓存key
*/
*/
...
...
src/panels/NoEnergyPanel.ts
View file @
3a6a2136
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
Tools
}
from
"../Tools"
;
import
{
Tools
}
from
"../Tools"
;
import
Button
=
FYGE
.
Button
;
import
Button
=
FYGE
.
Button
;
import
{
RES
}
from
"../../module/RES"
;
import
{
RES
}
from
"../../module/RES"
;
...
...
src/panels/NoStepPanel.ts
View file @
3a6a2136
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Tools
}
from
"../Tools"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getCurrentScene
,
showPanel
}
from
"../../module/ctrls"
;
import
{
getCurrentScene
}
from
"../../module/ctrls"
;
import
{
RES
}
from
"../../module/RES"
;
import
Button
=
FYGE
.
Button
;
import
TextField
=
FYGE
.
TextField
;
export
class
NoStepPanel
extends
Panel
{
export
class
NoStepPanel
extends
Panel
{
get
groupNames
()
{
return
[
"NoStepPanel"
]
}
get
groupNames
()
{
get
skinName
()
{
return
"NoStepPanel"
}
return
[
"NoStepPanel"
]
overBtn
:
FYGE
.
Button
;
}
liveBtn
:
FYGE
.
Button
;
closeBtn
:
FYGE
.
Button
;
okBtn
:
Button
;
tipsTex
:
FYGE
.
TextField
;
cancelBtn
:
Button
;
closeBtn
:
Button
;
tipsTex
:
TextField
;
data
:
{
data
:
{
reviveFun
:
()
=>
void
reviveFun
:
()
=>
void
}
}
initUi
()
{
initUi
()
{
// Tools.changeTextAlign(this.tipsTex, FYGE.TEXT_ALIGN.CENTER, 500)
this
.
addChild
(
Tools
.
getSprite
(
'panelBgS.png'
)).
position
.
set
(
79
,
513
);
this
.
tipsTex
.
textAlign
=
FYGE
.
TEXT_ALIGN
.
CENTER
;
this
.
okBtn
=
this
.
addChild
(
new
Button
(
RES
.
getRes
(
'noStepOk.png'
)));
this
.
tipsTex
.
textWidth
=
500
;
this
.
okBtn
.
position
.
set
(
385
,
857
);
this
.
tipsTex
.
x
=
(
750
-
500
)
/
2
;
this
.
tipsTex
.
text
=
"是否使用步数道具
\n
增加5次步数"
this
.
cancelBtn
=
this
.
addChild
(
new
Button
(
RES
.
getRes
(
'noStepCancel.png'
)));
this
.
cancelBtn
.
position
.
set
(
100
,
857
);
this
.
addChild
(
Tools
.
getText
(
`是否使用步数道具\n增加
${
Tools
.
addSteps
}
次步数?`
,
33
,
"#744f1d"
,
FYGE
.
TEXT_ALIGN
.
CENTER
,
750
,
0
,
650
));
this
.
addChild
(
Tools
.
getText
(
"步数耗尽"
,
40
,
"#744f1d"
,
FYGE
.
TEXT_ALIGN
.
CENTER
,
750
,
0
,
543
)).
bold
=
true
;
this
.
closeBtn
=
this
.
addChild
(
new
Button
(
RES
.
getRes
(
'关闭按钮.png'
)));
this
.
closeBtn
.
position
.
set
(
638
,
488
);
}
}
initEvents
()
{
initEvents
()
{
//结束
//结束
[
this
.
closeBtn
,
this
.
over
Btn
].
forEach
((
e
)
=>
{
[
this
.
closeBtn
,
this
.
cancel
Btn
].
forEach
((
e
)
=>
{
e
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
e
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
getCurrentScene
().
submit
(
false
);
getCurrentScene
().
submit
(
false
);
this
.
hidePanel
();
this
.
hidePanel
();
},
this
)
},
this
)
})
})
//复活
//复活
this
.
live
Btn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
ok
Btn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
//无步数道具,弹出积分兑换
//无步数道具,弹出积分兑换
if
(
!
Tools
.
gameData
.
tools
.
STEPS
)
{
if
(
!
Tools
.
gameData
.
tools
.
STEPS
)
{
// showPanel(ToolsOutPanel, { type: PropType.STEPS, showSucPanel: false })
}
else
{
}
else
{
this
.
data
.
reviveFun
();
this
.
data
.
reviveFun
();
this
.
hidePanel
();
this
.
hidePanel
();
...
...
src/panels/UseStep.ts
View file @
3a6a2136
...
@@ -14,7 +14,7 @@ export class UseStep extends Panel {
...
@@ -14,7 +14,7 @@ export class UseStep extends Panel {
this
.
addChild
(
Tools
.
getSprite
(
'panelBgS.png'
)).
position
.
set
(
86
,
512
);
this
.
addChild
(
Tools
.
getSprite
(
'panelBgS.png'
)).
position
.
set
(
86
,
512
);
this
.
addChild
(
Tools
.
getText
(
/// TODO 道具加步数
this
.
addChild
(
Tools
.
getText
(
/// TODO 道具加步数
`确定要使用步数道具+
5
步数吗?`
,
33
,
'#744f1d'
,
`确定要使用步数道具+
${
Tools
.
addSteps
}
步数吗?`
,
33
,
'#744f1d'
,
TEXT_ALIGN
.
CENTER
,
750
,
0
,
685
TEXT_ALIGN
.
CENTER
,
750
,
0
,
685
));
));
...
...
src/scene/LoadingScene.ts
View file @
3a6a2136
...
@@ -93,8 +93,8 @@ export class LoadingScene extends Scene {
...
@@ -93,8 +93,8 @@ export class LoadingScene extends Scene {
.
call
(()
=>
{
.
call
(()
=>
{
if
(
pro
>=
1
)
{
if
(
pro
>=
1
)
{
this
.
removeEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
);
this
.
removeEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
);
changeScene
(
MapScene
,
{
from
:
"loading"
})
//
changeScene(MapScene, {from: "loading"})
// changeScene(PlayScene, { chapter: 61
});
changeScene
(
PlayScene
,
{
chapter
:
0
});
// changeScene(LotteryScene,{level:1});
// changeScene(LotteryScene,{level:1});
}
}
})
})
...
...
src/scene/PlayScene.ts
View file @
3a6a2136
...
@@ -1863,7 +1863,7 @@ export class PlayScene extends Scene {
...
@@ -1863,7 +1863,7 @@ export class PlayScene extends Scene {
//判断步数是否为0;
//判断步数是否为0;
if
(
this
.
steps
==
0
)
{
if
(
this
.
steps
==
0
)
{
//还未提示过加步数
//还未提示过加步数
if
(
!
this
.
addedStepWarning
)
{
if
(
!
this
.
addedStepWarning
&&
Tools
.
gameData
.
tools
.
STEPS
>
0
)
{
this
.
addedStepWarning
=
true
;
this
.
addedStepWarning
=
true
;
//没步数弹框
//没步数弹框
showPanel
(
NoStepPanel
,
{
showPanel
(
NoStepPanel
,
{
...
@@ -1884,7 +1884,7 @@ export class PlayScene extends Scene {
...
@@ -1884,7 +1884,7 @@ export class PlayScene extends Scene {
})
})
//加步数
//加步数
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
stepPosition
[
0
]
-
40
,
stepPosition
[
1
]
+
20
]);
this
.
playAni
(
RecoverName
.
STEP_ANI
,
[
stepPosition
[
0
]
-
40
,
stepPosition
[
1
]
+
20
]);
setTimeout
(()
=>
{
this
.
steps
+=
5
;
},
333
)
setTimeout
(()
=>
{
this
.
steps
+=
Tools
.
addSteps
;
},
333
)
//更新场景道具数据
//更新场景道具数据
this
.
updateScene
()
this
.
updateScene
()
}
}
...
...
src/something/chapters/Chapter1.ts
View file @
3a6a2136
...
@@ -10,13 +10,13 @@ export const Chapters1: ChapterData[] = [
...
@@ -10,13 +10,13 @@ export const Chapters1: ChapterData[] = [
{
{
baseElementTypes
:
[
0
,
1
,
2
,
3
],
baseElementTypes
:
[
0
,
1
,
2
,
3
],
bubbleProbability
:
0
,
bubbleProbability
:
0
,
stepCount
:
25
,
stepCount
:
1
,
passTarget
:
{
passTarget
:
{
type
:
PassType
.
ELEMENT_TARGET
,
type
:
PassType
.
ELEMENT_TARGET
,
elements
:
[
elements
:
[
{
{
type
:
ElementType
.
CHICKEN
,
type
:
ElementType
.
CHICKEN
,
count
:
1
,
count
:
1
11
,
},
},
],
],
},
},
...
...
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