Example Z-code files
Included with Windows Frotz 2002 in the Examples directory are a few example Z-code files,
demonstrating some of the interpreter's capabilities:
Parrot.blb
Parrot is a simple demonstration of Windows Frotz 2002's graphics support. Click on the right
mouse button to draw a picture (Actually, the toucan image from the libpng distribution.) at the current
mouse location. Click on the left mouse button to draw a blank square and on C to clear the window. To
change the colour for drawing squares and clearing the window press any of the number keys to select a
standard colour, or press S and then click on a pixel to choose the colour at the current mouse location.
Note that the toucan image is drawn translucently: The toucan's shadow is alpha blended with whatever
is currently in the square in which it is drawn.
Parrot was written by Kevin Bracey.
Unicode.z5
Unicode demonstrates input and output of Unicode characters. Firstly it demonstrates printing Unicode
characters that have been added to the Z-code file's Zcharacter table, specifically the Euro currency
symbol (Unicode 0x20AC), the copyright symbol (Unicode 0x00A9) and the trademark symbol (Unicode 0x2122).
Unicode then prints out several character sets, covering the standard Latin-1 set, then the Greek, Cyrillic
and Arabic sets.
Note that although most Windows fonts contain most of the commonly used Unicode characters, they do not
usually contain them all. The Arial Unicode MS font from Microsoft contains all 20,000 odd characters.
Finally, Unicode demonstrates input. If you press a key, Unicode will try to tell you what it believes
you have entered. If you have a Western European PC (and possibly others) then you can usually enter a
Euro symbol by pressing Ctrl+Alt+4. If this is the case, you can see Unicode accepting the Euro symbol
as input, even though it is not part of the standard Z-Machine characters, because the Euro symbol has
been added to the file's Zcharacter table.