Omnimaga
Calculator Community => TI Calculators => Axe => Topic started 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.
-
Pixel-test(x,y) returns 1 if the pixel at (x,y) is solid and 0 otherwise.
-
And remember it's X,Y (instead of Y,X like in BASIC).