Advertisement

Need help in collision detection

Started by July 29, 2000 12:23 PM
0 comments, last by DefaultUser 24 years, 4 months ago
I''m having trouble detecting collisions between the two objects in the screen. secondary_surface->Blt(NULL,offscreen_two,NULL,DDBLT_WAIT, &ddbltfx); // Background secondary_surface->Blt(&dest,offscreen_one,&src,DDBLT_WAIT | DDBLT_KEYSRC, NULL); // Object two secondary_surface->Blt(&dest1,offscreen_three,&src1,DDBLT_WAIT | DDBLT_KEYSRC,NULL); // Object one primary_surface->Flip(secondary_surface,DDFLIP_WAIT); -Thanks
Forget about that buggy code, let's start all-over - from scratch. Let's go!
Check out bounding box collision (there should be an article on this site I think).
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall

This topic is closed to new replies.

Advertisement