aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Pong.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-02 08:45:23 -0400
committerMichael <[email protected]>2017-07-02 08:45:23 -0400
commit9578be099814924870bcb25b1fe4f8a2d375f3b9 (patch)
treec367afe08675f5198c577da8cd58a994f8535078 /ShiftOS.WinForms/Applications/Pong.cs
parent46e73195afe6e161ddb75b05ec5f6fe64cb093af (diff)
downloadshiftos_thereturn-9578be099814924870bcb25b1fe4f8a2d375f3b9.tar.gz
shiftos_thereturn-9578be099814924870bcb25b1fe4f8a2d375f3b9.tar.bz2
shiftos_thereturn-9578be099814924870bcb25b1fe4f8a2d375f3b9.zip
Pong ball is centered on levelcomplete
Diffstat (limited to 'ShiftOS.WinForms/Applications/Pong.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Pong.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Pong.cs b/ShiftOS.WinForms/Applications/Pong.cs
index 2f309f3..e569af4 100644
--- a/ShiftOS.WinForms/Applications/Pong.cs
+++ b/ShiftOS.WinForms/Applications/Pong.cs
@@ -246,6 +246,10 @@ namespace ShiftOS.WinForms.Applications
doAi = false;
doBallCalc = false;
counterTimer.Stop();
+ ballX = 0;
+ ballY = 0;
+ aiBallX = 0;
+ aiBallY = 0;
pnllevelwon.CenterParent();
pnllevelwon.Show();
pnllevelwon.BringToFront();