Fixes #103: Change paddle step directions to match keys
This commit is contained in:
parent
cf173a90da
commit
121bab68fd
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ defaultGame = GameState BetweenRounds
|
|||
-- by keyboard input).
|
||||
|
||||
stepPaddle delta dir (Paddle y) =
|
||||
Paddle $ clamp 20 (gameHeight-20) (y + toFloat dir * 200 * delta)
|
||||
Paddle $ clamp 20 (gameHeight-20) (y - toFloat dir * 200 * delta)
|
||||
|
||||
|
||||
-- We must also step the ball forward. This is more complicated due to
|
||||
|
|
Loading…
Reference in a new issue