MY Pong Game

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
coke905
Citizen
Posts: 52
Joined: Tue Jun 05, 2012 1:46 am

MY Pong Game

Post by coke905 »

Here is my Pong game and can someone please tell me why my ball keeps going down.
Attachments
SuperPong.love
SuperPong
(587.64 KiB) Downloaded 57 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: MY Pong Game

Post by Robin »

In the collision code, you have this:

Code: Select all

elseif Ball.Speedy < 130 then
	Ball.Speedy = 130
end
There is no code that makes it negative (except with the screen boundary collision).

So it always goes down.

I would remove those first two lines, and just use:

Code: Select all

Ball.Speedy = -Ball.Speedy
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 48 guests