99 bottles of beer

NOTE: I HATE A LOT OF YOUR ZZT GAMES, SO WATCH OUT!

Moderators: Commodore, Zenith Nadir

Post Reply
User avatar
Scribbit
is keeping the new avatar, thanks.
Posts: 543
Joined: Tue Sep 18, 2007 8:06 pm

99 bottles of beer

Post by Scribbit »

I was checking out a website that collects programs in different languages that all do the same thing: generate the lyrics to "99 bottles of beer on the wall."

This is the entry for ZZT.

This code does not work. It prints only the verses for 99, 98, 2, 1, and 0-- and it doesn't even do the "1" verse right!

I plan to rectify this. With lots of objects doing #char. Anyone have a better idea?
I'm nupanick.
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

Post by Quantum P. »

You could do it the long way (listing every number).

Or, if you flash the text across the bottom of the screen, you could alternate between "9 " and " 9" really fast, to make it look like it said "99". Using some clever tricks with zapping labels, you could set up a crude counter.
User avatar
Scribbit
is keeping the new avatar, thanks.
Posts: 543
Joined: Tue Sep 18, 2007 8:06 pm

Post by Scribbit »

Oh yeah, nice ideas! Using persistance of vision would never have occured to me, but that could work. Hmm...
I'm nupanick.
Post Reply