Skip to content

Conversation

@thihakyaw
Copy link

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.

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.
@Schmel924
Copy link

Schmel924 commented Dec 16, 2021

Also in pong-4
ballDX = math.random(2) == 1 and 100 or #-100 ballDY = math.random(-50, 50)

@Kana9999
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants