b2dIsImagesCollidingSimple

Pixel-perfect collision (no scale/rotation, AABB early-reject + alpha overlap test, stores collision point). Takes image1,image2 (image handles, integers), x1,y1,x2,y2 (image positions accounting for handles, integers). Returns 1 if non-transparent pixels overlap, 0 if no collision.

2D Overlay

Parameters & Returns

Parameters

image1 Int
x1 Int
y1 Int
image2 Int
x2 Int
y2 Int

Returns

Int

Quick Summary

Pixel-perfect collision (no scale/rotation, AABB early-reject + alpha overlap test, stores collision point). Takes image1,image2 (image handles, integers), x1,y1,x2,y2 (image positions accounting for handles, integers). Returns 1 if non-transparent pixels overlap, 0 if no collision.

Technical Exegesis...

Pixel-perfect collision (no scale/rotation, AABB early-reject + alpha overlap test, stores collision point). Takes image1,image2 (image handles, integers), x1,y1,x2,y2 (image positions accounting for handles, integers). Returns 1 if non-transparent pixels overlap, 0 if no collision.

Example

Example.bam
; No example implemented yet