Author |
Message |
magicman
|
Posted: Wed Mar 08, 2006 1:55 pm Post subject: 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?? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
magicman
|
Posted: Wed Mar 08, 2006 4:30 pm Post subject: (No subject) |
|
|
oh and how do u make the screen smaller? |
|
|
|
|
|
Ultrahex
|
Posted: Sun May 28, 2006 11:04 am Post subject: (No subject) |
|
|
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
|
Posted: Sun May 28, 2006 4:13 pm Post subject: (No subject) |
|
|
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). |
|
|
|
|
|
|