Commit 2b71268d authored by haiyoucuv's avatar haiyoucuv

新手引导

parent 3f7b6896
......@@ -82,7 +82,7 @@ class GameStore {
addScore(s: number) {
const score = this.gameInfo.score + s;
this.gameInfo.score = score;
this.gameInfo.score = Math.max(0, score);
this.gameInfo.maxScore = Math.max(score, this.gameInfo.maxScore);
const { levelCfg } = GameConfig;
......
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