Computer Science Canada snake game help |
Author: | TokenHerbz [ Fri Jul 29, 2005 6:43 pm ] | ||
Post subject: | snake game help | ||
Hi, i need help with my snake game...
I dont know how to ADD bodies to follow the head... i dont know how to keep the snake moving... i dont know how to eat the foor right when i touch it... I just need some help, please and thank you... Should i use arrays??? like var x: array 1 .. snake of int snake being how many bodies??? i dont move the extra bodies, soi figured i could just draw them and they'd follow from my leading head... like say the head is.... x=5 y=5 i put other body at draw... x-5... thats 5-5 = 0, the size of snake is 5, which they would by touching at outer shell i think... I tryed and failed, my code right now has glitchs.... i tryed to use View.Update it dosn't work, cls is flashy... any help there??? Anyways, thannks.. |
Author: | person [ Fri Jul 29, 2005 7:10 pm ] |
Post subject: | |
if u look into the source code area, there is a submission of snake made by cervantes http://www.compsci.ca/v2/viewtopic.php?t=9108 |
Author: | MysticVegeta [ Fri Jul 29, 2005 9:01 pm ] |
Post subject: | |
person wrote: if u look into the source code area, there is a submission of snake made by cervantes
http://www.compsci.ca/v2/viewtopic.php?t=9108 I wouldnt suggest looking at the source code, Xiao, i would rather suggest to look for flexible arrays There is a great tut by Cervantes on them. tokenherb, u can prolly find them on the first page of turing tutorials. |