Skip to content
Permalink
Browse files

Reset the paddles when the game is restarted

  • Loading branch information...
magopian committed Aug 7, 2019
1 parent 0979ba3 commit 661a31e4bf082cae5c74aa1840541933c5e4a22a
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Main.elm
@@ -248,6 +248,10 @@ update msg model =
SleepDone ->
( { model
| ball = initBall
, rightPaddle = RightPaddle <| initPaddle 480
, leftPaddle = LeftPaddle <| initPaddle 10
, rightPaddleMovement = NotMoving
, leftPaddleMovement = NotMoving
, gameStatus = NoWinner
}
, Cmd.none

0 comments on commit 661a31e

Please sign in to comment.
You can’t perform that action at this time.