Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 making snake...
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
magicman




PostPosted: 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
Sponsor
sponsor
magicman




PostPosted: Wed Mar 08, 2006 4:30 pm   Post subject: (No subject)

oh and how do u make the screen smaller?
Ultrahex




PostPosted: 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




PostPosted: 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).
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: