~Hakurei Shrine~ > Rika and Nitori's Garage Experiments

TI-89 Danmaku!

Pages: (1/2) > >>

Lopsidation:

Is school boring? Do you want to practice dodging instead of listening to your History teacher?

Then type this into a new program on your calculator:


--- Code: ---Disp "ENTER COLUMNS"
Prompt W
Disp "ENTER DIFFICULTY"
Disp "0 IS HIGHEST"
Prompt V
Lbl 1
1→B
1→C
1→D
1→E
1→F
1→G
int(W/2)→P
1→A
Lbl 0
ClrHome
getKey→M
If M=82
max(1,P-1)→P
If M=83
min(W, P+1)→P
F→G
E→F
D→E
C→D
B→C
A→B
randInt(1,7)→A
Output(2,A,1)
Output(3,B,1)
Output(4,C,1)
Output(5,D,1)
Output(6,E,1)
Output(7,F,1)
Output(8,G,1)
Output(8,P,8)
If P=G
Goto 7
0→Z
Lbl 6
1+Z→Z
If Z>V
Goto 0
Goto 6
Lbl 7
Disp "YOU LOSE."
Disp "PRESS ENTER"
Lbl 8
getKey→M
If M=105
Goto 1
Goto 8
--- End code ---

Gameplay: You're the 8 at the bottom. Use the 4 and 5 keys to dodge the falling 1's.

If you want it to be 'nightmare' difficulty, take out the part near the beginning that says:


--- Code: ---Disp "ENTER DIFFICULTY"
Disp "0 IS HIGHEST"
Prompt V
--- End code ---

and the part at the end that says:


--- Code: ---0→Z
Lbl 6
1+Z→Z
If Z>V
--- End code ---

If you are crazy, then:

--- Code: ---F→G
E→F
D→E
--- End code ---
reverse these three lines.

Unfortunately, attempts at more complex danmaku slowed down my calculator tenfold.

Of course, this isn't a complete 6-stage game or anything, just a small diversion. Rika's Garage seemed like the best place to put it.

Infy♫:

does this also work for the TI-84 plus?

Lopsidation:

It should, yes. It should work for anything in the TI series, I think they're all programmed the same way.

Slowpoke:

I'm trying this on a TI-86 from 2005.

Syntax error. By -> do you mean →? My calculator doesn't seem to have an arrow in the catalog. And should I put in the spaces before and after those?

Lopsidation:

Yeah, I meant →, and no, don't put in spaces.
Sorry, I'll update the first post with these cute little arrows now.
EDIT: Updated.
It should be fine now. *crosses fingers*
MORE EDIT: Oh, and to put in an arrow, press the STO→ button. It's right above the ON button on my calculator.

Pages: (1/2) > >>

Go to full version