jamesbowman/py-bteve

pong scoring is reversed

Closed this issue · 0 comments

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:

if self.vel.x < 0:
return (0, 1)
else:
return (1, 0)

 if self.vel.x < 0: 
     return (1, 0) 
 else: 
     return (0, 1)

Cheers.