diff options
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Pong.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ShiftOS.WinForms/Applications/Pong.cs b/ShiftOS.WinForms/Applications/Pong.cs index f776ebb..87b7a93 100644 --- a/ShiftOS.WinForms/Applications/Pong.cs +++ b/ShiftOS.WinForms/Applications/Pong.cs @@ -206,6 +206,16 @@ namespace ShiftOS.WinForms.Applications public void Lose() { InitializeCoordinates(); + counterTimer.Stop(); + secondsleft = 60; + level = 1; + speedFactor = 0.0125; + pnlgamestart.Show(); + pnlgamestart.BringToFront(); + pnlgamestart.CenterParent(); + Infobox.Show("You lose.", "You lost the game! Guess you should've cashed out..."); + doAi = false; + doBallCalc = false; } public void LevelComplete() @@ -255,8 +265,6 @@ namespace ShiftOS.WinForms.Applications { ballX = 0; ballY = 0; - xVel = 1; - yVel = 1; opponentY = 0; aiBallX = 0; aiBallY = 0; |
