on master help sign in
Merge pull request #112 from kjgorman/master

Pong paddle directions flipped

commit9f1ff4e5dfe6b1bbe1740416307217692c6efb63 authorEvan Czaplicki <info@elm-lang.org> dateMon 11 Mar 2013, 01:00 (14 years ago) parentdbdb535121bab6
1 file changed+1−1
Examples/elm-js/Pong/Pong.elm+1−1
Examples/elm-js/Pong/Pong.elm+1−1
@@ -156,7 +156,7 @@ defaultGame = GameState BetweenRounds
156156-- by keyboard input).
157157
158158stepPaddle delta dir (Paddle y) =
159− Paddle $ clamp 20 (gameHeight-20) (y + toFloat dir * 200 * delta)
159+ Paddle $ clamp 20 (gameHeight-20) (y - toFloat dir * 200 * delta)
160160
161161
162162-- We must also step the ball forward. This is more complicated due to