File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func (g *GameLayout) restartGame() {
8585 g .isContinue = false
8686}
8787
88- // continueGame -
88+ // continueGame - 繼續遊戲把 isPlayerWin 的狀態 reset 成 false, isContinue 標記起來
8989func (g * GameLayout ) continueGame () {
9090 g .isPlayerWin = false
9191 g .isContinue = true
Original file line number Diff line number Diff line change @@ -148,8 +148,9 @@ func (g *GameLayout) drawYouWin(screen *ebiten.Image) {
148148 g .drawContinueButton (screen )
149149}
150150
151+ // drawContinueButton - 畫出 Continue Button
151152func (g * GameLayout ) drawContinueButton (screen * ebiten.Image ) {
152- // 畫 Restart 按鈕
153+ // 畫 Continue 按鈕
153154 vector .DrawFilledRect (screen ,
154155 float32 (continueButtonRect .Min .X ),
155156 float32 (continueButtonRect .Min .Y ),
You can’t perform that action at this time.
0 commit comments