this code seems to be OK since I got this from a programming math book. link: http://gamemath.com/ now I'm not sure if there's a problem with my code in the bounding box, but i don't think so since it renders fine. Maybe I'm doing something weird? anyways, the book also talked about checking a box against a moving box (a player for instance) and gave this code.

I don't know maybe I need to think this through. this is for a school project keep in mine I'm not asking for you to do it for me and the collision detection is all me, the teacher just wanted a simple pack man.