Hi every one today is game of the month day okay. So every month I post a Game I have made from scratch. So today is a game called chase. There is a hard version and a easy version. Same code but just about 4 or 5 extra lines. I'll tell you were the hard lines are and if you want to add them you just have to write them in that same place okay. Also this --> means the store button witch is one up from the on button.
So here is the code
:4-->Y:8-->X
:
:Lbl F
:
:randInt(1,16)-->A
:randInt(1,8)-->B
:randInt(1,16)-->Z This is a hard line you can choose to put it in or not.
:randInt(1,8)-->V Hard line put it in if you choose
:
:Lbl G
:
:ClrHome
:
:Output(Y,X,"X"
:
:Output(B,A,"+"
:
:Output(V,Z,"+" This is a hard line put it in if you choose
:
:getKey-->K
:
:If K=24:Then
::X-1-->X
:End
:
:If K=26:Then
::X+1-->X
:End
:
:If K=25:Then
::Y-1-->Y
:End
:
:If K=34:Then
::Y+1-->Y
:End
:
:If X=A and Y=B
:Goto F
:
:If X=Z and Y=V This is a hard line put it in if you choose
:Goto D This is a hard line put it in if you choose
:
:Goto G
:
:Lbl D This is a hard line put it in if you choose
:Disp "YOU DEAD"This is a hard line put it in if you choose
:Disp "ENTER TO"This is a hard line put it in if you choose
:Disp "RESTART"This is a hard line put it in if you choose
:
:If K=105This is a hard line put it in if you choose
:Repeat GThis is a hard line put it in if you choose
Okay thats it and if you did the easy the X should chase the + and when they touch the +goes to a different interval. The hard one there is 2 +s and that if you touch the wrong one you die okay.
Thanks
Seth
TI-84+ Calculater Programming totorials
Friday, 29 May 2015
Tuesday, 26 May 2015
Today is the day we learn about Outputing symbols k. And I might put a little bit of if statements in or just make it move actually yea.
So to get started start a new Program
On the First line we are going to do Variables and these are really helpful.
So there are to positions to a output. The X and the Y. The Y always comes first in this language but usually the X dose. So to star a variable you ave to have a number.Always start with the Y position. So you write a number between 1-8. Then you have to store it. So the Store button is 1 to the left of the 1 key, then write Y. Do the same with the X variable on the next line.
After that on the next line create and Lbl and name it G.
Then on the next line Clrhome(PRGM,Right arrow,8)
Now on the next line is how to Output a symbol. Press PRGM and then right arrow and then 6. Now I told you about how Y come before X. So you have to write Y,(comma) X,(comma) "(a symbol)"
Should look like this: Output(Y,X,"a symbol"
Okay.
Now to make it move.
You have to use If Statements. If statements are used for checking if a key is pressed or if something is touching something or if it is of the screen. There wonderful.
But first you have to use the GetKey command. So on the next line press PRGM then Right arrow then 7.Then Press the store button and then name it K.
Should look like this: Getkey--> K
Okay.
Now the if statements.
Write this.
:If K=24:Then
::X-1(Store button) X
:End
:If K=26:Then
::X+1(Store Button)X
:End
:If K=25:Then
::Y-1(store button)Y
:End
:If K=34:Then
:Y+1(Store button)Y
:End
Goto G
Now it can move around the screen. All the Commands like Then and IF and End are there is you press PRGM and scroll down. I will explain how this works tomorrow. But is should make your symbol move.
Your code should look like the above but above the If statements should be.
:(some number between 1,8)(store button)Y
:(Some number between 1-16)(Store Button)X
:Lbl G
:Output(Y,X,"Some Symbol"
The If statments
:Goto G
Thanks
Seth
So to get started start a new Program
On the First line we are going to do Variables and these are really helpful.
So there are to positions to a output. The X and the Y. The Y always comes first in this language but usually the X dose. So to star a variable you ave to have a number.Always start with the Y position. So you write a number between 1-8. Then you have to store it. So the Store button is 1 to the left of the 1 key, then write Y. Do the same with the X variable on the next line.
After that on the next line create and Lbl and name it G.
Then on the next line Clrhome(PRGM,Right arrow,8)
Now on the next line is how to Output a symbol. Press PRGM and then right arrow and then 6. Now I told you about how Y come before X. So you have to write Y,(comma) X,(comma) "(a symbol)"
Should look like this: Output(Y,X,"a symbol"
Okay.
Now to make it move.
You have to use If Statements. If statements are used for checking if a key is pressed or if something is touching something or if it is of the screen. There wonderful.
But first you have to use the GetKey command. So on the next line press PRGM then Right arrow then 7.Then Press the store button and then name it K.
Should look like this: Getkey--> K
Okay.
Now the if statements.
Write this.
:If K=24:Then
::X-1(Store button) X
:End
:If K=26:Then
::X+1(Store Button)X
:End
:If K=25:Then
::Y-1(store button)Y
:End
:If K=34:Then
:Y+1(Store button)Y
:End
Goto G
Now it can move around the screen. All the Commands like Then and IF and End are there is you press PRGM and scroll down. I will explain how this works tomorrow. But is should make your symbol move.
Your code should look like the above but above the If statements should be.
:(some number between 1,8)(store button)Y
:(Some number between 1-16)(Store Button)X
:Lbl G
:Output(Y,X,"Some Symbol"
The If statments
:Goto G
Thanks
Seth
Monday, 25 May 2015
HELLO THIS IS SETH
Today is my first day and I will tell you I am excited.
So Today we are going to Start with some simple stuff.
So to code on a Ti-84+ Calc you have to have a TI-84+ calc kk.
1. So to Start Programming turn on your calculator.
2. Press the PRGM button right beside the blue APPS button.
3.Press the Right Arrow key twice.
4.Press 1 or Enter
5.Create a Name using the Alpha Key and the green letters between the numbers as a guide.
6.Now to Start Programming.
7. I would start with variables but we will do that later so lets talk about displaying Text and objects
8. So I would start with a Label. So Press the PRGM button and then press nine and then name is G
9. on the next line press PRGM right arrow then 8
10.On the next line we will Display a word so
11.Press PRGM, Press the right arrow key once and then press 3
12 It should say Disp now. So Press 2nd Alpha and then press +
13. Write a Word.
14. Press + again
15.On the next line press PRGM then 8
16.On the next line and press PRGM and then Press 0
17. Name it G
18.Press 2nd then Mode.
19.Press PRGM and then goto your PRGM and press enter again.
20. it should display your word
Your code should look like this
:Lbl G
;ClearHome
:Disp "Some Word"
:Pause
:Goto G
Now to explain to you how this works
When you put in a
label its a lot more organized and stuff kk.
ClearHome is so that is clears the screen to nothing before displaying your word
Disp means display and then it needs ""
Pause pauses the screen so that your word does not just keep redrawing really fast so you cant see it.
You don't really need the goto in this code but later on you will kk.
tomorrow will be displaying objects and then the basics of if statement.
Seth Jensen
Today is my first day and I will tell you I am excited.
So Today we are going to Start with some simple stuff.
So to code on a Ti-84+ Calc you have to have a TI-84+ calc kk.
1. So to Start Programming turn on your calculator.
2. Press the PRGM button right beside the blue APPS button.
3.Press the Right Arrow key twice.
4.Press 1 or Enter
5.Create a Name using the Alpha Key and the green letters between the numbers as a guide.
6.Now to Start Programming.
7. I would start with variables but we will do that later so lets talk about displaying Text and objects
8. So I would start with a Label. So Press the PRGM button and then press nine and then name is G
9. on the next line press PRGM right arrow then 8
10.On the next line we will Display a word so
11.Press PRGM, Press the right arrow key once and then press 3
12 It should say Disp now. So Press 2nd Alpha and then press +
13. Write a Word.
14. Press + again
15.On the next line press PRGM then 8
16.On the next line and press PRGM and then Press 0
17. Name it G
18.Press 2nd then Mode.
19.Press PRGM and then goto your PRGM and press enter again.
20. it should display your word
Your code should look like this
:Lbl G
;ClearHome
:Disp "Some Word"
:Pause
:Goto G
Now to explain to you how this works
When you put in a
label its a lot more organized and stuff kk.
ClearHome is so that is clears the screen to nothing before displaying your word
Disp means display and then it needs ""
Pause pauses the screen so that your word does not just keep redrawing really fast so you cant see it.
You don't really need the goto in this code but later on you will kk.
tomorrow will be displaying objects and then the basics of if statement.
Seth Jensen
Friday, 22 May 2015
HELLO EVERYONE MY NAME IS SETH JENSEN.
Let me tell you a little bit about myself.
I'm 13
I love Math
I have A Texas Instruments 84+ calculator
I love coding
I mixed the to together and got this.
People have been saying at my school about how cool this Calculator Coding thing is. so I Decided to start a Blog about this and trying to enlighten you about The Ti-84+ Calc Programming Features and games that is have made. I hope you all enjoy. As I said I am 13 and there might be a few spelling and capitol errors. But who cares, Kk I hope you enjoy..
Let me tell you a little bit about myself.
I'm 13
I love Math
I have A Texas Instruments 84+ calculator
I love coding
I mixed the to together and got this.
People have been saying at my school about how cool this Calculator Coding thing is. so I Decided to start a Blog about this and trying to enlighten you about The Ti-84+ Calc Programming Features and games that is have made. I hope you all enjoy. As I said I am 13 and there might be a few spelling and capitol errors. But who cares, Kk I hope you enjoy..
Subscribe to:
Posts (Atom)