View Full Version : Do you know of any good tutorials........

05-31-2002, 04:06 PM
for collision detection with Direct X or GDI? Basic ones, 'cause I've never done anything like that before.....Thank you very much.

05-31-2002, 04:15 PM
This (http://www.peroxide.dk/download/tutorials/tut10/pxdtut10.html) isn't very basic because it's quite a tricky subject, but is suppoosed to be pretty good. You can probably find more info at somewhere like gamedev or flipcode.

05-31-2002, 04:33 PM
Thank you

05-31-2002, 06:54 PM
My first collision test........

SetRect (&enemy,110,100,149,126);

RECT Bullet;

RECT Destination;

SetRect (&Bullet,FireDirection,FireSpeed,49+FireDirection,37 +FireSpeed);

if (IntersectRect(&Destination,&enemy,&Bullet))
PlaySound("bounce.wav",NULL,SND_FILENAME | SND_ASYNC);

Yes it's simple but it's also my first one and it actually works :) yeah!!!!!!

No I am not going to play the sounds this way, I still haven't done the sounds for the game. :)