Game Development Community


#1
03/22/2006 (11:37 am)
What do you mean by bouncing in a box? Do you mean like in pong where the ball just moves about the edges of a screen? Do you mean bouncing with gravity?

If you mean moving around the screen, then take a look at this example:

http://tdn.garagegames.com/wiki/Torque_2D/Getting_Started/T2DBasicTutorial1

It shows how to get a ship to move from top to bottom, all you would have to do is make it a ball image, and set some boundries.
#2
03/22/2006 (12:20 pm)
I started a pong/breakOut project as a learning experience. I will never get around to finishing it. It has a bouncing ball and a controllable paddle. If you want it to learn from, I would be more that happy to send you the files.
#3
03/22/2006 (8:51 pm)
Dave,

I'm very interesting to see your files. Could you please send them to me too?

Thanks
#4
03/22/2006 (9:11 pm)
Here is a link Unfinished Pong. The code might not be pretty, but it works.

edit: If someone wouldn't mind to help clean up the code, this might make a good TDN article.
#5
03/22/2006 (9:14 pm)
Thx Dave !!!
#6
03/22/2006 (10:41 pm)
Thank you very much !! Dave.