|
-
July 26th, 2002, 09:21 PM
#1
TI Basic Programming
TI-83 Plus users-
TI Basic is a programming language that is used for TI-83 Plus Calculators (and silver edition).
It is sort of like Microsoft's 80's Basic but for a calculator. If you ever played Drugwars 1(2) or the
highly popular Gangsta, this is the language that is used. I am going to go over some of the main points
of TI Basic, and near the end, give ideas for a gangsta type game.
Table of Contents
1.Intoduction
2.Display
3.Menu
1.Introduction
A few pointers-1.TI-Basic is simple
2.TI-Basic is time consuming
3.e-mail me at [email protected] for questions.[gloworange]Note:read tutorial first and don't ask for code for a game, I won't reply.[/gloworange]
4.I assume you know how to "get around" on the TI. If not, read manual.
To make a new program:1.Press the program button
2.New
3.Create New
4.Give it a name
2.Display
Display is a command that makes what you type in appear on the screen when you run the program.
To use display:
Create a new program and call it "Hello"
Code: Explanation:
ClrHome -clears home screen
Disp "HELLO WORLD" -displays hello world [gloworange]note:You must type the " " before and after hello world[/gloworange]
Pause -Pauses the home screen until you press enter
Good Job! You just created your first program!
3.Menu
Far by my favorite command, Menu creates... well...uh... a menu! (duh)
[gloworange]note: commands that have been explained will not be explained in following chapters.[/gloworange]
Create a new program and call it "Menu"
ClrHome
Menu("Home","Option1",01,"Option 2",02,"Quit",Q -Okay. The first set of parantheses say home. That is what
-will show up at the top of the menu. Option1 will appear
-second. The "01" is called a label (Lbl). That means that
-Option1 is labled 01, so when you press Option 01 it will jump
-to whatever is stored in Lbl 01. Make sense? Option 2 is the
- same but uses a different Lbl. The program will end when you
-you press quit.
Lbl 01 -code that follow this will be stored into Lbl 01, except when
-another Lbl comes up.
ClrHome
Disp "You picked Option 1" -it doesn't have to say that.
Pause
End -Ends the program
Lbl 02
ClrHome
Disp "You picked Option 2"
End
Lbl Q -You can call the Lbl alphabetical(A,B,C) or numerical(1,2,3)
End
Thats about it. Like I said, you can e-mail for questions at [email protected]. Be creative:
Make the Menu say stuff like "shoot someone" and when the person clicks that, it will say "you shot me!"
Stay tuned for more tutorials on TI-Basic!
Good Luck!
-nielad2001
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|