Unsatisfactory Software software
Software Magazines Misc About
Contents | Index | Help | < Browse | Browse >
Calculator Invaders
Program by Chris Young, based on the ancient game of "Space Invaders"

The object of the game is the same as Space Invaders - shoot the aliens who are trying to take over your calculator's memory (it seems they've succeeded, since you will only have 40 bytes free after typing this in. Unless, of course, you have a flashy calculator with 128 megabytes of RAM and a built-in CD-ROM drive, which can also receive all satellite TV channels and operate as a portable microwave oven.)

Controls: Key 0/EXE - Fire
1/EXE - Left
2/EXE - Right

0 -> M:4 -> Y:0 -> Z
Int (Ran#×10) -> K
Lbl 1
Int (Ran#×2) -> L
L=0 => K <> 9 => K+1 -> K:L=1 => K <> 0 => K-1 -> K
K=0 => "~O~"
K=1 => " ~O~"
K=2 => " ~O~"
K=3 => " ~O~"
K=4 => " ~O~"
K=5 => " ~O~"
K=6 => " ~O~"
K=7 => " ~O~"
K=8 => " ~O~"
K=9 => " ~O~"
" "
" "
" "
M=0 => ",I,"
M=1 => " ,I,"
M=2 => " ,I,"
M=3 => " ,I,"
M=4 => " ,I,"
M=5 => " ,I,"
M=6 => " ,I,"
M=7 => " ,I,"
M=8 => " ,I,"
M=9 => " ,I,"
? -> N
N=2 => M <> 9 => M+1 -> M
N=1 => M <> 0 => M-1 -> M
N=0 => K=M => Goto 2
Goto 1
Lbl 2
"HIT!"/
Z+Int (Ran#×10)+1 -> Z
Dsz Y
Goto 1
"HURRAH!"
"SCORE:"
Z