Home    Forum    Graphics    Info    Fun    Music   

Slayer, the Game

Certain calculators allow you to program games and other things onto them. If you have a programming calculator, you can program this Buffy game I wrote into it. Math class will never be boring again!
(Note: This game has only been tested on the TI-83 Plus calculator by Texas Instruments.)

Please replace all question marks with the "store" or "arrow" symbol (the button right above "on"). Also replace the >= with a "greater than or equal to" sign and all <= with a "less than or equal to" sign.

ClrHome
Lbl M
Menu("S L A Y E R","PLAY",N,"INSTRUCTIONS",O,"CREDITS",P,"HIGHSCORE",Q,"QUIT",R)
Lbl N
ClrHome
100?H
100?E
10?A
0?W
0?F
Disp "ATTACK(1)","DEFEND(2) OR","TAKE STAKE(3)"
Lbl 0
If (F=1)
Then
randInt(1,2)?V
Else
randInt(2,3)?V
End
Prompt X
If (X>=4)
Then 
Disp "CHOOSE","ATTACK(1)","DEFEND(2) OR","TAKE STAKE(3)"
Goto 0
End
If (X=3)
Then 
1?W
End
If (V=3)
Then
1?F
End
If (X=1 and W=0)
Then 
Disp "YOU HAVE NO","WEAPON"
Goto 0
End
If (X=1) and (W=1) and not(V=2)
Then
E-A?E
0?W
End
If (V=1 and F=1) and not (X=2)
Then
H-A?H
0?F
End
If (X=1 and V=2)
Then
E-0?E
0?W
End
If (X=2 and V=1)
Then
H-0?H
0?F
End
Disp "VAMPIRE"
If (V=1)
Then
Disp "ATTACKED."
End
If (V=2)
Then
Disp "DEFENDED."
End
If (V=3)
Then
Disp "VAMPED."
End
Disp "YOUR HEALTH:", H
Disp "VAMPIRE HEALTH:", E
If (H<=0 and E>0)
Then
Disp "YOU GOT BITTEN"
Pause
Goto M
End
If (E<=0 and H>0)
Then
Disp "VAMPIRE DUSTED","SCORE:",H
If (H>S)
Then
H?S
End
Pause
Goto M
End
If (H<=0 and E<=0)
Then
Disp "YOU BOTH DIED"
Pause
Goto M
End
Goto 0
Lbl O
ClrHome
Disp "","1. PUSH 1,2 OR 3","","2. DONT DIE","","3. SLAY THE VAMP"
Pause
Goto M
Lbl P
ClrHome
Disp "  S L A Y E R",""
Output(3,3,"WRITTEN BY:")
Output(4,3,"LEAH MAZUR")
Output(6,5,"AHOLEIN")
Output(7,3,"THEWORLD.COM")
Pause
Goto M
Lbl Q
ClrHome
Disp "HIGH SCORE:",S
Pause
Goto M
Lbl R
ClrHome