It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Collision Detection

Moderator: dafunkymunky

Collision Detection

Postby theLustFull on Mon Nov 20, 2006 10:16 pm

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
theLustFull
 
Posts: 5
Joined: Mon Nov 20, 2006 9:59 pm

Who is online

Users browsing this forum: No registered users and 6 guests