Table of Contents | ||||
|
||||
TestCollision | ||||
Purpose Test a bound box collision between two sprite objects |
||||
Protoype bool CSpriteMngr::TestCollision (string str_sprite_id1, string str_sprite_id2) |
||||
Parameters
|
||||
Description This function takes two sprite objects and compares their bounding boxes to see if they intersect. If they do, the function returns TRUE. If they don't, the function returns FALSE. |
||||
Use CspriteMngr sprite; if (sprite.TestCollision("man", "bullet")) // he's been hit! |
||||
|
||||
|