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
4cee9345
Commit
4cee9345
authored
Sep 29, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asjghdfkaksjhsaft asxjcv bnot6qwuk
parent
619d7f3d
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
158 additions
and
139 deletions
+158
-139
workspace.xml
.idea/workspace.xml
+40
-28
popmartXXL2c.doJoin.json
mock/miniTb/popmartXXL2c.doJoin.json
+2
-1
popmartXXL2c.drawLotteryPrize.json
mock/miniTb/popmartXXL2c.drawLotteryPrize.json
+3
-3
popmartXXL2c.getActivityBaseInfoById.json
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
+3
-3
FesRedPrizePanel.ts
src/panels/FesRedPrizePanel.ts
+6
-10
StartPanelPrize.ts
src/panels/StartPanelPrize.ts
+4
-1
TaskPanel.ts
src/panels/TaskPanel.ts
+3
-0
PlayScene.ts
src/scene/PlayScene.ts
+96
-91
MapScene.ts
src/scene/map/MapScene.ts
+0
-2
FesRedShootAni.ts
src/something/anisCall/FesRedShootAni.ts
+1
-0
No files found.
.idea/workspace.xml
View file @
4cee9345
...
@@ -3,10 +3,15 @@
...
@@ -3,10 +3,15 @@
<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
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/anisCall/DoorChangeAni.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/anisCall/DoorChangeAni.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/popmartXXL2c.doJoin.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/popmartXXL2c.doJoin.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/popmartXXL2c.drawLotteryPrize.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/popmartXXL2c.drawLotteryPrize.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/FesRedPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/FesRedPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanelPrize.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/TaskPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/TaskPanel.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/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/anisCall/FesRedShootAni.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/anisCall/FesRedShootAni.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/anisCall/FesRedShootAni.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/anisCall/FesRedShootAni.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/anisCall/RectsWaveAni.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/anisCall/RectsWaveAni.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/something/class/FestivalEle.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/something/class/FestivalEle.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"
/>
...
@@ -101,8 +106,8 @@
...
@@ -101,8 +106,8 @@
</configuration>
</configuration>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"JavaScript Debug.aaaa.html"
/>
<item
itemvalue=
"JavaScript Debug.aaaa.html"
/>
</list>
</list>
</recent_temporary>
</recent_temporary>
...
@@ -151,14 +156,7 @@
...
@@ -151,14 +156,7 @@
<workItem
from=
"1600912046696"
duration=
"16271000"
/>
<workItem
from=
"1600912046696"
duration=
"16271000"
/>
<workItem
from=
"1600998191749"
duration=
"23862000"
/>
<workItem
from=
"1600998191749"
duration=
"23862000"
/>
<workItem
from=
"1601170975973"
duration=
"20963000"
/>
<workItem
from=
"1601170975973"
duration=
"20963000"
/>
<workItem
from=
"1601257315718"
duration=
"39089000"
/>
<workItem
from=
"1601257315718"
duration=
"43882000"
/>
</task>
<task
id=
"LOCAL-00011"
summary=
"map effect"
>
<created>
1594698378321
</created>
<option
name=
"number"
value=
"00011"
/>
<option
name=
"presentableId"
value=
"LOCAL-00011"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1594698378321
</updated>
</task>
</task>
<task
id=
"LOCAL-00012"
summary=
"effect"
>
<task
id=
"LOCAL-00012"
summary=
"effect"
>
<created>
1594707238031
</created>
<created>
1594707238031
</created>
...
@@ -496,7 +494,14 @@
...
@@ -496,7 +494,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1601363028904
</updated>
<updated>
1601363028904
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"60"
/>
<task
id=
"LOCAL-00060"
summary=
"节日红包fa"
>
<created>
1601363299405
</created>
<option
name=
"number"
value=
"00060"
/>
<option
name=
"presentableId"
value=
"LOCAL-00060"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1601363299406
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"61"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -526,7 +531,8 @@
...
@@ -526,7 +531,8 @@
<MESSAGE
value=
"主页"
/>
<MESSAGE
value=
"主页"
/>
<MESSAGE
value=
"afdjk,asfhksjkdulfh klasoi;dfbhjkgv kl;"
/>
<MESSAGE
value=
"afdjk,asfhksjkdulfh klasoi;dfbhjkgv kl;"
/>
<MESSAGE
value=
"节日红包"
/>
<MESSAGE
value=
"节日红包"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"节日红包"
/>
<MESSAGE
value=
"节日红包fa"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"节日红包fa"
/>
</component>
</component>
<component
name=
"WindowStateProjectService"
>
<component
name=
"WindowStateProjectService"
>
<state
x=
"440"
y=
"273"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog"
timestamp=
"1595229546530"
>
<state
x=
"440"
y=
"273"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog"
timestamp=
"1595229546530"
>
...
@@ -541,49 +547,49 @@
...
@@ -541,49 +547,49 @@
<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=
"557"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2"
timestamp=
"1601363
028558
"
>
<state
x=
"557"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2"
timestamp=
"1601363
299179
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
x=
"557"
y=
"183"
key=
"CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601363
028558
"
/>
<state
x=
"557"
y=
"183"
key=
"CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601363
299179
"
/>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584297912"
/>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584297912"
/>
<state
x=
"131"
y=
"123"
width=
"730"
height=
"977"
key=
"DiffContextDialog"
timestamp=
"1596165868169"
>
<state
x=
"131"
y=
"123"
width=
"730"
height=
"977"
key=
"DiffContextDialog"
timestamp=
"1596165868169"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
x=
"131"
y=
"123"
width=
"730"
height=
"977"
key=
"DiffContextDialog/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596165868169"
/>
<state
x=
"131"
y=
"123"
width=
"730"
height=
"977"
key=
"DiffContextDialog/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596165868169"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1601360990411
"
>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1601366579665
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804217"
/>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804217"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876448"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876448"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312309"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312309"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601360990411
"
/>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601366579665
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.center"
timestamp=
"1601360990409
"
>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.center"
timestamp=
"1601366579664
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804216"
/>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804216"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876447"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876447"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312308"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312308"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601360990409
"
/>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601366579664
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918464"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918464"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.left"
timestamp=
"1601360990408
"
>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.left"
timestamp=
"1601366579664
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804216"
/>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804216"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876447"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876447"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312308"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312308"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601360990408
"
/>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601366579663
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577197"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577197"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918463"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918463"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.right"
timestamp=
"1601360990410
"
>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.right"
timestamp=
"1601366579664
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804217"
/>
<state
width=
"869"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1600867804217"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876447"
/>
<state
width=
"885"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1410.877@30.23.1410.877"
timestamp=
"1600962876447"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312309"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312309"
/>
<state
width=
"896"
height=
"
406"
key=
"GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601360990410
"
/>
<state
width=
"896"
height=
"
321"
key=
"GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601366579664
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
...
@@ -600,10 +606,10 @@
...
@@ -600,10 +606,10 @@
</state>
</state>
<state
x=
"289"
y=
"314"
key=
"SettingsEditor/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596079390860"
/>
<state
x=
"289"
y=
"314"
key=
"SettingsEditor/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596079390860"
/>
<state
x=
"300"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724"
/>
<state
x=
"300"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724"
/>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1601363
030470
"
>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1601363
306245
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601363
030470
"
/>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601363
306245
"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584299423"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584299423"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
...
@@ -632,11 +638,11 @@
...
@@ -632,11 +638,11 @@
</state>
</state>
<state
x=
"156"
y=
"286"
key=
"run.anything.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596432664001"
/>
<state
x=
"156"
y=
"286"
key=
"run.anything.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596432664001"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595475548860"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595475548860"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"160136
1835081
"
>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup"
timestamp=
"160136
7054409
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
</state>
<state
x=
"484"
y=
"220"
width=
"670"
height=
"504"
key=
"search.everywhere.popup/30.23.1410.877@30.23.1410.877"
timestamp=
"1600829323295"
/>
<state
x=
"484"
y=
"220"
width=
"670"
height=
"504"
key=
"search.everywhere.popup/30.23.1410.877@30.23.1410.877"
timestamp=
"1600829323295"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"160136
1835081
"
/>
<state
x=
"639"
y=
"288"
width=
"671"
height=
"676"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"160136
7054409
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584259535"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584259535"
/>
</component>
</component>
<component
name=
"XDebuggerManager"
>
<component
name=
"XDebuggerManager"
>
...
@@ -647,6 +653,12 @@
...
@@ -647,6 +653,12 @@
<line>
55
</line>
<line>
55
</line>
<option
name=
"timeStamp"
value=
"5"
/>
<option
name=
"timeStamp"
value=
"5"
/>
</line-breakpoint>
</line-breakpoint>
<line-breakpoint
enabled=
"true"
type=
"javascript"
>
<url>
file://$PROJECT_DIR$/src/scene/PlayScene.ts
</url>
<line>
1960
</line>
<properties
lambdaOrdinal=
"-1"
/>
<option
name=
"timeStamp"
value=
"10"
/>
</line-breakpoint>
</breakpoints>
</breakpoints>
</breakpoint-manager>
</breakpoint-manager>
</component>
</component>
...
...
mock/miniTb/popmartXXL2c.doJoin.json
View file @
4cee9345
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"code"
:
"000000"
,
"code"
:
"000000"
,
"message"
:
"成功"
,
"message"
:
"成功"
,
"data"
:
{
"data"
:
{
"power"
:
100
"power"
:
100
,
"isGiftPrizeLevel"
:
true
}
}
}
}
mock/miniTb/popmartXXL2c.drawLotteryPrize.json
View file @
4cee9345
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
"message"
:
"成功"
,
"message"
:
"成功"
,
"data"
:
{
"data"
:
{
"_id"
:
""
,
"_id"
:
""
,
"name"
:
""
,
"name"
:
"
aaa
"
,
"type"
:
1
,
"type"
:
1
,
"image"
:
""
,
"image"
:
"
https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png
"
,
"drawStatus"
:
""
,
"drawStatus"
:
""
,
"level"
:
""
"level"
:
"
1
"
}
}
}
}
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
View file @
4cee9345
{
{
"success"
:
true
,
"success"
:
true
,
"code"
:
"sit dolor quis"
,
"code"
:
"sit dolor qui
p
s"
,
"message"
:
"nisi amet sunt Lorem"
,
"message"
:
"nis
e
i amet sunt Lorem"
,
"data"
:
{
"data"
:
{
"rule"
:
"测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试"
,
"rule"
:
"测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试"
,
"currentLevel"
:
5
,
"currentLevel"
:
120
,
"power"
:
101
,
"power"
:
101
,
"tools"
:
{
"tools"
:
{
"steps"
:
100
,
"steps"
:
100
,
...
...
src/panels/FesRedPrizePanel.ts
View file @
4cee9345
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getTbData
,
TbNetName
}
from
"../TaoBaoNet"
;
import
Tween
=
FYGE
.
Tween
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
Ease
=
FYGE
.
Ease
;
import
Sprite
=
FYGE
.
Sprite
;
import
Sprite
=
FYGE
.
Sprite
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
MapScene
}
from
"../scene/map/MapScene"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Button
=
FYGE
.
Button
;
import
Button
=
FYGE
.
Button
;
import
{
Tools
}
from
"../Tools"
;
const
propImg
=
{
const
propImg
=
{
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
...
@@ -21,10 +20,6 @@ export class FesRedPrizePanel extends Panel {
...
@@ -21,10 +20,6 @@ export class FesRedPrizePanel extends Panel {
return
[
'FesRedPrizePanel'
]
return
[
'FesRedPrizePanel'
]
}
}
// get skinName() {
// return "SuccessPrizePanel"
// }
public
showAni
()
{
public
showAni
()
{
if
(
this
.
isShowing
)
return
;
if
(
this
.
isShowing
)
return
;
this
.
isShowing
=
true
;
this
.
isShowing
=
true
;
...
@@ -56,7 +51,8 @@ export class FesRedPrizePanel extends Panel {
...
@@ -56,7 +51,8 @@ export class FesRedPrizePanel extends Panel {
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
hidePanel
,
this
)
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
hidePanel
,
this
)
.
position
.
set
(
165
,
1045
);
.
position
.
set
(
165
,
1045
);
this
.
img
=
this
.
addChild
(
new
Sprite
());
const
res
=
getTbData
(
TbNetName
.
drawLotteryPrize
);
this
.
img
=
this
.
addChild
(
Sprite
.
fromUrl
(
res
.
data
.
image
));
this
.
img
.
anchorTexture
.
x
=
0.5
;
this
.
img
.
anchorTexture
.
x
=
0.5
;
this
.
img
.
position
.
set
(
375
,
693
);
this
.
img
.
position
.
set
(
375
,
693
);
this
.
img
.
width
=
this
.
img
.
height
=
252
;
this
.
img
.
width
=
this
.
img
.
height
=
252
;
...
...
src/panels/StartPanelPrize.ts
View file @
4cee9345
...
@@ -89,7 +89,10 @@ export class StartPanelPrize extends Panel {
...
@@ -89,7 +89,10 @@ export class StartPanelPrize extends Panel {
if
(
!
success
)
return
;
if
(
!
success
)
return
;
Tools
.
propInfo
.
power
=
res
.
data
.
power
;
Tools
.
propInfo
.
power
=
res
.
data
.
power
;
changeScene
(
PlayScene
,
{
chapter
:
level
});
changeScene
(
PlayScene
,
{
chapter
:
level
,
isGiftPrizeLevel
:
res
.
data
.
isGiftPrizeLevel
});
this
.
hidePanel
();
this
.
hidePanel
();
}
}
);
);
...
...
src/panels/TaskPanel.ts
View file @
4cee9345
...
@@ -132,11 +132,13 @@ export class TaskPanel extends Panel {
...
@@ -132,11 +132,13 @@ export class TaskPanel extends Panel {
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
GDispatcher
.
addEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
updateTask
,
this
);
GDispatcher
.
addEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
GDispatcher
.
addEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
GDispatcher
.
removeEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
updateTask
,
this
);
GDispatcher
.
removeEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
GDispatcher
.
removeEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
}
}
}
}
...
@@ -167,6 +169,7 @@ class TaskItem extends Item {
...
@@ -167,6 +169,7 @@ class TaskItem extends Item {
));
));
this
.
desc
.
bold
=
true
;
this
.
desc
.
bold
=
true
;
this
.
desc
.
position
.
set
(
145
,
92
);
this
.
desc
.
position
.
set
(
145
,
92
);
}
}
public
initData
(
id
:
number
,
data
:
any
)
{
public
initData
(
id
:
number
,
data
:
any
)
{
...
...
src/scene/PlayScene.ts
View file @
4cee9345
...
@@ -69,6 +69,7 @@ import { FesRedPrizePanel } from "../panels/FesRedPrizePanel";
...
@@ -69,6 +69,7 @@ import { FesRedPrizePanel } from "../panels/FesRedPrizePanel";
import
FrameAni
=
FYGE
.
FrameAni
;
import
FrameAni
=
FYGE
.
FrameAni
;
import
Texture
=
FYGE
.
Texture
;
import
Texture
=
FYGE
.
Texture
;
import
Container
=
FYGE
.
Container
;
import
Container
=
FYGE
.
Container
;
import
Ease
=
FYGE
.
Ease
;
const
aniClass
=
{
const
aniClass
=
{
"BoomAni"
:
BoomAni
,
"BoomAni"
:
BoomAni
,
...
@@ -281,9 +282,9 @@ export class PlayScene extends Scene {
...
@@ -281,9 +282,9 @@ export class PlayScene extends Scene {
this
.
settingBtn
.
position
.
set
(
618
,
16
)
this
.
settingBtn
.
position
.
set
(
618
,
16
)
}
}
data
:
{
chapter
:
number
}
data
:
{
chapter
:
number
,
isGiftPrizeLevel
:
boolean
}
start
(
data
:
{
chapter
:
number
})
{
start
(
data
:
{
chapter
:
number
,
isGiftPrizeLevel
:
boolean
})
{
super
.
start
();
super
.
start
();
// data = { chapter: 1 }
// data = { chapter: 1 }
//第几关
//第几关
...
@@ -423,7 +424,7 @@ export class PlayScene extends Scene {
...
@@ -423,7 +424,7 @@ export class PlayScene extends Scene {
//初始化道具信息
//初始化道具信息
this
.
updateScene
();
this
.
updateScene
();
//选择框 无需加入场景
//选择框 无需加入场景
var
textureChoosed
:
FYGE
.
Texture
=
RES
.
getRes
(
"chooseRect.png"
)
const
textureChoosed
:
FYGE
.
Texture
=
RES
.
getRes
(
"chooseRect.png"
);
this
.
choosed
=
new
FYGE
.
Sprite
(
textureChoosed
);
this
.
choosed
=
new
FYGE
.
Sprite
(
textureChoosed
);
this
.
choosed
.
anchorTexture
.
set
(
0.5
,
0.5
)
this
.
choosed
.
anchorTexture
.
set
(
0.5
,
0.5
)
//道具使用时蒙层 无需加入场景,带入propBtnCo的位置数据
//道具使用时蒙层 无需加入场景,带入propBtnCo的位置数据
...
@@ -464,14 +465,14 @@ export class PlayScene extends Scene {
...
@@ -464,14 +465,14 @@ export class PlayScene extends Scene {
//不考虑0,初始的时候目标是0?
//不考虑0,初始的时候目标是0?
if
(
this
.
passElements
&&
this
.
passElements
[
ElementType
.
LOLLIPOP
])
{
if
(
this
.
passElements
&&
this
.
passElements
[
ElementType
.
LOLLIPOP
])
{
//初始化recycleIndexs,
//初始化recycleIndexs,
var
recycles
=
this
.
chapterData
.
map
.
recycles
;
const
recycles
=
this
.
chapterData
.
map
.
recycles
;
//如果没有就取最下层的,用地图数据格子初始化
//如果没有就取最下层的,用地图数据格子初始化
if
(
!
recycles
||
!
recycles
.
length
)
{
if
(
!
recycles
||
!
recycles
.
length
)
{
var
endRowNumHash
=
{},
endRowNum
:
number
=
0
;
let
endRowNumHash
=
{},
endRowNum
:
number
=
0
;
for
(
var
i
=
0
;
i
<
this
.
chapterData
.
map
.
lattices
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
chapterData
.
map
.
lattices
.
length
;
i
++
)
{
var
d
=
this
.
chapterData
.
map
.
lattices
[
i
];
const
d
=
this
.
chapterData
.
map
.
lattices
[
i
];
if
(
!
d
)
continue
;
if
(
!
d
)
continue
;
var
rc
=
Tool
.
indexToRc
(
i
);
const
rc
=
Tool
.
indexToRc
(
i
);
const
[
row
,
col
]
=
rc
;
const
[
row
,
col
]
=
rc
;
//不用考虑0
//不用考虑0
if
(
!
endRowNumHash
[
col
])
{
if
(
!
endRowNumHash
[
col
])
{
...
@@ -565,20 +566,20 @@ export class PlayScene extends Scene {
...
@@ -565,20 +566,20 @@ export class PlayScene extends Scene {
}
}
}
}
//生成口数据
//生成口数据
var
genLatDatas
=
this
.
chapterData
.
map
.
generateLats
||
[];
const
genLatDatas
=
this
.
chapterData
.
map
.
generateLats
||
[];
//设置生成口,
//设置生成口,
this
.
generateIndexs
=
Tool
.
setGenerateLats
(
this
.
lattices
,
genLatDatas
)
this
.
generateIndexs
=
Tool
.
setGenerateLats
(
this
.
lattices
,
genLatDatas
)
var
downMax
:
number
=
0
;
let
downMax
:
number
=
0
;
var
upMax
:
number
=
0
;
let
upMax
:
number
=
0
;
var
hasSmallToBig
:
boolean
;
let
hasSmallToBig
:
boolean
;
var
hasBigToSmall
:
boolean
;
let
hasBigToSmall
:
boolean
;
//联通口
//联通口
var
connectedLats
=
this
.
chapterData
.
map
.
connectedLats
||
[];
const
connectedLats
=
this
.
chapterData
.
map
.
connectedLats
||
[];
for
(
var
i
=
0
;
i
<
connectedLats
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
connectedLats
.
length
;
i
++
)
{
//0是上格子,1是下格子
//0是上格子,1是下格子
var
connectedLat
=
connectedLats
[
i
];
const
connectedLat
=
connectedLats
[
i
];
if
(
!
connectedLat
||
!
connectedLat
.
length
)
continue
;
if
(
!
connectedLat
||
!
connectedLat
.
length
)
continue
;
this
.
lattices
[
connectedLat
[
0
]].
down
=
connectedLat
[
1
];
this
.
lattices
[
connectedLat
[
0
]].
down
=
connectedLat
[
1
];
this
.
lattices
[
connectedLat
[
1
]].
up
=
connectedLat
[
0
];
this
.
lattices
[
connectedLat
[
1
]].
up
=
connectedLat
[
0
];
...
@@ -611,7 +612,7 @@ export class PlayScene extends Scene {
...
@@ -611,7 +612,7 @@ export class PlayScene extends Scene {
initElement
()
{
initElement
()
{
//没有就根据地图格子随机元素
//没有就根据地图格子随机元素
var
elements
=
this
.
chapterData
.
map
.
elements
||
Tool
.
setNumber01
(
this
.
chapterData
.
map
.
lattices
.
slice
());
var
elements
=
this
.
chapterData
.
map
.
elements
||
Tool
.
setNumber01
(
this
.
chapterData
.
map
.
lattices
.
slice
());
for
(
var
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
//如果对应格子为空,直接跳过,
//如果对应格子为空,直接跳过,
if
(
!
this
.
lattices
[
i
])
continue
;
if
(
!
this
.
lattices
[
i
])
continue
;
let
ele
:
Element
;
let
ele
:
Element
;
...
@@ -627,7 +628,7 @@ export class PlayScene extends Scene {
...
@@ -627,7 +628,7 @@ export class PlayScene extends Scene {
case
8
:
case
8
:
case
9
:
case
9
:
case
10
:
case
10
:
var
type
=
Tool
.
returnType
(
i
,
this
.
lattices
,
this
.
chapterData
.
baseElementTypes
);
const
type
=
Tool
.
returnType
(
i
,
this
.
lattices
,
this
.
chapterData
.
baseElementTypes
);
ele
=
Tool
.
getElement
(
type
)
ele
=
Tool
.
getElement
(
type
)
if
(
elements
[
i
]
==
4
)
{
if
(
elements
[
i
]
==
4
)
{
ele
.
setState
(
StateType
.
LOCK
,
true
)
ele
.
setState
(
StateType
.
LOCK
,
true
)
...
@@ -701,17 +702,17 @@ export class PlayScene extends Scene {
...
@@ -701,17 +702,17 @@ export class PlayScene extends Scene {
//重置基础元素及特效类型
//重置基础元素及特效类型
initBaseElement
()
{
initBaseElement
()
{
var
elements
=
this
.
chapterData
.
map
.
baseElements
;
const
elements
=
this
.
chapterData
.
map
.
baseElements
;
if
(
!
elements
||
!
elements
.
length
)
return
;
if
(
!
elements
||
!
elements
.
length
)
return
;
for
(
var
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
//不是基础元素,跳过,
//不是基础元素,跳过,
if
(
!
Tool
.
judgeBaseEle
(
this
.
lattices
[
i
]))
continue
;
if
(
!
Tool
.
judgeBaseEle
(
this
.
lattices
[
i
]))
continue
;
//是0,跳过
//是0,跳过
if
(
!
elements
[
i
])
continue
if
(
!
elements
[
i
])
continue
//解析elements[i];
//解析elements[i];
var
arr
:
number
[]
=
Tool
.
returnTO
(
elements
[
i
]);
const
arr
:
number
[]
=
Tool
.
returnTO
(
elements
[
i
]);
//基础类型,没有就是null,有就-1,对ElementType对应
//基础类型,没有就是null,有就-1,对ElementType对应
var
baseType
=
arr
[
1
]
?
arr
[
1
]
-
1
:
null
;
const
baseType
=
arr
[
1
]
?
arr
[
1
]
-
1
:
null
;
//baseType不是基础类型,且不是null,跳出
//baseType不是基础类型,且不是null,跳出
if
(
FiveBaseElementTypes
.
indexOf
(
baseType
)
==
-
1
&&
baseType
!=
null
)
continue
;
if
(
FiveBaseElementTypes
.
indexOf
(
baseType
)
==
-
1
&&
baseType
!=
null
)
continue
;
let
ele
:
Element
=
this
.
lattices
[
i
].
element
;
let
ele
:
Element
=
this
.
lattices
[
i
].
element
;
...
@@ -751,13 +752,14 @@ export class PlayScene extends Scene {
...
@@ -751,13 +752,14 @@ export class PlayScene extends Scene {
//初始化节日元素,暂时不用
//初始化节日元素,暂时不用
initFestivalEle
():
boolean
{
initFestivalEle
():
boolean
{
//添加节日元素,条件可能会变
//添加节日元素,条件可能会变
if
(
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
if
(
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
// getRedBombTimes() &&
// && getRedBombTimes()
// Math.random() > 0.5 &&
// && Math.random() > 0.5
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
&&
this
.
data
.
isGiftPrizeLevel
// 接口说这是礼盒关卡
&&
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
)
{
)
{
var
p
=
Tool
.
getPositionByIndex
(
festivalIndex
);
const
p
=
Tool
.
getPositionByIndex
(
festivalIndex
);
//添加节日红包目标
//添加节日红包目标
this
.
festivalTarget
=
new
FestivalTarget
(
this
.
festivalTargetNum
);
this
.
festivalTarget
=
new
FestivalTarget
(
this
.
festivalTargetNum
);
this
.
festivalTarget
.
x
=
580
;
this
.
festivalTarget
.
x
=
580
;
...
@@ -843,12 +845,12 @@ export class PlayScene extends Scene {
...
@@ -843,12 +845,12 @@ export class PlayScene extends Scene {
//出现交换提示
//出现交换提示
warningAni
()
{
warningAni
()
{
var
a
=
this
.
warningCop
[
0
];
const
a
=
this
.
warningCop
[
0
];
var
b
=
this
.
warningCop
[
1
];
const
b
=
this
.
warningCop
[
1
];
var
ax
=
a
.
x
;
const
ax
=
a
.
x
;
var
ay
=
a
.
y
;
const
ay
=
a
.
y
;
var
bx
=
b
.
x
;
const
bx
=
b
.
x
;
var
by
=
b
.
y
;
const
by
=
b
.
y
;
FYGE
.
Tween
.
get
(
a
,
{
loop
:
true
})
FYGE
.
Tween
.
get
(
a
,
{
loop
:
true
})
.
to
({
x
:
(
bx
-
ax
)
/
10
+
ax
,
y
:
(
by
-
ay
)
/
10
+
ay
},
100
)
.
to
({
x
:
(
bx
-
ax
)
/
10
+
ax
,
y
:
(
by
-
ay
)
/
10
+
ay
},
100
)
.
to
({
x
:
ax
,
y
:
ay
},
100
)
.
to
({
x
:
ax
,
y
:
ay
},
100
)
...
@@ -871,12 +873,12 @@ export class PlayScene extends Scene {
...
@@ -871,12 +873,12 @@ export class PlayScene extends Scene {
FYGE
.
Tween
.
removeTweens
(
this
.
warningCop
[
0
]);
FYGE
.
Tween
.
removeTweens
(
this
.
warningCop
[
0
]);
FYGE
.
Tween
.
removeTweens
(
this
.
warningCop
[
1
]);
FYGE
.
Tween
.
removeTweens
(
this
.
warningCop
[
1
]);
//还原位置
//还原位置
var
a
=
this
.
warningCop
[
0
];
const
a
=
this
.
warningCop
[
0
];
var
b
=
this
.
warningCop
[
1
];
const
b
=
this
.
warningCop
[
1
];
var
aIndex
=
a
.
index
;
const
aIndex
=
a
.
index
;
var
bIndex
=
b
.
index
;
const
bIndex
=
b
.
index
;
var
ap
=
Tool
.
getPositionByIndex
(
aIndex
);
const
ap
=
Tool
.
getPositionByIndex
(
aIndex
);
var
bp
=
Tool
.
getPositionByIndex
(
bIndex
);
const
bp
=
Tool
.
getPositionByIndex
(
bIndex
);
a
.
x
=
ap
[
0
];
a
.
x
=
ap
[
0
];
a
.
y
=
ap
[
1
];
a
.
y
=
ap
[
1
];
b
.
x
=
bp
[
0
];
b
.
x
=
bp
[
0
];
...
@@ -941,7 +943,7 @@ export class PlayScene extends Scene {
...
@@ -941,7 +943,7 @@ export class PlayScene extends Scene {
// ele.type != ElementType.ROCK &&
// ele.type != ElementType.ROCK &&
ele
.
type
!=
ElementType
.
LOLLIPOP
)
{
ele
.
type
!=
ElementType
.
LOLLIPOP
)
{
this
.
elementContainer
.
removeEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
fun
,
this
);
this
.
elementContainer
.
removeEventListener
(
FYGE
.
MouseEvent
.
MOUSE_DOWN
,
fun
,
this
);
var
index
=
ele
.
index
;
const
index
=
ele
.
index
;
this
.
sendPropUse
(
prop
,
index
);
this
.
sendPropUse
(
prop
,
index
);
}
}
},
this
)
},
this
)
...
@@ -986,7 +988,7 @@ export class PlayScene extends Scene {
...
@@ -986,7 +988,7 @@ export class PlayScene extends Scene {
this
.
removeChild
(
this
.
propGuide
);
this
.
removeChild
(
this
.
propGuide
);
//接口
//接口
showWaiting
();
showWaiting
();
var
s
=
await
Tools
.
consumerTools
(
prop
);
const
s
=
await
Tools
.
consumerTools
(
prop
);
hideWaiting
();
hideWaiting
();
//还原事件
//还原事件
this
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
this
.
addEventListener
(
FYGE
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
...
@@ -1003,17 +1005,17 @@ export class PlayScene extends Scene {
...
@@ -1003,17 +1005,17 @@ export class PlayScene extends Scene {
switch
(
prop
)
{
switch
(
prop
)
{
case
PropType
.
BOOMS
:
case
PropType
.
BOOMS
:
//playSound(SoundType.line)
//playSound(SoundType.line)
var
rc
=
Tool
.
indexToRc
(
index
);
const
rc
=
Tool
.
indexToRc
(
index
);
var
p
=
Tool
.
getPositionByIndex
(
index
);
const
p
=
Tool
.
getPositionByIndex
(
index
);
this
.
playAni
(
RecoverName
.
CROSS_ANI
,
p
);
this
.
playAni
(
RecoverName
.
CROSS_ANI
,
p
);
for
(
var
i
=
0
;
i
<
this
.
lattices
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
lattices
.
length
;
i
++
)
{
var
lat
=
this
.
lattices
[
i
];
const
lat
=
this
.
lattices
[
i
];
if
(
Tool
.
judgeEliminate
(
lat
)
&&
(
lat
.
row
==
rc
[
0
]
||
lat
.
column
==
rc
[
1
]))
{
if
(
Tool
.
judgeEliminate
(
lat
)
&&
(
lat
.
row
==
rc
[
0
]
||
lat
.
column
==
rc
[
1
]))
{
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
{
if
(
this
.
eliminatedElements
.
indexOf
(
i
)
==
-
1
)
{
this
.
eliminatedElements
.
push
(
i
);
this
.
eliminatedElements
.
push
(
i
);
if
(
Tool
.
judgeHasScore
(
lat
.
element
))
{
if
(
Tool
.
judgeHasScore
(
lat
.
element
))
{
//算直线+直线LL
//算直线+直线LL
this
.
pushScoreAni
(
baseScore
*
1
*
effectBaseTimes
.
LL
,
Tool
.
getPositionByIndex
(
i
))
this
.
pushScoreAni
(
baseScore
*
effectBaseTimes
.
LL
,
Tool
.
getPositionByIndex
(
i
))
}
}
}
}
}
}
...
@@ -1027,7 +1029,7 @@ export class PlayScene extends Scene {
...
@@ -1027,7 +1029,7 @@ export class PlayScene extends Scene {
this
.
eliminatedElements
.
push
(
index
);
this
.
eliminatedElements
.
push
(
index
);
if
(
Tool
.
judgeHasScore
(
this
.
lattices
[
index
].
element
))
{
if
(
Tool
.
judgeHasScore
(
this
.
lattices
[
index
].
element
))
{
this
.
pushScoreAni
(
this
.
pushScoreAni
(
baseScore
*
1
*
(
effectBaseTimes
[
this
.
lattices
[
index
].
element
.
effectType
]
||
1
),
baseScore
*
(
effectBaseTimes
[
this
.
lattices
[
index
].
element
.
effectType
]
||
1
),
Tool
.
getPositionByIndex
(
index
)
Tool
.
getPositionByIndex
(
index
)
)
)
}
}
...
@@ -1052,9 +1054,9 @@ export class PlayScene extends Scene {
...
@@ -1052,9 +1054,9 @@ export class PlayScene extends Scene {
mouseDownE
(
e
:
FYGE
.
MouseEvent
)
{
mouseDownE
(
e
:
FYGE
.
MouseEvent
)
{
//现在有两级,element的showImage是FrameAni
//现在有两级,element的showImage是FrameAni
var
ele
=
e
.
currentTarget
.
parent
.
parent
;
const
ele
=
e
.
currentTarget
.
parent
.
parent
;
// console.log(e.currentTarget.parent.parent)
// console.log(e.currentTarget.parent.parent)
var
self
=
this
;
const
self
=
this
;
if
(
ele
&&
ele
instanceof
Element
)
{
if
(
ele
&&
ele
instanceof
Element
)
{
//去掉提示动画
//去掉提示动画
this
.
isShowWarning
=
false
;
this
.
isShowWarning
=
false
;
...
@@ -1079,7 +1081,7 @@ export class PlayScene extends Scene {
...
@@ -1079,7 +1081,7 @@ export class PlayScene extends Scene {
mouseMoveE
(
e
)
{
mouseMoveE
(
e
)
{
if
(
this
.
SELECTED
&&
e
.
currentTarget
.
parent
.
parent
instanceof
Element
)
{
if
(
this
.
SELECTED
&&
e
.
currentTarget
.
parent
.
parent
instanceof
Element
)
{
var
ele
=
e
.
currentTarget
.
parent
.
parent
const
ele
=
e
.
currentTarget
.
parent
.
parent
;
if
(
!
Tool
.
judgeChosen
(
ele
))
return
if
(
!
Tool
.
judgeChosen
(
ele
))
return
if
(
Tool
.
checkNeb
(
ele
,
this
.
SELECTED
))
{
if
(
Tool
.
checkNeb
(
ele
,
this
.
SELECTED
))
{
this
.
exchangeElementAni
(
this
.
SELECTED
,
ele
,
this
.
callbackEx
);
this
.
exchangeElementAni
(
this
.
SELECTED
,
ele
,
this
.
callbackEx
);
...
@@ -1103,9 +1105,9 @@ export class PlayScene extends Scene {
...
@@ -1103,9 +1105,9 @@ export class PlayScene extends Scene {
//开始执行消除
//开始执行消除
this
.
eliminate
();
this
.
eliminate
();
//同时考虑判断棒棒糖交换后是否可以掉落,是否可以落下,待加
//同时考虑判断棒棒糖交换后是否可以掉落,是否可以落下,待加
var
aarr
=
[
s
,
o
]
const
aarr
=
[
s
,
o
];
for
(
var
i
=
0
;
i
<
aarr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
aarr
.
length
;
i
++
)
{
var
ele
=
aarr
[
i
];
const
ele
=
aarr
[
i
];
//元素是棒棒糖,并且在回收口索引内
//元素是棒棒糖,并且在回收口索引内
if
(
ele
.
type
==
ElementType
.
LOLLIPOP
&&
this
.
recycleIndexs
.
indexOf
(
ele
.
index
)
>
-
1
)
{
if
(
ele
.
type
==
ElementType
.
LOLLIPOP
&&
this
.
recycleIndexs
.
indexOf
(
ele
.
index
)
>
-
1
)
{
this
.
recoverEle
(
ele
.
index
);
this
.
recoverEle
(
ele
.
index
);
...
@@ -1142,8 +1144,8 @@ export class PlayScene extends Scene {
...
@@ -1142,8 +1144,8 @@ export class PlayScene extends Scene {
//数据交换
//数据交换
private
exchangeData
(
a
:
Element
,
b
:
Element
)
{
private
exchangeData
(
a
:
Element
,
b
:
Element
)
{
var
latA
=
this
.
lattices
[
a
.
index
];
const
latA
=
this
.
lattices
[
a
.
index
];
var
latB
=
this
.
lattices
[
b
.
index
];
const
latB
=
this
.
lattices
[
b
.
index
];
latA
.
element
=
b
;
latA
.
element
=
b
;
latB
.
element
=
a
;
latB
.
element
=
a
;
}
}
...
@@ -1162,7 +1164,7 @@ export class PlayScene extends Scene {
...
@@ -1162,7 +1164,7 @@ export class PlayScene extends Scene {
//逻辑需要重新梳理
//逻辑需要重新梳理
if
(
/*!this.fallVerMark ||*/
Tool
.
judgeOutOne
(
this
.
emptys
,
this
.
lattices
))
{
if
(
/*!this.fallVerMark ||*/
Tool
.
judgeOutOne
(
this
.
emptys
,
this
.
lattices
))
{
// this.fallVerMark = true;
// this.fallVerMark = true;
var
anis
=
this
.
fallVerticalEx
();
let
anis
=
this
.
fallVerticalEx
();
if
(
!
anis
.
length
)
{
if
(
!
anis
.
length
)
{
anis
=
this
.
fallSkewEx
()
anis
=
this
.
fallSkewEx
()
if
(
!
anis
.
length
)
{
if
(
!
anis
.
length
)
{
...
@@ -1178,7 +1180,7 @@ export class PlayScene extends Scene {
...
@@ -1178,7 +1180,7 @@ export class PlayScene extends Scene {
},
true
)
},
true
)
}
}
}
else
{
}
else
{
var
anis
=
this
.
fallVertical
();
let
anis
=
this
.
fallVertical
();
anis
=
anis
.
concat
(
this
.
fallSkewEx
());
anis
=
anis
.
concat
(
this
.
fallSkewEx
());
if
(
!
anis
.
length
)
{
if
(
!
anis
.
length
)
{
// this.fallVerMark = false;
// this.fallVerMark = false;
...
@@ -1485,7 +1487,7 @@ export class PlayScene extends Scene {
...
@@ -1485,7 +1487,7 @@ export class PlayScene extends Scene {
let
lastX
:
number
,
lastY
:
number
;
let
lastX
:
number
,
lastY
:
number
;
//对所有的indexs进行遍历动画
//对所有的indexs进行遍历动画
for
(
var
j
=
0
;
j
<
indexs
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
indexs
.
length
;
j
++
)
{
let
index
=
indexs
[
j
].
index
;
let
index
=
indexs
[
j
].
index
;
let
type
=
indexs
[
j
].
type
;
let
type
=
indexs
[
j
].
type
;
let
p
=
Tool
.
getPositionByIndex
(
index
);
let
p
=
Tool
.
getPositionByIndex
(
index
);
...
@@ -1519,7 +1521,7 @@ export class PlayScene extends Scene {
...
@@ -1519,7 +1521,7 @@ export class PlayScene extends Scene {
wait
+=
deltaTime
;
wait
+=
deltaTime
;
}
else
{
}
else
{
//算间隔
//算间隔
var
delta
=
Tool
.
indexToRc
(
index
)[
0
]
-
oriRow
;
const
delta
=
Tool
.
indexToRc
(
index
)[
0
]
-
oriRow
;
if
(
delta
>
0
)
{
if
(
delta
>
0
)
{
//修改oriRow
//修改oriRow
oriRow
=
Tool
.
indexToRc
(
index
)[
0
];
oriRow
=
Tool
.
indexToRc
(
index
)[
0
];
...
@@ -1544,7 +1546,7 @@ export class PlayScene extends Scene {
...
@@ -1544,7 +1546,7 @@ export class PlayScene extends Scene {
return
false
return
false
})()
})()
//元素赋值,考虑到底放哪好
//元素赋值,考虑到底放哪好
var
lat
=
this
.
lattices
[
endIndex
];
const
lat
=
this
.
lattices
[
endIndex
];
lat
.
element
=
ele
;
lat
.
element
=
ele
;
//最终回调
//最终回调
tween
.
call
(()
=>
{
tween
.
call
(()
=>
{
...
@@ -1577,8 +1579,8 @@ export class PlayScene extends Scene {
...
@@ -1577,8 +1579,8 @@ export class PlayScene extends Scene {
* @param index 生成口索引。定制掉落口用,不存在则随机
* @param index 生成口索引。定制掉落口用,不存在则随机
*/
*/
createELement
(
index
:
number
):
Element
{
createELement
(
index
:
number
):
Element
{
var
type
:
ElementType
;
let
type
:
ElementType
;
var
effectType
:
EffectType
=
null
;
let
effectType
:
EffectType
=
null
;
//优先棒棒糖
//优先棒棒糖
if
(
this
.
lollipopMark
)
{
if
(
this
.
lollipopMark
)
{
this
.
lollipopMark
=
false
;
this
.
lollipopMark
=
false
;
...
@@ -1588,18 +1590,18 @@ export class PlayScene extends Scene {
...
@@ -1588,18 +1590,18 @@ export class PlayScene extends Scene {
//生成口定制掉落
//生成口定制掉落
else
{
else
{
//基础元素数组
//基础元素数组
var
baseElementTypes
=
this
.
chapterData
.
baseElementTypes
.
slice
();
const
baseElementTypes
=
this
.
chapterData
.
baseElementTypes
.
slice
();
//列数
//列数
var
col
=
Tool
.
indexToRc
(
index
)[
1
];
const
col
=
Tool
.
indexToRc
(
index
)[
1
];
//找出索引是index的数据
//找出索引是index的数据
var
data
:
GenerateLatData
=
this
.
generateIndexs
[
col
].
filter
((
d
)
=>
{
const
data
:
GenerateLatData
=
this
.
generateIndexs
[
col
].
filter
((
d
)
=>
{
return
d
.
index
==
index
return
d
.
index
==
index
})[
0
];
})[
0
];
if
(
data
)
{
if
(
data
)
{
//先去掉cus里的
//先去掉cus里的
let
one
=
data
.
cus
.
shift
()
let
one
=
data
.
cus
.
shift
()
if
(
one
)
{
if
(
one
)
{
var
oneData
=
Tool
.
praseEleNumber
(
one
);
const
oneData
=
Tool
.
praseEleNumber
(
one
);
type
=
oneData
[
0
]
===
null
?
Tool
.
randomT
(
baseElementTypes
)
:
oneData
[
0
];
type
=
oneData
[
0
]
===
null
?
Tool
.
randomT
(
baseElementTypes
)
:
oneData
[
0
];
effectType
=
oneData
[
1
];
effectType
=
oneData
[
1
];
}
}
...
@@ -1611,9 +1613,9 @@ export class PlayScene extends Scene {
...
@@ -1611,9 +1613,9 @@ export class PlayScene extends Scene {
}
}
//type里随机。随机出来如果是0,还是随机
//type里随机。随机出来如果是0,还是随机
else
{
else
{
var
code
=
Tool
.
randomT
(
data
.
type
);
const
code
=
Tool
.
randomT
(
data
.
type
);
if
(
code
)
{
if
(
code
)
{
var
codeData
=
Tool
.
praseEleNumber
(
code
);
const
codeData
=
Tool
.
praseEleNumber
(
code
);
type
=
codeData
[
0
]
===
null
?
Tool
.
randomT
(
baseElementTypes
)
:
codeData
[
0
];
type
=
codeData
[
0
]
===
null
?
Tool
.
randomT
(
baseElementTypes
)
:
codeData
[
0
];
effectType
=
codeData
[
1
];
effectType
=
codeData
[
1
];
}
else
{
}
else
{
...
@@ -1676,7 +1678,7 @@ export class PlayScene extends Scene {
...
@@ -1676,7 +1678,7 @@ export class PlayScene extends Scene {
*/
*/
threeMatch
(
s
?:
Element
,
o
?:
Element
)
{
threeMatch
(
s
?:
Element
,
o
?:
Element
)
{
//横排检测
//横排检测
for
(
var
i
=
0
;
i
<
Tool
.
rowNum
;
i
++
)
{
for
(
let
i
=
0
;
i
<
Tool
.
rowNum
;
i
++
)
{
//集合横排元素
//集合横排元素
var
arr
=
[]
var
arr
=
[]
for
(
var
g
=
0
;
g
<
Tool
.
colNum
;
g
++
)
{
for
(
var
g
=
0
;
g
<
Tool
.
colNum
;
g
++
)
{
...
@@ -1711,7 +1713,7 @@ export class PlayScene extends Scene {
...
@@ -1711,7 +1713,7 @@ export class PlayScene extends Scene {
}
}
}
}
//竖排检测
//竖排检测
for
(
var
m
=
0
;
m
<
Tool
.
colNum
;
m
++
)
{
for
(
let
m
=
0
;
m
<
Tool
.
colNum
;
m
++
)
{
//集合竖排元素
//集合竖排元素
var
arr
=
[]
var
arr
=
[]
for
(
var
g
=
0
;
g
<
Tool
.
rowNum
;
g
++
)
{
for
(
var
g
=
0
;
g
<
Tool
.
rowNum
;
g
++
)
{
...
@@ -2377,7 +2379,7 @@ export class PlayScene extends Scene {
...
@@ -2377,7 +2379,7 @@ export class PlayScene extends Scene {
break
;
break
;
case
EffectType
.
VERTICAL
:
case
EffectType
.
VERTICAL
:
// if (sounds.indexOf(SoundType.line) == -1) sounds.push(SoundType.line)
// if (sounds.indexOf(SoundType.line) == -1) sounds.push(SoundType.line)
var
col
=
lat
.
column
;
const
col
=
lat
.
column
;
//动画移除自己
//动画移除自己
this
.
playAni
(
RecoverName
.
VERTICAL_ANI
,
p
);
this
.
playAni
(
RecoverName
.
VERTICAL_ANI
,
p
);
this
.
recoverEle
(
index
);
this
.
recoverEle
(
index
);
...
@@ -2549,7 +2551,7 @@ export class PlayScene extends Scene {
...
@@ -2549,7 +2551,7 @@ export class PlayScene extends Scene {
var
latsCopy
=
lats
.
slice
();
var
latsCopy
=
lats
.
slice
();
for
(
var
i
=
0
;
i
<
lats
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
lats
.
length
;
i
++
)
{
let
ele
=
lats
[
i
].
element
;
let
ele
=
lats
[
i
].
element
;
var
rand
=
Math
.
floor
(
Math
.
random
()
*
latsCopy
.
length
);
const
rand
=
Math
.
floor
(
Math
.
random
()
*
latsCopy
.
length
);
let
lat
=
latsCopy
.
splice
(
rand
,
1
)[
0
];
let
lat
=
latsCopy
.
splice
(
rand
,
1
)[
0
];
anis
.
push
([
ele
,
lat
.
index
])
anis
.
push
([
ele
,
lat
.
index
])
}
}
...
@@ -2559,7 +2561,7 @@ export class PlayScene extends Scene {
...
@@ -2559,7 +2561,7 @@ export class PlayScene extends Scene {
for
(
var
i
=
0
;
i
<
countAll
;
i
++
)
{
for
(
var
i
=
0
;
i
<
countAll
;
i
++
)
{
let
ele
:
Element
=
anis
[
i
][
0
];
let
ele
:
Element
=
anis
[
i
][
0
];
let
index
:
number
=
anis
[
i
][
1
];
let
index
:
number
=
anis
[
i
][
1
];
var
p
=
Tool
.
getPositionByIndex
(
index
);
const
p
=
Tool
.
getPositionByIndex
(
index
);
//现在得位置的赋值
//现在得位置的赋值
var
lat
=
this
.
lattices
[
index
];
var
lat
=
this
.
lattices
[
index
];
lat
.
element
=
ele
;
lat
.
element
=
ele
;
...
@@ -2633,12 +2635,12 @@ export class PlayScene extends Scene {
...
@@ -2633,12 +2635,12 @@ export class PlayScene extends Scene {
this
.
submit
(
suc
);
this
.
submit
(
suc
);
}))
return
;
}))
return
;
var
params
=
{
const
params
=
{
level
:
this
.
data
.
chapter
,
level
:
this
.
data
.
chapter
,
score
:
this
.
score
,
score
:
this
.
score
,
stars
:
this
.
scoreProgress
.
starCount
,
stars
:
this
.
scoreProgress
.
starCount
,
isVisitSuccess
:
suc
,
isVisitSuccess
:
suc
,
}
}
;
showWaiting
();
showWaiting
();
sendTbNet
(
TbNetName
.
gameOver
,
params
,
(
s
,
res
)
=>
{
sendTbNet
(
TbNetName
.
gameOver
,
params
,
(
s
,
res
)
=>
{
hideWaiting
();
hideWaiting
();
...
@@ -2680,7 +2682,7 @@ export class PlayScene extends Scene {
...
@@ -2680,7 +2682,7 @@ export class PlayScene extends Scene {
* @param data
* @param data
*/
*/
returnPanels
(
panelName
,
data
)
{
returnPanels
(
panelName
,
data
)
{
var
panels
=
[],
params
=
[];
const
panels
=
[],
params
=
[];
//如果需要弹出红包炸弹,要先出
//如果需要弹出红包炸弹,要先出
if
(
this
.
redBombPanelMark
)
{
if
(
this
.
redBombPanelMark
)
{
panels
.
push
(
redBombPanelName
);
panels
.
push
(
redBombPanelName
);
...
@@ -2721,7 +2723,7 @@ export class PlayScene extends Scene {
...
@@ -2721,7 +2723,7 @@ export class PlayScene extends Scene {
*/
*/
iceBroken
(
lat
:
Lattice
)
{
iceBroken
(
lat
:
Lattice
)
{
if
(
lat
&&
lat
.
ice
)
{
if
(
lat
&&
lat
.
ice
)
{
var
ice
=
lat
.
ice
;
const
ice
=
lat
.
ice
;
ice
.
countNum
--
;
ice
.
countNum
--
;
if
(
ice
.
countNum
==
0
)
{
if
(
ice
.
countNum
==
0
)
{
this
.
map
.
removeChild
(
ice
);
this
.
map
.
removeChild
(
ice
);
...
@@ -2732,7 +2734,7 @@ export class PlayScene extends Scene {
...
@@ -2732,7 +2734,7 @@ export class PlayScene extends Scene {
}
else
{
}
else
{
ice
.
alpha
=
0.6
;
ice
.
alpha
=
0.6
;
}
}
var
p
=
Tool
.
getPositionByIndex
(
lat
.
index
);
const
p
=
Tool
.
getPositionByIndex
(
lat
.
index
);
//动画
//动画
this
.
playAni
(
RecoverName
.
ICE_ANI
,
p
);
this
.
playAni
(
RecoverName
.
ICE_ANI
,
p
);
}
}
...
@@ -2746,7 +2748,7 @@ export class PlayScene extends Scene {
...
@@ -2746,7 +2748,7 @@ export class PlayScene extends Scene {
this
.
passElements
[
type
]
--
;
this
.
passElements
[
type
]
--
;
// console.log(this.elementTargets.targets[type])
// console.log(this.elementTargets.targets[type])
//@ts-ignore
//@ts-ignore
var
p
=
this
.
elementTargets
.
targets
[
type
].
localToGlobal
({
x
:
40
*
0.8
,
y
:
40
*
0.8
})
const
p
=
this
.
elementTargets
.
targets
[
type
].
localToGlobal
({
x
:
40
*
0.8
,
y
:
40
*
0.8
});
this
.
addChild
(
FlyTargetAni
(
type
,
fromP
,
[
p
.
x
,
p
.
y
-
layers
.
stageOffsetY
],
()
=>
{
this
.
addChild
(
FlyTargetAni
(
type
,
fromP
,
[
p
.
x
,
p
.
y
-
layers
.
stageOffsetY
],
()
=>
{
this
.
elementTargets
.
targets
[
type
].
count
--
;
this
.
elementTargets
.
targets
[
type
].
count
--
;
}))
}))
...
@@ -2758,11 +2760,11 @@ export class PlayScene extends Scene {
...
@@ -2758,11 +2760,11 @@ export class PlayScene extends Scene {
//检查附近是否有相应元素
//检查附近是否有相应元素
checkNebEle
(
lat
:
Lattice
,
checkFun
:
(
la
:
Lattice
)
=>
boolean
)
{
checkNebEle
(
lat
:
Lattice
,
checkFun
:
(
la
:
Lattice
)
=>
boolean
)
{
var
indexMy
=
lat
.
index
;
const
indexMy
=
lat
.
index
;
var
indexs
=
[
const
indexs
=
[
indexMy
-
Tool
.
colNum
,
indexMy
-
Tool
.
colNum
,
indexMy
+
Tool
.
colNum
,
indexMy
+
Tool
.
colNum
,
]
]
;
if
(
lat
.
column
>
0
)
{
if
(
lat
.
column
>
0
)
{
indexs
.
push
(
indexMy
-
1
)
indexs
.
push
(
indexMy
-
1
)
}
}
...
@@ -2848,7 +2850,7 @@ export class PlayScene extends Scene {
...
@@ -2848,7 +2850,7 @@ export class PlayScene extends Scene {
// this.festivalTarget.count--;
// this.festivalTarget.count--;
// }))
// }))
var
texture
:
FYGE
.
Texture
=
RES
.
getRes
(
"ele"
+
ElementType
.
FESTIVALELE_SMALL
+
".png"
);
const
texture
:
FYGE
.
Texture
=
RES
.
getRes
(
"ele"
+
ElementType
.
FESTIVALELE_SMALL
+
".png"
);
//弄一个替代的
//弄一个替代的
let
eleC
:
BitmapRecycle
=
Pool
.
takeOut
(
RecoverName
.
BITMAPRECYCLE
);
let
eleC
:
BitmapRecycle
=
Pool
.
takeOut
(
RecoverName
.
BITMAPRECYCLE
);
if
(
!
eleC
)
{
if
(
!
eleC
)
{
...
@@ -2859,19 +2861,22 @@ export class PlayScene extends Scene {
...
@@ -2859,19 +2861,22 @@ export class PlayScene extends Scene {
eleC
.
position
.
set
(
ele
.
x
,
ele
.
y
);
eleC
.
position
.
set
(
ele
.
x
,
ele
.
y
);
this
.
addChild
(
eleC
);
this
.
addChild
(
eleC
);
/// TODO 小红包消失动画
Tween
.
get
(
eleC
)
Tween
.
get
(
eleC
)
.
to
({
alpha
:
0
},
1000
)
.
to
({
scaleX
:
0
,
scaleY
:
0
},
270
,
Ease
.
backIn
)
.
call
(()
=>
{
.
call
(()
=>
{
ele
.
alpha
=
1
;
this
.
removeChild
(
eleC
);
this
.
removeChild
(
eleC
);
this
.
festivalTarget
.
count
--
;
this
.
festivalTarget
.
count
--
;
});
});
//完成了,发接口,到时需要修改,对于接口没成功的不设置
//完成了,发接口,到时需要修改,对于接口没成功的不设置
if
(
this
.
festivalTargetNum
<=
0
)
{
if
(
this
.
festivalTargetNum
<=
0
)
{
sendTbNet
(
TbNetName
.
drawLotteryPrize
,
{
level
:
this
.
chapter
},
sendTbNet
(
TbNetName
.
drawLotteryPrize
,
{
level
:
this
.
chapter
,
prizeDataType
:
1
},
(
success
,
res
)
=>
{
(
success
,
res
)
=>
{
if
(
success
)
this
.
redBombPanelMark
=
true
;
if
(
success
&&
res
.
data
)
this
.
redBombPanelMark
=
true
;
}
}
);
);
}
}
...
@@ -2950,14 +2955,14 @@ class SettingBtn extends FYGE.Container {
...
@@ -2950,14 +2955,14 @@ class SettingBtn extends FYGE.Container {
constructor
()
{
constructor
()
{
super
()
super
()
//背景
//背景
var
bg
=
this
.
addChild
(
new
FYGE
.
Sprite
(
RES
.
getRes
(
"settingBg.png"
)))
const
bg
=
this
.
addChild
(
new
FYGE
.
Sprite
(
RES
.
getRes
(
"settingBg.png"
)));
bg
.
position
.
set
(
6
,
50
)
bg
.
position
.
set
(
6
,
50
)
bg
.
visible
=
false
;
bg
.
visible
=
false
;
//音乐
//音乐
var
musicBtn
=
this
.
addChild
(
new
class
extends
FYGE
.
Sprite
{
const
musicBtn
=
this
.
addChild
(
new
class
extends
FYGE
.
Sprite
{
// private isOn: boolean;
// private isOn: boolean;
constructor
()
{
constructor
()
{
var
t
=
RES
.
getRes
(
"musicOn.png"
)
const
t
=
RES
.
getRes
(
"musicOn.png"
);
super
(
t
)
super
(
t
)
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
isOn
=
!
isOn
;
isOn
=
!
isOn
;
...
@@ -2984,12 +2989,12 @@ class SettingBtn extends FYGE.Container {
...
@@ -2984,12 +2989,12 @@ class SettingBtn extends FYGE.Container {
musicBtn
.
position
.
set
(
11
,
97
);
musicBtn
.
position
.
set
(
11
,
97
);
musicBtn
.
visible
=
false
;
musicBtn
.
visible
=
false
;
//主按钮
//主按钮
var
btn
=
this
.
addChild
(
new
FYGE
.
Button
(
RES
.
getRes
(
"settingBtn.png"
)))
const
btn
=
this
.
addChild
(
new
FYGE
.
Button
(
RES
.
getRes
(
"settingBtn.png"
)))
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
console
.
log
(
9999
)
console
.
log
(
9999
)
musicBtn
.
visible
=
!
musicBtn
.
visible
musicBtn
.
visible
=
!
musicBtn
.
visible
bg
.
visible
=
!
bg
.
visible
bg
.
visible
=
!
bg
.
visible
},
this
)
},
this
)
;
}
}
destroy
()
{
destroy
()
{
...
...
src/scene/map/MapScene.ts
View file @
4cee9345
...
@@ -58,8 +58,6 @@ export class MapScene extends Scene {
...
@@ -58,8 +58,6 @@ export class MapScene extends Scene {
Tools
.
baseInfo
.
loginAddPower
=
false
;
Tools
.
baseInfo
.
loginAddPower
=
false
;
}
}
// showPanel(FesRedPrizePanel);
}
}
private
updateMapCheck
()
{
private
updateMapCheck
()
{
...
...
src/something/anisCall/FesRedShootAni.ts
View file @
4cee9345
...
@@ -40,6 +40,7 @@ export class FesRedShootAni extends FYGE.Container {
...
@@ -40,6 +40,7 @@ export class FesRedShootAni extends FYGE.Container {
}
}
play
(
startP
:
number
[],
ele
:
Element
,
callback
:
Function
)
{
play
(
startP
:
number
[],
ele
:
Element
,
callback
:
Function
)
{
this
.
reset
()
this
.
reset
()
this
.
light
.
visible
=
true
;
this
.
light
.
visible
=
true
;
...
...
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