Reflection when collided from paddle with changed hroizontal velocity
Closed this issue · 1 comments
ayushsharma-crypto commented
The ball gets curved when collided with paddle
ayushsharma-crypto commented
Just swap two lines in the automatic_move function of Ball class i.e.
new_pos_y = self.automatic_move_x()
new_pos_x = self.automatic_move_y()
to
new_pos_y = self.automatic_move_y()
new_pos_x = self.automatic_move_x()