Ball Direction in "Pong" | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Ball Direction in "Pong"

how do i need to calculate ball direction when he hit the board frame. my board is 2 dimension array.

31st Aug 2017, 10:36 AM
Cain Eviatar
Cain Eviatar - avatar
1 Réponse
+ 8
divide the paddle up into a bunch of smaller collision boxes
31st Aug 2017, 10:49 AM
jay
jay - avatar