Commit 58358741 authored by XieChuanJin's avatar XieChuanJin

projectId

parent 3f35a094
...@@ -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("ShootPlaneGame", { engine.globalEvent.dispatchEvent("ShootPlaneUpdate", {
score: this.score, score: this.score,
bulletScore: this.bulletScore, bulletScore: this.bulletScore,
powerScore: this.powerScore, powerScore: this.powerScore,
......
...@@ -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 = {
......
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment