Re: SNAKE


[Prev][Next][Index][Thread]

Re: SNAKE



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, under the Points menu (under) Draw menu (2nd PRGM) there is a
command, Pxl-Test(X,Y) It returns wether the pixel is black or white,
1 or 0, i forget which is which.

>
>I was wondering how programs register and remember the location the
line the
>"snake" has created in a snake-type game. How does the calculator
know that
>the head hits its body? Is there a command that says something like:
"If X=23
>and Y=14 and L=1:disp "you lost!"   "  In which "L" is a black pixel
and X and
>Y are coordinates.. Any feedback or an explination would be
wonderful. Thanks
>in advance.
>
>~Bas Hegge
-----BEGIN PGP SIGNATURE-----
Version: PGP 5.5.5

iQA/AwUBNXBWPCqmi2tUSa7kEQKjXQCfVuj8jGp+0cU+YE/lqcwuI3N4Td0An0hD
Perr98G4VsYsEa85+eGH4lIH
=RfEz
-----END PGP SIGNATURE-----


Follow-Ups: References: