Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Table pong collision
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic
Author Message
Velocity




PostPosted: Tue Dec 27, 2011 1:07 am   Post subject: Table pong collision

The oval used for the ball to bounce off of is see throught and it can be moved left and right using the "a" and "d" keys, how do i make it so that when the ball hits the paddle it bounces back to the other side.
 
Sponsor
Sponsor
Sponsor
sponsor
Aange10




PostPosted: Tue Dec 27, 2011 2:31 am   Post subject: RE:Table pong collision

Draw it on a piece of paper and think about what you want to happen. Collision Detection is a great tutorial. Though the syntax is different from C++, it is easy to read.
 
Serapth




PostPosted: Thu Jan 12, 2012 1:45 pm   Post subject: RE:Table pong collision

This C++ tutorial I just finished posting in the tutorials section involves creating a Pong game from scratch. In many ways it is over-engineered ( on purpose ), but it does show how to handle collision detection in this section specifically.
 
Velocity




PostPosted: Wed Jan 18, 2012 6:17 pm   Post subject: RE:Table pong collision

Aange thanks alot. and seraph i didnt really understand the one u wrote
 
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh pageAdd this topic to your bookmarks (CTRL-D) View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: