graphics/ collision.bi | |
License | Copyright © 2009, FreeBASIC Extended Library Development Group |
ext.gfx | |
Functions | |
collision_rect | Quickly determine if two FB.IMAGEs overlap or collide. |
Copyright © 2009, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License
Functions | |
collision_rect | Quickly determine if two FB.IMAGEs overlap or collide. |
declare function collision_rect ( byval img1 as const FB. IMAGE ptr, byval x1 as integer, byval y1 as integer, byval img2 as const FB. IMAGE ptr, byval x2 as integer, byval y2 as integer ) as ext.bool
Quickly determine if two FB.IMAGEs overlap or collide.
img1 | the first image. |
x1 | the x coordinate of the first image. |
y1 | the y coordinate of the first image. |
img2 | the second image. |
x2 | the x coordinate of the second image. |
y2 | the y coordinate of the second image. |
ext.bool value, false means no collision, true is collision
Quickly determine if two FB.IMAGEs overlap or collide.
declare function collision_rect ( byval img1 as const FB. IMAGE ptr, byval x1 as integer, byval y1 as integer, byval img2 as const FB. IMAGE ptr, byval x2 as integer, byval y2 as integer ) as ext.bool