Check for dark places

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

Moderators: Commodore, Zenith Nadir

Post Reply
zzo38
newcomer
Posts: 22
Joined: Sun Dec 15, 2019 11:25 pm

Check for dark places

Post by zzo38 »

It is possible to use a ZZT-OOP code to check for if a place is dark. The draw procedure for stars will change their colours, so you can check if something is visible (either because the room is not dark, or because it is in the range of the torch light), by throwing a star and then to change into something else and check their colours, if it was obscured by the dark then it will be white, otherwise not.

For example:

Code: Select all

@Stuff
/i/i/i/i/i/i#throwstar e
#change star water
#if any white water give score 1
#restart
(This message is also on my NNTP server with message ID <1603312904.bystand@zzo38computer.org>.)
I have set up a NNTP to discuss ZZT and other stuff.
asie
1 full minit uv 1 secend mesiges
Posts: 67
Joined: Sun Mar 17, 2019 4:55 pm

Re: Check for dark places

Post by asie »

Nice find, zzo! To think it's been almost thirty years, and people are still finding new tricks...
Post Reply