Does anyone have some good logic (not necessarily code, but if you happen to have to urge to give C++ code snippets, be my guest) for collision checking? I know about the IntersectRect function from DirectX, but using that isn't enough. I was planning on moving the player back to a previous position if there was a collision with an enemy, but that wouldn't really work, because it is possible for a moving object (like an enemy) to have a collision with the player, in which case the enemy should move back, not the player. And I haven't though about non-moving objects. This may be simpler than I think it is, since I'm kind of tired right now, but if anyone can pitch in with their idea for this, it would be nice.