Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
f61c976d
Commit
f61c976d
authored
Oct 12, 2019
by
huangwenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除升级到10级的
parent
a050fd80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
PlayScene.ts
egret/src/playScene/PlayScene.ts
+9
-9
getStartStatus.json
mock/json/getStartStatus.json
+1
-1
No files found.
egret/src/playScene/PlayScene.ts
View file @
f61c976d
...
...
@@ -334,15 +334,15 @@ export default class PlayScene extends Scene {
this
.
mainFish
.
anchorOffsetY
=
this
.
mainFish
.
height
/
2
;
this
.
removeEventListener
(
egret
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
break
;
case
170
:
this
.
currLevel
=
10
;
this
.
levelUpAni
();
this
.
mainFish
.
width
=
fishesConfig
.
config
[
`lv
${
this
.
currLevel
}
`
].
uW
;
this
.
mainFish
.
height
=
fishesConfig
.
config
[
`lv
${
this
.
currLevel
}
`
].
uH
;
this
.
mainFish
.
anchorOffsetX
=
this
.
mainFish
.
width
/
2
;
this
.
mainFish
.
anchorOffsetY
=
this
.
mainFish
.
height
/
2
;
this
.
removeEventListener
(
egret
.
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
break
;
//
case 170:
//
this.currLevel = 10;
//
this.levelUpAni();
//
this.mainFish.width = fishesConfig.config[`lv${this.currLevel}`].uW;
//
this.mainFish.height = fishesConfig.config[`lv${this.currLevel}`].uH;
//
this.mainFish.anchorOffsetX = this.mainFish.width / 2;
//
this.mainFish.anchorOffsetY = this.mainFish.height / 2;
//
this.removeEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this);
//
break;
}
}
else
{
// 被吃,游戏结束
...
...
mock/json/getStartStatus.json
View file @
f61c976d
{
"code"
:
1
,
"code"
:
0
,
"message"
:
"处理成功"
,
"success"
:
true
,
"creditsUpperLimit"
:
30
...
...
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