
-----------------------------------
magicman
Wed Mar 08, 2006 1:55 pm

making snake...
-----------------------------------
i need some slight help with the food process. i need it to apear on the screen at random places. also is there help on boundries?? i need it for the tail and the food. also how would i get it to add another square to the end of the tail when i get the food??

-----------------------------------
magicman
Wed Mar 08, 2006 4:30 pm


-----------------------------------
oh and how do u make the screen smaller?

-----------------------------------
Ultrahex
Sun May 28, 2006 11:04 am


-----------------------------------
Ok, First of All You Have To Make a Grid.
You can either have an Array For This Grid; or you can have guidelines for this Grid.

You keep track of the points of part snake either in a object or an array (your  choice)

When you eat food in Snake you do not "grow" persay; you dont delete the last part of snake on next movement.

i don't understand what you mean by make screen smaller... im confused about that. or are you using RTP ?

-----------------------------------
HellblazerX
Sun May 28, 2006 4:13 pm


-----------------------------------
Well, its assumed your using either JFrame or an applet to make this game (after all, graphics need a container of some sorts).  You can just use the setSize method (should be in both JFrame and applet).
