Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pong-final/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function love.update(dt)
-- before switching to play, initialize ball's velocity based
-- on player who last scored
ball.dy = math.random(-50, 50)
if servingPlayer == 1 then
if servingPlayer == 2 then
ball.dx = math.random(140, 200)
else
ball.dx = -math.random(140, 200)
Expand Down