Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
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
劳工
zeroing-libs
Commits
58358741
Commit
58358741
authored
Dec 25, 2019
by
XieChuanJin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
projectId
parent
3f35a094
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
Game.ts
src/custom/shoot-planet/Game/Game.ts
+3
-1
Net.ts
src/custom/shoot-planet/Global/Net.ts
+1
-1
ShootPlanet.ts
src/custom/shoot-planet/ShootPlanet.ts
+1
-0
No files found.
src/custom/shoot-planet/Game/Game.ts
View file @
58358741
...
@@ -200,6 +200,7 @@ export default class Game {
...
@@ -200,6 +200,7 @@ export default class Game {
private
over
()
{
private
over
()
{
this
.
pause
=
true
;
this
.
pause
=
true
;
engine
.
globalEvent
.
dispatchEvent
(
"ShootPlanetGameOver"
);
this
.
onGameOver
&&
this
.
onGameOver
();
this
.
onGameOver
&&
this
.
onGameOver
();
}
}
...
@@ -294,6 +295,7 @@ export default class Game {
...
@@ -294,6 +295,7 @@ export default class Game {
this
.
timing
=
false
;
this
.
timing
=
false
;
//时间到
//时间到
this
.
pause
=
true
;
this
.
pause
=
true
;
engine
.
globalEvent
.
dispatchEvent
(
"ShootPlanetGameOver"
);
this
.
onGameOver
&&
this
.
onGameOver
();
this
.
onGameOver
&&
this
.
onGameOver
();
}
}
}
}
...
@@ -302,7 +304,7 @@ export default class Game {
...
@@ -302,7 +304,7 @@ export default class Game {
}
}
private
outputEvent
()
{
private
outputEvent
()
{
engine
.
globalEvent
.
dispatchEvent
(
"ShootPlane
Gam
e"
,
{
engine
.
globalEvent
.
dispatchEvent
(
"ShootPlane
Updat
e"
,
{
score
:
this
.
score
,
score
:
this
.
score
,
bulletScore
:
this
.
bulletScore
,
bulletScore
:
this
.
bulletScore
,
powerScore
:
this
.
powerScore
,
powerScore
:
this
.
powerScore
,
...
...
src/custom/shoot-planet/Global/Net.ts
View file @
58358741
...
@@ -121,7 +121,7 @@ export default class Net {
...
@@ -121,7 +121,7 @@ export default class Net {
}
}
private
static
urlReplaceConfig
=
{
private
static
urlReplaceConfig
=
{
"{projectId}"
:
projectId
"{projectId}"
:
engine
.
env
.
projectID
}
}
public
static
readonly
Url
=
{
public
static
readonly
Url
=
{
...
...
src/custom/shoot-planet/ShootPlanet.ts
View file @
58358741
...
@@ -67,6 +67,7 @@ export class ShootPlanet extends engine.Container {
...
@@ -67,6 +67,7 @@ export class ShootPlanet extends engine.Container {
private
init
()
{
private
init
()
{
engine
.
env
.
soundEnabled
=
true
;
engine
.
env
.
soundEnabled
=
true
;
Net
.
urlReplace
();
MTimer
.
init
();
MTimer
.
init
();
DebugMgr
.
instance
.
init
(
this
);
DebugMgr
.
instance
.
init
(
this
);
}
}
...
...
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