Page 1 of 1

Collision Mask

PostPosted: Sep 7, 2002 @ 5:54am
by BooRad

PostPosted: Sep 9, 2002 @ 6:12pm
by Johan
Hi,

It's now on my todo-list. 8)

/Johan

PostPosted: Sep 10, 2002 @ 12:46am
by Johan
... in the mean time, you can achieve the exact same effect by:

(1) Calculate the color used to represent your maskid. The formula is listed on gapidraw.com, and is:

Color = RGB(((dwMaskID & 0x1F) << 3), ((dwMaskID & 0x3E0) >> 2), (dwMaskID & 0x7C00) >> 7))

(2) Draw the sprite to the mask surface using Blt with rotation and Colorfill, using the color above.

Voilá! :)

/Johan

PostPosted: Sep 18, 2002 @ 12:18am
by BooRad

PostPosted: Sep 18, 2002 @ 12:23am
by Johan