PDA

Click to See Complete Forum and Search --> : Snake/Nibbles?


Ramandeep
Dec 8th, 2000, 04:00 PM
What would be the best way to implement the game nibble/snake? I’m thinking of writing it as my next games programming practice project.

How do I actually represent the snake, do I use an array to represent the area in which the snake can move. This is what came to my mind.

I thought if I represented the whole thing as an array I could represent the snake as a number say 1 and the things he picks up/eats as 2. I could move the snake around by moving the values around in the array might be tricky when the snake turns?

I've seen an example just quickly where I think he was using a row & column method.

Any ideas would be helpful, and THANKS IN ADVANCE!!!

SteveCRM
Dec 8th, 2000, 08:13 PM
Fox made one, its on his site. And there were at least two threads on this, if you do some research you should be able to find it.

SteveCRM
Dec 8th, 2000, 08:13 PM
by the way...kedaman also made an example
http://www.kedaman.com