Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool check_collision( int Ax, int Ay, int Aw, int Ah, int Bx, int By, int Bw, int Bh )
- {
- if( Ax + Aw < Bx )
- {
- return false;
- }
- if( Ax > Bx + Bw )
- {
- return false;
- }
- if( Ay + Ah < By )
- {
- return false;
- }
- if( Ay > By + Bh )
- {
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement