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

Username:   Password: 
 RegisterRegister   
 tail
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rollerdude




PostPosted: Wed Sep 15, 2004 4:22 pm   Post subject: tail

on a trypical "snake" program, would i, instead of just cls every time i want the character to move to the next spot, just delay the cls to make the tail?

or would there be a better way?

mail me i'm happy,
[u][b]the rollerdude[/b][/u][/i]
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Wed Sep 15, 2004 4:45 pm   Post subject: (No subject)

It's best if you cls each time through your loop, but you might be able to not cls to just leave the tail.
If you were to do it with clsing each time you would need to use arrays. Since your new to programming, that isn't going to happen.
The easier way to do it would be to not cls each time through your loop (like you suggested) and to use whatdotcolour(x,y) to determine if the snake has a collision with a.) itself or b.) the fruit or c.) the wall.

Nevertheless, this will be a difficult program to make for only being seven days into programming. Best of Luck!
-Cervantes
rollerdude




PostPosted: Wed Sep 15, 2004 5:01 pm   Post subject: (No subject)

thanks!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: