Commit 977c6ace authored by huangwenjie's avatar huangwenjie

1

parent 9cecdfa0
......@@ -919,7 +919,7 @@ export class PlayScene extends Scene {
// 随机生成基础元素
generateOneElement() {
// 随机生成一个数字 2or4
let randNumber = Math.random() < 0.9 ? 2 : 2048
let randNumber = Math.random() < 0.9 ? 2 : 4
// 随机生成位置
let randNumberX = Math.floor(Math.random() * 4)
let randNumberY = Math.floor(Math.random() * 4)
......@@ -990,7 +990,13 @@ export class PlayScene extends Scene {
gameover() {
// 游戏结束
console.log("游戏结束");
showPanel(PropPanel)
showPanel(PropPanel, {
bombCount: this.bombCount,
exchangeCount: this.exchangeCount,
netCount: this.netCount,
grade: this.unlockGrade,
score: this.score,
})
}
isGameWin() {
......
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