I know this is like really old by now, but I've been playing around with this over the past few weeks since I first watched it, and I've expanded and improved the score listing and how the scores are stored; I used a 20x13 matrix to store up to 20 games' worth of top 10 highscores and made a custom list, SCOR, to retrieve, display, and store the scores in the matrix at (θ,A), where θ is the row of the matrix that a game's scores reside, and A is the column of row θ that the data occupies. θ is assigned at the beginning of the score display section prior to accessing the matrix to populate LSCOR.
Me making this for the second time to see how much I learned of TI-BASIC and how much I could optimize, I managed to cut off bytes whilst increasing the UI for both a start screen and death screen, very fun to make still :3
On your GitHub Gist revision what is the vertical line behind the E on the last code line? Also my snake dies when I hit the bottom of the screen. Please help
Great tutorial!! 👍 But I think there may be a bug, when we set length to 2, it should be 1, because if the length variable starts out at 2 the snake technically starts out with a length of 1 and then eats a apple immediately after so that means that it will think the snake is 1 length longer than what it is. To sum it up I believe you have to initially set length to 1. Please let me know if you agree or tell me your thoughts.
I set it up to where the score (in my case, Z) is set to L - 2, as the initial length is 2, so, I took that initial length off to avoid giving the player an artificially inflated score.
It should be easy to add a Lbl to the top and add a menu to the bottom. Syntax is as follows: At the very top of the code: Lbl A At the bottom of the code: Menu("Replay?", "Yes", A, "No", B) Lbl B I'm using a TI-84 Plus CE for this so things might be a bit different, but assuming you're using the calculator in the video it should be the same.
@@Kitty-hx2pr Thank you! But I recently found out that you can restart a program simply by pressing "Enter". But I'll definitely try this out in future programs!
Ok, I found another comment with the solution, you have to press stat on your home screen, hit edit, scroll right to L6, and fill every value with 1, and it should work
It works completely 100% fine. It’s just incredibly slow and delayed on my calculator. Is there anyway to fix that? I have tons of space on my calculator.
Unfortunately, TI-BASIC runs pretty slowly on these calculators, but there are still some things you can do to make it faster. Here's what I would try first: 1. Switch your calculator to CLASSIC Mode. If you're using a TI-84 with the most recent OS (2.55 MP), the default mode is MATHPRINT. This makes typing math look "pretty", but it slows down home screen display operations a lot. To switch it off, hit [mode] and scroll down until you see MATHPRINT and CLASSIC on the second screen. You can also change it to classic by evaluating the CLASSIC command in the catalog 2. Garbage collect. You can find the GarbageCollect command in the catalog. Hit [2nd] [0] [tan] [enter] [enter] and it should garbage collect. If this takes a few seconds, that means it has memory management to do and should result in a speed-up 3. Make sure the program is correct. Sometimes bugs either in my program or in your copy can cause major slow-downs. The calculator you're using will also impact speeds. TI-83s are on the slow end, but you should be fine with anything other than the TI-84 Color SE, which is really slow. My favorite is the TI-84 Pocket fr, but the TI-84 CE is also pretty good.
This was an amazing tutorial! I have one issue though; On the highscore-board it says "NEW HIGHSCORE" despite me not beating the highscore. Does anyone have an idea on how to fix this?
You need to make a new variable and it's the highscore or use the one you have for highscore then make if highscore is less than score before the disp command for new highscore if you didn't understand just message me
In the tutorial, he makes it display "NEW HIGHSCORE" if you beat any of the top 5 scores. To change it to display that only when you beat the top score, find where in the code it says " :If L>L6(5 " And change that line to say ":L>L6(5" Hope this helps
For some reason my snake is going way too fast and when i die it's says 'error'. And i think it has something to do with the 'L6'. Can somebody help me?
Alright I know I'm a year late on this but you need to insert values into the L6 list in order to fix the problem. To access the L6 list, press "STAT" on your calculator, then "1" to select "Edit". Go all the way to right until you reach the L6 list. Then, you need to enter "1" in *at least* the first 8 values of the list so the program actually has values to read. Then, the game should work properly.
Does anyone else have a random death glitch? I've checked the code over and over again, and see no mistakes. But I still randomly die after 3 seconds. Can anyone help?
I have a problem at where you put in the food. it says error:domain and it leads me to Output(B,A,"* the space after the asterisk is where my cursor is at. can someone please help? I copied the code from the gisthub and went over it thrice, and it is still wrong!!
Hey, cool game. I wrote it but I got a Domain error and it takes me to line :Output(T,S," " You know what could be causing it? and if so how do I solve it?
In the tutorial, he makes it display "NEW HIGHSCORE" if you beat any of the top 5 scores. To change it to display that only when you beat the top score, find where in the code it says ":If L>L6(5" And change that line to say ":L>L6(5" Hope this helps
Change all getkeys that contain 24, 25, 26 and 34 to 73, 82, 84, and 93. I'm not 100% sure about this, but I think those are the keys for 2, 4, 6, and 8.
Such a great Video. Well done! Now I can Play Snake in the School. You explain very good. Thank you very much.
If you want to make it say game over when you lose, make a new line after end and type, pause "Game over"
i miss this channel
Bro where are you? Pls post again!!!!!! :(
Hay mam where are you can you please upload another tutorial on something you explain things really well
Now put 2nd-plus-seven-one-two
Ah, yes, he secretly implemented a cheat code or give you more points
Dude? Where have you been I’ve been missing your awesome content :(
Yeah! Where have u been? :(
Top_Hats_Off _ I see you like coding too!
I know this is like really old by now, but I've been playing around with this over the past few weeks since I first watched it, and I've expanded and improved the score listing and how the scores are stored; I used a 20x13 matrix to store up to 20 games' worth of top 10 highscores and made a custom list, SCOR, to retrieve, display, and store the scores in the matrix at (θ,A), where θ is the row of the matrix that a game's scores reside, and A is the column of row θ that the data occupies. θ is assigned at the beginning of the score display section prior to accessing the matrix to populate LSCOR.
By chance could you tell me what calculator you’re running this on?
Hey please make something it's like nobody else is explaining it so good like you
Me making this for the second time to see how much I learned of TI-BASIC and how much I could optimize, I managed to cut off bytes whilst increasing the UI for both a start screen and death screen, very fun to make still :3
Please come back you are a legend and i want to learn from please come back
Great tutorial! Make more videos!
On your GitHub Gist revision what is the vertical line behind the E on the last code line? Also my snake dies when I hit the bottom of the screen. Please help
I just did the round( ins te and but my snake still dies when I hit the bottom
Where is he now it’s been years?
I knowww :,(
do more games tutorials
Syntax error at the first [ in DelVar [A] {8, 16->dim([A]
Owen Campbell same for me
Replace [A] with pressing 2nd and Matrix and typing the [A] in there instead
Great tutorial!! 👍 But I think there may be a bug, when we set length to 2, it should be 1, because if the length variable starts out at 2 the snake technically starts out with a length of 1 and then eats a apple immediately after so that means that it will think the snake is 1 length longer than what it is. To sum it up I believe you have to initially set length to 1. Please let me know if you agree or tell me your thoughts.
I set it up to where the score (in my case, Z) is set to L - 2, as the initial length is 2, so, I took that initial length off to avoid giving the player an artificially inflated score.
Hello, amazing and super clear tutorial!! But is there a way of making a replay button? I searched for a little while but couldn't figure it out
It should be easy to add a Lbl to the top and add a menu to the bottom. Syntax is as follows:
At the very top of the code:
Lbl A
At the bottom of the code:
Menu("Replay?", "Yes", A, "No", B)
Lbl B
I'm using a TI-84 Plus CE for this so things might be a bit different, but assuming you're using the calculator in the video it should be the same.
@@Kitty-hx2pr Thank you! But I recently found out that you can restart a program simply by pressing "Enter". But I'll definitely try this out in future programs!
@@electrobuzz. No problem!
for some reason the snake keeps on growing even when i dont eat a pellet
is there a fix for this?
You might have an END in the wrong place. Thats what happened to me before
Can you please do more videos on stuff if you can?
Woo!
When my snake touches the middle of the screen it dies what do I do?
I get a DIM Error for the ":If L>L6(5:Then" is there something I did wrong?
same
Ok, I found another comment with the solution, you have to press stat on your home screen, hit edit, scroll right to L6, and fill every value with 1, and it should work
@@austin-multicellular you saved meee thanks so much
I am the 491th person to sub to u
It works completely 100% fine. It’s just incredibly slow and delayed on my calculator. Is there anyway to fix that? I have tons of space on my calculator.
Unfortunately, TI-BASIC runs pretty slowly on these calculators, but there are still some things you can do to make it faster. Here's what I would try first:
1. Switch your calculator to CLASSIC Mode. If you're using a TI-84 with the most recent OS (2.55 MP), the default mode is MATHPRINT. This makes typing math look "pretty", but it slows down home screen display operations a lot. To switch it off, hit [mode] and scroll down until you see MATHPRINT and CLASSIC on the second screen. You can also change it to classic by evaluating the CLASSIC command in the catalog
2. Garbage collect. You can find the GarbageCollect command in the catalog. Hit [2nd] [0] [tan] [enter] [enter] and it should garbage collect. If this takes a few seconds, that means it has memory management to do and should result in a speed-up
3. Make sure the program is correct. Sometimes bugs either in my program or in your copy can cause major slow-downs.
The calculator you're using will also impact speeds. TI-83s are on the slow end, but you should be fine with anything other than the TI-84 Color SE, which is really slow. My favorite is the TI-84 Pocket fr, but the TI-84 CE is also pretty good.
@@calcutronplus_se8623 thanks my ti-83 plus has no 'classic' mode but using garbagecollect made it double the speed it was
Ahh, works perfect on my ti 82 stats, took some time but damn i did something
Can I reset the leaderboards in one command? Or do I have to put 0->L6(n). With all the different positions of numbers?
I think by doing fill(0, L6
This was an amazing tutorial! I have one issue though; On the highscore-board it says "NEW HIGHSCORE" despite me not beating the highscore. Does anyone have an idea on how to fix this?
I’m having the same problem 😭
You need to make a new variable and it's the highscore or use the one you have for highscore then make if highscore is less than score before the disp command for new highscore if you didn't understand just message me
In the tutorial, he makes it display "NEW HIGHSCORE" if you beat any of the top 5 scores.
To change it to display that only when you beat the top score, find where in the code it says
"
:If L>L6(5
"
And change that line to say ":L>L6(5"
Hope this helps
Tank you //Well Explained!
so It says its wrong right at the : but idk at this part
If L>L6(5:Then
can anyone help me out?
ive had the same problem
Same here
Change the 5 to a 1
For some reason my snake is going way too fast and when i die it's says 'error'. And i think it has something to do with the 'L6'. Can somebody help me?
At 17:26 I’m getting a dim error how do I fix this
Same
Same
yea same
Alright I know I'm a year late on this but you need to insert values into the L6 list in order to fix the problem. To access the L6 list, press "STAT" on your calculator, then "1" to select "Edit". Go all the way to right until you reach the L6 list. Then, you need to enter "1" in *at least* the first 8 values of the list so the program actually has values to read. Then, the game should work properly.
@@vk2631 ill try it out soon thx
Is there any way to add multiple apples and is there a way to make the snake move faster?
Does anyone else have a random death glitch? I've checked the code over and over again, and see no mistakes. But I still randomly die after 3 seconds. Can anyone help?
I have a problem at where you put in the food. it says error:domain and it leads me to Output(B,A,"* the space after the asterisk is where my cursor is at. can someone please help? I copied the code from the gisthub and went over it thrice, and it is still wrong!!
It’s not working, it’s saying I have the wrong SYNTAX, how can I fix this?
When I die, I get a domain error that takes me to :if L>L6(5:then Does anyone know what’s wrong?
Hey, cool game. I wrote it but I got a Domain error and it takes me to line :Output(T,S," "
You know what could be causing it? and if so how do I solve it?
nvm I solved it, missed a bracket :)
It gives me a domain error every time I go though the 2nd row please help me figure out what I did wrong
When I start the game it immediately shows the HIGH score table and ends the game at 3 points.
Nice one! But I have a problem... no matter how long my snake is when I die, I always have the score 2.. Can someone help me?
please come back dad
can you do one similar, but pong? like make it on the home screen, not with like the pixel drawing graph area. THHAAANNKKKSS!!!
Im getting errors on every [A] im using ti 82 stats pls help
you have to press 2nd and matrix to get the [A] dont hand type it
Make episode 17
How do we make the snake slower
Can I do it on my TI-30X IIS calculator???Pls
When i lose it does not say done. What should i do because now i cannot make a high score table
Done is only for ti-84.
Do new Videos
Invalid dim help please
Please help me, it says high score even when I didn’t get a high score. Is there any way to fix this?
In the tutorial, he makes it display "NEW HIGHSCORE" if you beat any of the top 5 scores.
To change it to display that only when you beat the top score, find where in the code it says
":If L>L6(5"
And change that line to say ":L>L6(5"
Hope this helps
@@EdgeLord_yearsago thanks so much your a life savior!
@@warriorninja51 No problem, I had the same issue and fixed it
How do I change the directions to buttons
8
4. 6
2
Change all getkeys that contain 24, 25, 26 and 34 to 73, 82, 84, and 93. I'm not 100% sure about this, but I think those are the keys for 2, 4, 6, and 8.
it does that to me to.
how do you save the program
I don’t know if this will be helpful because it has been 2 years, but you can just quit the program and it will save on its own
When I put in the code it didn't delete the snake when I died. Pls Help
Never mind I fixed it. All you have to do is put clear home befor the display for score
how do i send the file to my calculator
It doesn't work
mine just sais prgmSNAKE. How do I fix it?
thats whats its supposed to say
Press enter
When I get a low score it displays New high scores
Eric Pham lol same
To fix this go to the line "If L>L6(5" and change the "5" to a "1"
Great video! It works perfectly, although when I go to put a list in, it says “INVALID DIM.” So if someone could help me on that, that would be great.
Same thing happens to me. Did you find a solution?
Nope
I figured it out, you have to input values inside of the list first. So for example fill the list with 5 numbers, then continue on. Hope this helps!
@@imweird7916 sorry but i still don’t understand. I’m not good at coding can you type or show me and example
Does this work on ti-83 plus?
yes
it works for ti 82, so It should