Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Collision Testing
  
User name:
Password:
Reply:
 

UserPost
beneficii
Posts: 154/567
I wrote an RPG-ish little maze game called BKG test for the NES ages ago, and the method I used was just to see if there was a wall in the space the player was trying to go. Basically, have your program detect before hand where the hero will go and see if there is going to be a collision, then have the code execute something based on it.
Ramsus
Posts: 118/162
There's plenty of well known algorithms and methods out there (see GameDev.net, but it's one of those things people are always writing again and again, since high level game development libraries aren't very common and writing a function to test if rectangles overlap (for simple, 2D collision detection) isn't very time consuming.

Check out Clanlib if you're using C++ and don't feel like recoding a lot of basic stuff.


Jack-Al
Posts: 227/284
You're right. Although Collision Testing could be Game Related, the question is still related to programming, and more people might be able to help in the Programming Forum.

*Moves to Programming.
Smallhacker
Posts: 1774/2273
1) Doesn't this fit better in the Programming forum?
2) How about telling which program language you're using? (I know that you're using C, but others doesn't)
paraplayer
Posts: 97/280
Looks like i've been babied too much with flash...

What are some simple collision testing functions? (Bounding box or more accurate i'm not being picky!)
Acmlm's Board - I2 Archive - Programming - Collision Testing


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.