Thread: 2d Pong HELP!!
View Single Post
Old Feb 28th, 2008, 7:27 AM   #5
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 4 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
Re: 2d Pong HELP!!

There is a couple of ways you can do this. First I would simply check if the balls x coordinate is less than (x_paddle_position + paddle_width).

You can get more info here: http://www.edenwaith.com/products/pi.../collision.php
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote