Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Tgooseman on May 16, 2011, 12:12:55 am

Title: Pixel Test Help
Post by: Tgooseman on May 16, 2011, 12:12:55 am
Can somebody clear up exactly how pixel-test( works? For the Helicopter game I have been working on I just threw a bunch of them together, and I achieved a sort of half working collision detection.

I am using an 8x16 helicopter sprite, if that is important.  And the bricks I am colliding with are 3 pixels wide by 8 pixels tall.
Title: Re: Pixel Test Help
Post by: leafy on May 16, 2011, 12:13:35 am
Pixel-test(x,y) returns 1 if the pixel at (x,y) is solid and 0 otherwise.
Title: Re: Pixel Test Help
Post by: Deep Toaster on May 16, 2011, 12:14:29 am
And remember it's X,Y (instead of Y,X like in BASIC).