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
434b1d1f
Commit
434b1d1f
authored
Jul 09, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
35fafbb6
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
52 deletions
+88
-52
workspace.xml
.idea/workspace.xml
+33
-37
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+3
-0
cur_light_1.png
resource/map/cur_light_1.png
+0
-0
cur_light_2.png
resource/map/cur_light_2.png
+0
-0
res.json
resource/res.json
+13
-1
ResJson.ts
src/ResJson.ts
+13
-1
CheckBtn.ts
src/scene/map/CheckBtn.ts
+26
-5
MapScene.ts
src/scene/map/MapScene.ts
+0
-8
No files found.
.idea/workspace.xml
View file @
434b1d1f
...
@@ -2,28 +2,12 @@
...
@@ -2,28 +2,12 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_0.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/cur_light_1.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_1.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/cur_light_2.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_10.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_11.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_12.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_13.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_14.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_15.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_16.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_2.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_3.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_4.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_5.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_6.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_7.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_8.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/map/prize_check_9.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$/libs/FYGE.d.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/libs/FYGE.d.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/libs/fyge.min.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/libs/fyge.min.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/libs/fyge.min.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/libs/fyge.min.js.map"
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$/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/scene/map/CheckBtn.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.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/scene/map/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
afterDir=
"false"
/>
</list>
</list>
...
@@ -55,7 +39,7 @@
...
@@ -55,7 +39,7 @@
<property
name=
"RunOnceActivity.OpenProjectViewOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.OpenProjectViewOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"RunOnceActivity.ShowReadmeOnStart"
value=
"true"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/
libs
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/
mock
"
/>
<property
name=
"node.js.detected.package.tslint"
value=
"true"
/>
<property
name=
"node.js.detected.package.tslint"
value=
"true"
/>
<property
name=
"node.js.path.for.package.tslint"
value=
"project"
/>
<property
name=
"node.js.path.for.package.tslint"
value=
"project"
/>
<property
name=
"node.js.selected.package.tslint"
value=
"(autodetect)"
/>
<property
name=
"node.js.selected.package.tslint"
value=
"(autodetect)"
/>
...
@@ -71,8 +55,9 @@
...
@@ -71,8 +55,9 @@
<recent
name=
"$PROJECT_DIR$/src/scene/map"
/>
<recent
name=
"$PROJECT_DIR$/src/scene/map"
/>
</key>
</key>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/
libs
"
/>
<recent
name=
"$PROJECT_DIR$/
mock
"
/>
<recent
name=
"$PROJECT_DIR$/resource/map"
/>
<recent
name=
"$PROJECT_DIR$/resource/map"
/>
<recent
name=
"$PROJECT_DIR$/libs"
/>
<recent
name=
"$PROJECT_DIR$/resource"
/>
<recent
name=
"$PROJECT_DIR$/resource"
/>
</key>
</key>
</component>
</component>
...
@@ -99,8 +84,8 @@
...
@@ -99,8 +84,8 @@
</configuration>
</configuration>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
</component>
</component>
...
@@ -116,7 +101,7 @@
...
@@ -116,7 +101,7 @@
<updated>
1594106513515
</updated>
<updated>
1594106513515
</updated>
<workItem
from=
"1594106517562"
duration=
"5224000"
/>
<workItem
from=
"1594106517562"
duration=
"5224000"
/>
<workItem
from=
"1594111755267"
duration=
"29551000"
/>
<workItem
from=
"1594111755267"
duration=
"29551000"
/>
<workItem
from=
"1594260676967"
duration=
"
22156
000"
/>
<workItem
from=
"1594260676967"
duration=
"
30021
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<task
id=
"LOCAL-00001"
summary=
"111"
>
<created>
1594122339119
</created>
<created>
1594122339119
</created>
...
@@ -139,7 +124,14 @@
...
@@ -139,7 +124,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1594279815824
</updated>
<updated>
1594279815824
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"4"
/>
<task
id=
"LOCAL-00004"
summary=
"111"
>
<created>
1594287699522
</created>
<option
name=
"number"
value=
"00004"
/>
<option
name=
"presentableId"
value=
"LOCAL-00004"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1594287699523
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"5"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -158,26 +150,26 @@
...
@@ -158,26 +150,26 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"58"
y=
"183"
key=
"CommitChangelistDialog2"
timestamp=
"15942
79815598
"
>
<state
x=
"58"
y=
"183"
key=
"CommitChangelistDialog2"
timestamp=
"15942
87699267
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"58"
y=
"183"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
79815598
"
/>
<state
x=
"58"
y=
"183"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
87699267
"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.bottom"
timestamp=
"15942
86173436
"
>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.bottom"
timestamp=
"15942
93636459
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
86173436
"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
93636459
"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.center"
timestamp=
"15942
8617340
8"
>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.center"
timestamp=
"15942
9363645
8"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
8617340
8"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
9363645
8"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.left"
timestamp=
"15942
8617339
6"
>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.left"
timestamp=
"15942
9363645
6"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
8617339
6"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
9363645
6"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.right"
timestamp=
"15942
86173420
"
>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.right"
timestamp=
"15942
93636458
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
86173420
"
/>
<state
width=
"879"
height=
"329"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
93636458
"
/>
<state
x=
"210"
y=
"320"
key=
"RollbackChangesDialog"
timestamp=
"1594173186663"
>
<state
x=
"210"
y=
"320"
key=
"RollbackChangesDialog"
timestamp=
"1594173186663"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
@@ -186,10 +178,10 @@
...
@@ -186,10 +178,10 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"31"
y=
"250"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594195630991"
/>
<state
x=
"31"
y=
"250"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594195630991"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"15942
79817233
"
>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"15942
87700770
"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
79817233
"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"15942
87700770
"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594111906161"
>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594111906161"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
@@ -202,6 +194,10 @@
...
@@ -202,6 +194,10 @@
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
<state
x=
"907"
y=
"23"
width=
"879"
height=
"1158"
key=
"dock-window-2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594285002126"
/>
<state
x=
"907"
y=
"23"
width=
"879"
height=
"1158"
key=
"dock-window-2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594285002126"
/>
<state
x=
"805"
y=
"23"
width=
"879"
height=
"1158"
key=
"dock-window-3"
timestamp=
"1594294028057"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
<state
x=
"805"
y=
"23"
width=
"879"
height=
"1158"
key=
"dock-window-3/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594294028057"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup"
timestamp=
"1594188122355"
>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup"
timestamp=
"1594188122355"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
</state>
</state>
...
...
mock/miniTb/babycare.getIndex.json
View file @
434b1d1f
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
"prizes"
:
[
"prizes"
:
[
{
{
"level"
:
5
"level"
:
5
},
{
"level"
:
1
}
}
],
],
"visitors"
:
[
"visitors"
:
[
...
...
resource/map/cur_light_1.png
0 → 100644
View file @
434b1d1f
27.8 KB
resource/map/cur_light_2.png
0 → 100644
View file @
434b1d1f
18 KB
resource/res.json
View file @
434b1d1f
...
@@ -65,8 +65,20 @@
...
@@ -65,8 +65,20 @@
"name"
:
"common"
"name"
:
"common"
},
},
{
{
"keys"
:
"map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_creditsBg.png,map_energyAdd.png,map_energyBg.png,map_prizeBox.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_推车.png,map_狐狸气球.png"
,
"keys"
:
"dis_ele0_0.png,dis_ele0_1.png,dis_ele0_10.png,dis_ele0_11.png,dis_ele0_12.png,dis_ele0_13.png,dis_ele0_14.png,dis_ele0_2.png,dis_ele0_3.png,dis_ele0_4.png,dis_ele0_5.png,dis_ele0_6.png,dis_ele0_7.png,dis_ele0_8.png,dis_ele0_9.png,dis_ele1_0.png,dis_ele1_1.png,dis_ele1_10.png,dis_ele1_11.png,dis_ele1_12.png,dis_ele1_13.png,dis_ele1_14.png,dis_ele1_2.png,dis_ele1_3.png,dis_ele1_4.png,dis_ele1_5.png,dis_ele1_6.png,dis_ele1_7.png,dis_ele1_8.png,dis_ele1_9.png,dis_ele2_0.png,dis_ele2_1.png,dis_ele2_10.png,dis_ele2_11.png,dis_ele2_12.png,dis_ele2_13.png,dis_ele2_14.png,dis_ele2_2.png,dis_ele2_3.png,dis_ele2_4.png,dis_ele2_5.png,dis_ele2_6.png,dis_ele2_7.png,dis_ele2_8.png,dis_ele2_9.png,dis_ele3_.png,dis_ele3_0.png,dis_ele3_1.png,dis_ele3_10.png,dis_ele3_11.png,dis_ele3_12.png,dis_ele3_13.png,dis_ele3_14.png,dis_ele3_2.png,dis_ele3_3.png,dis_ele3_4.png,dis_ele3_6.png,dis_ele3_7.png,dis_ele3_8.png,dis_ele3_9.png,dis_ele4_0.png,dis_ele4_1.png,dis_ele4_10.png,dis_ele4_11.png,dis_ele4_12.png,dis_ele4_13.png,dis_ele4_14.png,dis_ele4_2.png,dis_ele4_3.png,dis_ele4_4.png,dis_ele4_5.png,dis_ele4_6.png,dis_ele4_7.png,dis_ele4_8.png,dis_ele4_9.png"
,
"name"
:
"disappear"
},
{
"keys"
:
"hor_eke3_0.png,hor_eke3_1.png,hor_eke3_10.png,hor_eke3_11.png,hor_eke3_12.png,hor_eke3_13.png,hor_eke3_14.png,hor_eke3_15.png,hor_eke3_2.png,hor_eke3_3.png,hor_eke3_4.png,hor_eke3_5.png,hor_eke3_6.png,hor_eke3_7.png,hor_eke3_8.png,hor_eke3_9.png,hor_ele0_0.png,hor_ele0_1.png,hor_ele0_10.png,hor_ele0_11.png,hor_ele0_12.png,hor_ele0_13.png,hor_ele0_14.png,hor_ele0_15.png,hor_ele0_2.png,hor_ele0_3.png,hor_ele0_4.png,hor_ele0_5.png,hor_ele0_6.png,hor_ele0_7.png,hor_ele0_8.png,hor_ele0_9.png,hor_ele1_0.png,hor_ele1_1.png,hor_ele1_10.png,hor_ele1_11.png,hor_ele1_12.png,hor_ele1_13.png,hor_ele1_14.png,hor_ele1_15.png,hor_ele1_2.png,hor_ele1_3.png,hor_ele1_4.png,hor_ele1_5.png,hor_ele1_6.png,hor_ele1_7.png,hor_ele1_8.png,hor_ele1_9.png,hor_ele2_0.png,hor_ele2_1.png,hor_ele2_10.png,hor_ele2_11.png,hor_ele2_12.png,hor_ele2_13.png,hor_ele2_14.png,hor_ele2_15.png,hor_ele2_2.png,hor_ele2_3.png,hor_ele2_4.png,hor_ele2_5.png,hor_ele2_6.png,hor_ele2_7.png,hor_ele2_8.png,hor_ele2_9.png,hor_ele4_0.png,hor_ele4_1.png,hor_ele4_10.png,hor_ele4_11.png,hor_ele4_12.png,hor_ele4_13.png,hor_ele4_14.png,hor_ele4_15.png,hor_ele4_2.png,hor_ele4_3.png,hor_ele4_4.png,hor_ele4_5.png,hor_ele4_6.png,hor_ele4_7.png,hor_ele4_8.png,hor_ele4_9.png"
,
"name"
:
"horizontal"
},
{
"keys"
:
"map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_creditsBg.png,map_energyAdd.png,map_energyBg.png,map_prizeBox.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_推车.png,map_狐狸气球.png,prize_check_0.png,prize_check_1.png,prize_check_10.png,prize_check_11.png,prize_check_12.png,prize_check_13.png,prize_check_14.png,prize_check_15.png,prize_check_16.png,prize_check_2.png,prize_check_3.png,prize_check_4.png,prize_check_5.png,prize_check_6.png,prize_check_7.png,prize_check_8.png,prize_check_9.png"
,
"name"
:
"map"
"name"
:
"map"
},
{
"keys"
:
"ver_ele0_0.png,ver_ele0_1.png,ver_ele0_10.png,ver_ele0_11.png,ver_ele0_12.png,ver_ele0_13.png,ver_ele0_14.png,ver_ele0_15.png,ver_ele0_2.png,ver_ele0_3.png,ver_ele0_4.png,ver_ele0_5.png,ver_ele0_6.png,ver_ele0_7.png,ver_ele0_8.png,ver_ele0_9.png,ver_ele1_0.png,ver_ele1_1.png,ver_ele1_10.png,ver_ele1_11.png,ver_ele1_12.png,ver_ele1_13.png,ver_ele1_14.png,ver_ele1_15.png,ver_ele1_2.png,ver_ele1_3.png,ver_ele1_4.png,ver_ele1_5.png,ver_ele1_6.png,ver_ele1_7.png,ver_ele1_8.png,ver_ele1_9.png,ver_ele2_0.png,ver_ele2_1.png,ver_ele2_10.png,ver_ele2_11.png,ver_ele2_12.png,ver_ele2_13.png,ver_ele2_14.png,ver_ele2_15.png,ver_ele2_2.png,ver_ele2_3.png,ver_ele2_4.png,ver_ele2_5.png,ver_ele2_6.png,ver_ele2_7.png,ver_ele2_8.png,ver_ele2_9.png,ver_ele3_0.png,ver_ele3_1.png,ver_ele3_10.png,ver_ele3_11.png,ver_ele3_12.png,ver_ele3_13.png,ver_ele3_14.png,ver_ele3_15.png,ver_ele3_2.png,ver_ele3_3.png,ver_ele3_4.png,ver_ele3_5.png,ver_ele3_6.png,ver_ele3_7.png,ver_ele3_8.png,ver_ele3_9.png,ver_ele4_0.png,ver_ele4_1.png,ver_ele4_10.png,ver_ele4_11.png,ver_ele4_12.png,ver_ele4_13.png,ver_ele4_14.png,ver_ele4_15.png,ver_ele4_2.png,ver_ele4_3.png,ver_ele4_4.png,ver_ele4_5.png,ver_ele4_6.png,ver_ele4_7.png,ver_ele4_8.png,ver_ele4_9.png"
,
"name"
:
"vertical"
}
}
],
],
"path"
:
"./resource/"
"path"
:
"./resource/"
...
...
src/ResJson.ts
View file @
434b1d1f
...
@@ -65,8 +65,20 @@ export const ResJson = {
...
@@ -65,8 +65,20 @@ export const ResJson = {
"name"
:
"common"
"name"
:
"common"
},
},
{
{
"keys"
:
"map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_creditsBg.png,map_energyAdd.png,map_energyBg.png,map_prizeBox.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_推车.png,map_狐狸气球.png"
,
"keys"
:
"dis_ele0_0.png,dis_ele0_1.png,dis_ele0_10.png,dis_ele0_11.png,dis_ele0_12.png,dis_ele0_13.png,dis_ele0_14.png,dis_ele0_2.png,dis_ele0_3.png,dis_ele0_4.png,dis_ele0_5.png,dis_ele0_6.png,dis_ele0_7.png,dis_ele0_8.png,dis_ele0_9.png,dis_ele1_0.png,dis_ele1_1.png,dis_ele1_10.png,dis_ele1_11.png,dis_ele1_12.png,dis_ele1_13.png,dis_ele1_14.png,dis_ele1_2.png,dis_ele1_3.png,dis_ele1_4.png,dis_ele1_5.png,dis_ele1_6.png,dis_ele1_7.png,dis_ele1_8.png,dis_ele1_9.png,dis_ele2_0.png,dis_ele2_1.png,dis_ele2_10.png,dis_ele2_11.png,dis_ele2_12.png,dis_ele2_13.png,dis_ele2_14.png,dis_ele2_2.png,dis_ele2_3.png,dis_ele2_4.png,dis_ele2_5.png,dis_ele2_6.png,dis_ele2_7.png,dis_ele2_8.png,dis_ele2_9.png,dis_ele3_.png,dis_ele3_0.png,dis_ele3_1.png,dis_ele3_10.png,dis_ele3_11.png,dis_ele3_12.png,dis_ele3_13.png,dis_ele3_14.png,dis_ele3_2.png,dis_ele3_3.png,dis_ele3_4.png,dis_ele3_6.png,dis_ele3_7.png,dis_ele3_8.png,dis_ele3_9.png,dis_ele4_0.png,dis_ele4_1.png,dis_ele4_10.png,dis_ele4_11.png,dis_ele4_12.png,dis_ele4_13.png,dis_ele4_14.png,dis_ele4_2.png,dis_ele4_3.png,dis_ele4_4.png,dis_ele4_5.png,dis_ele4_6.png,dis_ele4_7.png,dis_ele4_8.png,dis_ele4_9.png"
,
"name"
:
"disappear"
},
{
"keys"
:
"hor_eke3_0.png,hor_eke3_1.png,hor_eke3_10.png,hor_eke3_11.png,hor_eke3_12.png,hor_eke3_13.png,hor_eke3_14.png,hor_eke3_15.png,hor_eke3_2.png,hor_eke3_3.png,hor_eke3_4.png,hor_eke3_5.png,hor_eke3_6.png,hor_eke3_7.png,hor_eke3_8.png,hor_eke3_9.png,hor_ele0_0.png,hor_ele0_1.png,hor_ele0_10.png,hor_ele0_11.png,hor_ele0_12.png,hor_ele0_13.png,hor_ele0_14.png,hor_ele0_15.png,hor_ele0_2.png,hor_ele0_3.png,hor_ele0_4.png,hor_ele0_5.png,hor_ele0_6.png,hor_ele0_7.png,hor_ele0_8.png,hor_ele0_9.png,hor_ele1_0.png,hor_ele1_1.png,hor_ele1_10.png,hor_ele1_11.png,hor_ele1_12.png,hor_ele1_13.png,hor_ele1_14.png,hor_ele1_15.png,hor_ele1_2.png,hor_ele1_3.png,hor_ele1_4.png,hor_ele1_5.png,hor_ele1_6.png,hor_ele1_7.png,hor_ele1_8.png,hor_ele1_9.png,hor_ele2_0.png,hor_ele2_1.png,hor_ele2_10.png,hor_ele2_11.png,hor_ele2_12.png,hor_ele2_13.png,hor_ele2_14.png,hor_ele2_15.png,hor_ele2_2.png,hor_ele2_3.png,hor_ele2_4.png,hor_ele2_5.png,hor_ele2_6.png,hor_ele2_7.png,hor_ele2_8.png,hor_ele2_9.png,hor_ele4_0.png,hor_ele4_1.png,hor_ele4_10.png,hor_ele4_11.png,hor_ele4_12.png,hor_ele4_13.png,hor_ele4_14.png,hor_ele4_15.png,hor_ele4_2.png,hor_ele4_3.png,hor_ele4_4.png,hor_ele4_5.png,hor_ele4_6.png,hor_ele4_7.png,hor_ele4_8.png,hor_ele4_9.png"
,
"name"
:
"horizontal"
},
{
"keys"
:
"map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_creditsBg.png,map_energyAdd.png,map_energyBg.png,map_prizeBox.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_推车.png,map_狐狸气球.png,prize_check_0.png,prize_check_1.png,prize_check_10.png,prize_check_11.png,prize_check_12.png,prize_check_13.png,prize_check_14.png,prize_check_15.png,prize_check_16.png,prize_check_2.png,prize_check_3.png,prize_check_4.png,prize_check_5.png,prize_check_6.png,prize_check_7.png,prize_check_8.png,prize_check_9.png"
,
"name"
:
"map"
"name"
:
"map"
},
{
"keys"
:
"ver_ele0_0.png,ver_ele0_1.png,ver_ele0_10.png,ver_ele0_11.png,ver_ele0_12.png,ver_ele0_13.png,ver_ele0_14.png,ver_ele0_15.png,ver_ele0_2.png,ver_ele0_3.png,ver_ele0_4.png,ver_ele0_5.png,ver_ele0_6.png,ver_ele0_7.png,ver_ele0_8.png,ver_ele0_9.png,ver_ele1_0.png,ver_ele1_1.png,ver_ele1_10.png,ver_ele1_11.png,ver_ele1_12.png,ver_ele1_13.png,ver_ele1_14.png,ver_ele1_15.png,ver_ele1_2.png,ver_ele1_3.png,ver_ele1_4.png,ver_ele1_5.png,ver_ele1_6.png,ver_ele1_7.png,ver_ele1_8.png,ver_ele1_9.png,ver_ele2_0.png,ver_ele2_1.png,ver_ele2_10.png,ver_ele2_11.png,ver_ele2_12.png,ver_ele2_13.png,ver_ele2_14.png,ver_ele2_15.png,ver_ele2_2.png,ver_ele2_3.png,ver_ele2_4.png,ver_ele2_5.png,ver_ele2_6.png,ver_ele2_7.png,ver_ele2_8.png,ver_ele2_9.png,ver_ele3_0.png,ver_ele3_1.png,ver_ele3_10.png,ver_ele3_11.png,ver_ele3_12.png,ver_ele3_13.png,ver_ele3_14.png,ver_ele3_15.png,ver_ele3_2.png,ver_ele3_3.png,ver_ele3_4.png,ver_ele3_5.png,ver_ele3_6.png,ver_ele3_7.png,ver_ele3_8.png,ver_ele3_9.png,ver_ele4_0.png,ver_ele4_1.png,ver_ele4_10.png,ver_ele4_11.png,ver_ele4_12.png,ver_ele4_13.png,ver_ele4_14.png,ver_ele4_15.png,ver_ele4_2.png,ver_ele4_3.png,ver_ele4_4.png,ver_ele4_5.png,ver_ele4_6.png,ver_ele4_7.png,ver_ele4_8.png,ver_ele4_9.png"
,
"name"
:
"vertical"
}
}
],
],
"path"
:
"./resource/"
"path"
:
"./resource/"
...
...
src/scene/map/CheckBtn.ts
View file @
434b1d1f
...
@@ -8,7 +8,7 @@ import { Tools } from "../../Tools";
...
@@ -8,7 +8,7 @@ import { Tools } from "../../Tools";
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Point
=
FYGE
.
Point
;
import
Point
=
FYGE
.
Point
;
import
{
FrameAni
}
from
"fyge"
;
import
FrameAni
=
FYGE
.
FrameAni
;
export
enum
CHECK_TYPE
{
export
enum
CHECK_TYPE
{
COM
,
// 普通
COM
,
// 普通
...
@@ -22,7 +22,7 @@ export default class CheckBtn extends Container {
...
@@ -22,7 +22,7 @@ export default class CheckBtn extends Container {
private
star
:
CheckStar
[]
=
null
;
private
star
:
CheckStar
[]
=
null
;
private
star
Anim
:
FrameAni
=
null
;
private
prize
Anim
:
FrameAni
=
null
;
private
curAnim
:
FrameAni
=
null
;
private
curAnim
:
FrameAni
=
null
;
private
checkNum
:
number
=
null
;
private
checkNum
:
number
=
null
;
...
@@ -57,13 +57,21 @@ export default class CheckBtn extends Container {
...
@@ -57,13 +57,21 @@ export default class CheckBtn extends Container {
this
.
btn
.
enabled
=
enabled
;
this
.
btn
.
enabled
=
enabled
;
this
.
star
.
forEach
(
v
=>
v
.
visible
=
enabled
);
this
.
star
.
forEach
(
v
=>
v
.
visible
=
enabled
);
this
.
checkLabel
.
visible
=
enabled
;
this
.
checkLabel
.
visible
=
enabled
;
if
(
!
enabled
&&
this
.
_isPrize
){
!
this
.
prizeAnim
.
parent
&&
this
.
addChild
(
this
.
prizeAnim
);
}
}
}
// 是不是奖励关卡
// 是不是奖励关卡
private
_isPrize
:
boolean
=
false
;
private
_isPrize
:
boolean
=
false
;
public
set
isPrize
(
isPrize
:
boolean
)
{
public
set
isPrize
(
isPrize
:
boolean
)
{
if
(
isPrize
==
this
.
_isPrize
)
return
;
if
(
isPrize
==
this
.
_isPrize
)
return
;
this
.
_isPrize
=
isPrize
;
if
(
this
.
_isPrize
&&
!
this
.
_enabled
)
{
!
this
.
prizeAnim
.
parent
&&
this
.
addChild
(
this
.
prizeAnim
);
}
else
{
this
.
prizeAnim
.
parent
&&
this
.
prizeAnim
.
parent
.
removeChild
(
this
.
prizeAnim
);
}
}
}
// 按钮类型
// 按钮类型
...
@@ -102,8 +110,21 @@ export default class CheckBtn extends Container {
...
@@ -102,8 +110,21 @@ export default class CheckBtn extends Container {
constructor
(
data
)
{
constructor
(
data
)
{
super
();
super
();
this
.
initUi
(
data
);
this
.
initUi
(
data
);
this
.
initEffect
();
}
private
initEffect
()
{
const
textures
:
Texture
[]
=
[];
for
(
let
i
=
0
;
i
<
17
;
i
++
)
{
textures
.
push
(
RES
.
getRes
(
`prize_check_
${
i
}
.png`
));
}
for
(
let
i
=
17
;
i
<
60
;
i
++
)
{
textures
.
push
(
RES
.
getRes
(
'prize_check_0.png'
));
}
this
.
prizeAnim
=
new
FrameAni
(
textures
);
this
.
prizeAnim
.
play
(
-
1
);
this
.
prizeAnim
.
position
.
set
(
54
,
54
);
}
}
protected
initUi
(
data
)
{
protected
initUi
(
data
)
{
...
@@ -134,7 +155,7 @@ export default class CheckBtn extends Container {
...
@@ -134,7 +155,7 @@ export default class CheckBtn extends Container {
this
.
enabled
=
false
;
// 先设置成关闭
this
.
enabled
=
false
;
// 先设置成关闭
// 点击事件
// 点击事件
this
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
this
.
btn
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
console
.
log
(
`关卡:
${
this
.
checkNum
}
`
);
console
.
log
(
`关卡:
${
this
.
checkNum
}
`
);
},
this
);
},
this
);
...
...
src/scene/map/MapScene.ts
View file @
434b1d1f
...
@@ -46,13 +46,6 @@ export class MapScene extends Scene {
...
@@ -46,13 +46,6 @@ export class MapScene extends Scene {
private
updateMapCheck
()
{
private
updateMapCheck
()
{
sendTbNet
(
TbNetName
.
getIndex
,
{},
sendTbNet
(
TbNetName
.
getIndex
,
{},
(
success
,
res
)
=>
{
(
success
,
res
)
=>
{
// {
// "level": 1,
// "scores": 11111,
// "stars": 1,
// "isPrizeLevel": false,
// "isVisitSuccess": true
// },
if
(
!
success
)
return
;
if
(
!
success
)
return
;
...
@@ -83,7 +76,6 @@ export class MapScene extends Scene {
...
@@ -83,7 +76,6 @@ export class MapScene extends Scene {
MapScene
.
checkArr
[
v
.
level
].
isPrize
=
true
;
MapScene
.
checkArr
[
v
.
level
].
isPrize
=
true
;
});
});
this
.
scrollToCheck
(
currentLevel
);
this
.
scrollToCheck
(
currentLevel
);
}
}
...
...
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