Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ball.lua #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Ball.lua #68

wants to merge 1 commit into from

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