Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
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
王剑峰
game2048
Commits
c3b6da04
Commit
c3b6da04
authored
Apr 24, 2020
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab2.dui88.com:MrKwon/game2048
parents
e531565a
6ea1fee9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
PlayScene.ts
src/scenes/playScene/PlayScene.ts
+10
-1
No files found.
src/scenes/playScene/PlayScene.ts
View file @
c3b6da04
...
...
@@ -2,7 +2,7 @@ import { PropPanel } from './../../panels/PropPanel';
import
{
QuitPanel
}
from
'./../../panels/QuitPanel'
;
import
{
PropOutPanel
}
from
'./../../panels/PropOutPanel'
;
import
{
showWaiting
,
hideWaiting
}
from
'./../../../module/ctrls/waitingCtrl'
;
import
{
PropType
}
from
'./../../commonNet'
;
import
{
PropType
,
submit
}
from
'./../../commonNet'
;
import
{
UnlockPanel
}
from
'./../../panels/UnlockPanel'
;
import
{
playSound
}
from
'./../../../module/ctrls/soundCtrl'
;
import
{
FrameAni
}
from
'./../../../engine/2d/ui/FrameAni'
;
...
...
@@ -43,9 +43,14 @@ export class PlayScene extends Scene {
containerPool
=
[]
_score
=
0
_maxScore
=
0
set
score
(
value
)
{
this
.
_score
=
value
if
(
value
-
this
.
_maxScore
>
5000
)
{
this
.
_maxScore
=
value
submit
(()
=>
{
},
this
.
score
,
this
.
unlockGrade
,
false
,
true
)
}
this
.
dispatchEvent
(
"updateScoreTxt"
)
}
...
...
@@ -196,6 +201,7 @@ export class PlayScene extends Scene {
this
.
updateProp
(
this
.
gameData
.
bombCount
,
this
.
gameData
.
exchangeCount
,
this
.
gameData
.
netCount
)
this
.
unlockGrade
=
this
.
gameData
.
unlockGrade
?
this
.
gameData
.
unlockGrade
:
2
this
.
_maxScore
=
this
.
gameData
.
maxScore
?
this
.
gameData
.
maxScore
:
0
}
...
...
@@ -981,6 +987,9 @@ export class PlayScene extends Scene {
if
(
num
>
this
.
unlockGrade
)
{
// 显示解锁弹窗
submit
(()
=>
{
},
this
.
score
,
this
.
unlockGrade
,
false
,
true
)
showPanel
(
UnlockPanel
,
{
grade
:
num
})
this
.
unlockGrade
=
num
}
...
...
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