Hey guys! So I have been working hard last night on a snake prgm. But I gave up on it because 1) Waste of time 2) I could not fugure it out. Do any one of you guys know a simple snake game that allows you to do it on the graph screen? It would really help! THANKS!
Why don't you post the code, maybe we can help…
Here is a good Snake game called Nibbles.It functions without the use of lists, so it is quite impressive.
Is there any way at all if you could post the code of the "Nibbles" program? Looks really cool, but I don't have my USB cable, a Apple Macintosh, Windows PC with me. I am using a stupid Chromebook. TI did not create TI-Connect for Chrome OS. Which really sucks, they should update there website for downloads a little bit.
And worst of all, this is my last week of school (I should be exited because 8th grade is almost over), but sadly, my activity will decrease BIG TIME because I do not own a computer at home. So… tell me anything about the snake/nibbles code, [Regular, 2nd, Alpha, Insert, Insert Alpha] Assembly codes, just tell me by the end of the week on Friday. Thanks!
Do I have to keep reminding you guys? Yes!
I CANNOT USE CEMETECH OR TI-CALC! IT IS RESTRICTED!!
No need to get mad. You didnt say that in your post and I dont keep track of every user who can and cannot use which sites.
Anyways, Im pretty sure the code for nibbles is posted in the discussion page attached to the archive page
I could try to make one, I'd just be slow and clunky after a while :P
Edit: ok, here is the game, just.. If the snake goes horizontal against any sort of pixels, (or touches the wall, for the matter) it will break the game. Does anyone know how to fix it?
ClrDraw
0→Xmin:1→ΔX
0→Ymin:1→ΔY
31→A:47→B:0→E:1→F:34→H:46→J:31→K:5→G:46→L:0→M
Line(0,0,0,64
Line(0,0,94,0
Line(94,0,94,64
Line(0,62,94,62
randInt(1,93→C
randInt(1,61→D
While not(E
Text(1,1,M
Pxl-On(B,A
getKey→I
Pxl-On(D,C
If B=D and C=A:Then
randInt(1,93→C
randInt(1,61→D
Pxl-Off(D,C
M+1→M
4→G
End
If I=34 and H≠25
I→H
If I=25 and H≠34
I→H
If I=24 and H≠26
I→H
If I=26 and H≠24
I→H
B+(H=34)-(H=25→B
A-(H=24)+(H=26→A
If G=0:Then
Pxl-Off(D,C
J+(pxl-Test(J+1,K))-(pxl-Test(J-1,K→L
If L=J
K-(pxl-Test(J,K-1))+(pxl-Test(J,K+1→K
L→J
Pxl-Off(J,K
End
max(G-1,0→G
If C≠A and B≠D and pxl-Test(B,A
1→E
End
For(E,1,100
If E=(0 or 50 or 100
Pxl-Off(B,A
If E=(25 or 75
Pxl-On(B,A
End
ClrHome
Disp "SCORE:
Output(1,7,M
I didnt look for the errors, but here are some optimizations I think
If sum({(I=34)(H≠25),(I=25)(H≠34),(I=24)(H≠26),(I=26)(H≠24)
I→H
instead of
If I=34 and H≠25
I→H
If I=25 and H≠34
I→H
If I=24 and H≠26
I→H
If I=26 and H≠24
I→H
If sum(E={0,50,100
instead of
If E=(0 or 50 or 100
and
If sum(E={25,75
instead of
If E=(25 or 75
note that these both add 1 byte, but I think they are slightly faster on some OS
Yeah… When I try to execute it, both of my calculators throw at me an ERR:VERSION. I have an 84+ and a 84+ CE.
Monochrome programs are not compatible with color programs, at least when dealing with the graphscreen. In some cases, it might be true for the homescreen as well.
Oh and thanks for the message Battle squid.