theLustFull
Joined: 20 Nov 2006 Posts: 5
|
Posted: Mon Nov 20, 2006 11:16 pm Post subject: Collision Detection |
|
|
Hello i'm new here, been learning VB.NET for a few months starting with simple applications i have started a game (a breakout clone)have managed to complete everything bar the collision detection the game uses two draw metheds one for the ball and other for the bat,
Drawlline(bat, x1,y1,x2,y2)
DrawEllipse(ball, bx,by,b_width,b_height)
i have declared all varibles as intergars
everything else works from movement to the blocks appearing
please could someone explain to me how to work out the collision detection between two drawn objects (i would have used a picturebox and used the left, right, bottom, top properties, but we are only permitted to use drawn objects )
Thanks |
|