Open thihakyaw opened 3 years ago
Also in pong-4
ballDX = math.random(2) == 1 and 100 or #-100 ballDY = math.random(-50, 50)
dx should be
math.random(2) == 1 and -100 or 100 and dy should be self.dy = math.random(-50, 50) otherwise ball will spread up and down instead of left and right.
Hello I am Struggling with figuring out how to submit work please done So if you see this please help
dx should be math.random(2) == 1 and -100 or 100 and dy should be self.dy = math.random(-50, 50)
otherwise ball will spread up and down instead of left and right.