pong scoring is reversed
Closed this issue · 0 comments
rogerallen commented
The scoring in pong is reversed. It awards the player a point for each ball that gets past you, rather than awarding you a point for scoring against your opponent.
Just to be sure, I double-checked my memory via this video: https://www.youtube.com/watch?v=fiShX2pTz9A
Adjusting this code to swap the points awarded makes it work:
Lines 61 to 64 in 5733a7d
if self.vel.x < 0:
return (1, 0)
else:
return (0, 1)
Cheers.