[A83] Re: nibbles / snake
[Prev][Next][Index][Thread]
[A83] Re: nibbles / snake
>To check if the snake hits something, you just pick the coords of the
>snake's head, and compare that to all the other coords in the table
>(so both level and snake). If it equals, game over. Of course, in case
>of the apple, you just increase score, generate new apple, and
>everything else that's necessary.
>
>Tijl Coosemans
Can't I just do a pixel test to check if the snake hits
a wall/apple/itself? If the pixel is on where the snake's
head should go, I could give the "game over".
SUCKER
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com