The Chagunitzu and Paganitzu File Specifications by Frenkel Smeijers

CHAG.CGA	CGA Graphics
CHAG.DAT	Fonts
CHAG.EGA	EGA Graphics
CHAG.EXE	Executable
CHAG.ROO	Rooms
CHAG.TIT	Title screen

PAGA1.001	Executable
PAGA1.002	Executable
PAGA1.003	Fonts
PAGA1.004	PCX Graphics
PAGA1.005	Some texts
PAGA1.006	PCX Graphics
PAGA1.007	Rooms
PAGA1.008	CGA Graphics
PAGA1.009	PCX Graphics
PAGA1.010	EGA Graphics
PAGA1.011	CGA Graphics
PAGA1.012	EGA Graphics
PAGA1.013	CGA Graphics
PAGA1.014	EGA Numbers
PAGA1.015	CGA Numbers
PAGA1.016	EGA Graphics
PAGA1.EXE	Executable

PAGA2.001	Executable
PAGA2.002	Executable
PAGA2.003	Fonts
PAGA2.004	PCX Graphics
PAGA2.005	Some text
PAGA2.006	PCX Graphics
PAGA2.007	Rooms
PAGA2.008	PCX Graphics
PAGA2.009	EGA Graphics
PAGA2.010	EGA Graphics
PAGA2.011	CGA Graphics
PAGA2.012	EGA Graphics
PAGA2.013	CGA Graphics
PAGA2.014	EGA Numbers
PAGA2.015	CGA Numbers
PAGA2.016	EGA Graphics
PAGA2.017	CGA Graphics
PAGA2.018	EGA Graphics
PAGA2.019	CGA Graphics
PAGA2.020	EGA Graphics
PAGA2.021	CGA Graphics
PAGA2.EXE	Executable

PAGA3.001	Executable
PAGA3.002	Executable
PAGA3.003	Fonts
PAGA3.004	PCX Graphics
PAGA3.005	Some text
PAGA3.006	PCX Graphics
PAGA3.007	Rooms
PAGA3.008	PCX Graphics
PAGA3.009	PCX Graphics
PAGA3.010	EGA Graphics
PAGA3.011	CGA Graphics
PAGA3.012	EGA Graphics
PAGA3.013	CGA Graphics
PAGA3.014	EGA Numbers
PAGA3.015	CGA Numbers
PAGA3.016	EGA Graphics
PAGA3.017	CGA Graphics
PAGA3.018	Executable
PAGA3.EXE	Executable

///////////////////////////////////////////////////////////////////////
//
// Fonts
//
///////////////////////////////////////////////////////////////////////

Inside the fonts-files there are some strings. Each string represents
another letter or number. Each letter inside a string is a command:

Line-Drawing and Cursor-Movement Commands
[B]          Move without plotting  [N]    Plot and return
U[n]         Up                     E[n]   Diagonally up and right
D[n]         Down                   F[n]   Diagonally down and right
L[n]         Left                   G[n]   Diagonally down and left
R[n]         Right                  H[n]   Diagonally up and left
M[{+|-}]x,y  Move to point x,y
             (or relative move)

Color, Scale, and Rotation Commands
Cn           Change the drawing (foreground) color
             (SCREEN mode determines valid values for 'n')
Pp,b         Fill enclosed shape that has border color 'b'
             with color 'p'
Sn           Increase or decrease length of moves (n=4 default)
An           Rotate (n * 90) degrees, where n = 0, 1, 2, or 3
TAn          Rotate (0 <= n <= 360) degrees

///////////////////////////////////////////////////////////////////////
//
// CGA and EGA Graphics, Title Screen and the numbers
//
///////////////////////////////////////////////////////////////////////

The graphic files are raw memory copies. Keith Schuler used the BSAVE
command from BASIC. So if you want to display the graphics you use the
BLOAD command.

A file saved with the BSAVE statement has a 7-byte header with the
following hexadecimal format: 

ww xx xx yy yy zz zz

ww:     A signature byte equal to 253, which tells DOS and other
        programs that this is a Basic BSAVE/BLOAD format file.
xx xx:  The segment address from the last BSAVE.
yy yy:  The offset address from the last BSAVE.
zz zz:  The number of bytes BSAVEd.

///////////////////////////////////////////////////////////////////////
//
// Rooms
//
///////////////////////////////////////////////////////////////////////

The rooms are also saved with the BSAVE command. With the formula
(Room number) * 386 + 8 (the first byte is number 1 not 0.) you can
calculate where a specificate room starts. Each 2 bytes represent a
tile. 
In Chagunitzu the start-position and the exit aren't in the room file,
but in the executable. Also the special moving walls and other special
thing are in the executable, just like the number of gems you must
collect before you can go to next room 
In Paganitzu the secret places where Al reads something or he talks to
someone are in the executable.

///////////////////////////////////////////////////////////////////////
//
// PCX Graphics
//
///////////////////////////////////////////////////////////////////////

I don't know exactly what the format is for these files. It has
something to do with Genus Microprogramming. But I wrote a simple
program that extract the PCX out of this files. If you want that
program or you have more information about these files mail me.

///////////////////////////////////////////////////////////////////////
//
// Executable
//
///////////////////////////////////////////////////////////////////////

The executables of Paganitzu are compressed with LZEXE. So you need
UNLZEXE to decompress these files.


Frenkel Smeijers
frenkel_smeijers@hotmail.com
http://www.student.tue.nl/u/a.f.smeijers/sfp