ayushsharma-crypto/Brick-Breaker-Terminal-Based-Game

Reflection when collided from paddle with changed hroizontal velocity

Closed this issue · 1 comments

The ball gets curved when collided with paddle

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()