TimeTableZ LogognuZ Logo
Latest Files

NEW TimeTableZ 0.1 (24.10.2003)
Binary: timetablez_0.1_arm.ipk [62.2KB]
Source: timetablez_0.1.tar.gz [121.8KB]

NEW gnuZ 0.3 (21.09.2003)
Binary: gnuz_0.3_arm.ipk [858.1KB]
Source: gnuz_0.3.tar.gz [73.6KB]
Source: gnuz_0.3_levels.tar.gz [3.9MB]


gnuZ Levelmaker 0.1.1 (21.09.2003)
Binary: gnuz-levelmaker_0.1.1_arm.ipk [14.9KB]
Source: gnuz-levelmaker_0.1.1.tar.gz [7.5KB]

gnuZ Package 0.1 (10.09.2003)
Binary: gnuz-package_0.1_arm.ipk [7.4KB]
Source: gnuz-package_0.1.tar.gz [7KB]


OLD gnuZ 0.2.1 (11.09.2003)
Binary: gnuz_0.2.1_arm.ipk [935.1KB]
Source: gnuz_0.2.1.tar.gz [74.7KB]

OLD gnuZ 0.1 (11.08.2003)
Binary: gnuz_0.1_arm.ipk [802.4KB]
Source: gnuz_0.1.tar.gz [72.9KB]
Mapping Guide
Making levels is not that difficult at all, all you need is an image manipulation program like GIMP, Photoshop or whatever you like best, and a text editor. For the final step you'll need the gnuz_levelmaker prog i wrote. It's a simple commandline program for creating the .lev files gnuZ needs. If you want to use it on your desktop PC, you'll have to compile it yourself (grab the sourcode here) or use the Zaurus version.
Basically, a level consists of 3 files: a level picture, the level mask, and a level configuration file

Step 1: creating the level picture
If you want to create a level for the Sharp Zaurus 5x00 with a resolution of 240x320, the level height should be 200px. I'd suggest you convert the image to 8bit color depth, then the file will be a lot smaller.
Filetype: PNG
Mapping Guide: Levelpic

Step 2: creating the level mask
A LevelMask just consists of the following colors:
White#FFFFFFNo Barrier
Black#000000Normal barrier
Red#FF0000Indestructible barrier (e.g. Stones)
Blue#0000FFWater (Killzone, gnus will drown here)
Green#00FF00Exit
Magenta#FF00FFOnly dig from right to left
Cyan#00FFFFOnly dig from left to right
Yellow#FFFF00Stairs (just like the ones builders make)
Every other color will be treated as an indestructible barrier!
Perhaps it's easier if you draw the levelmask before you actually paint the level....
Filetype: PNG
Mapping Guide: Levelmask

Step 3: creating the level config file
Create a text file containing the following data:
LevelName=Training - Builders
LevelAuthor=WarCow
LevelPicFilename=training_builders.png
LevelMaskFilename=training_builders_mask.png
LevelDifficulty=1
LevelParTime=75

GnuCount=20
GnuMinSave=16
GnuOrientation=1
GnuXSpawnPoint=-30
GnuYSpawnPoint=134
GnuBlockers=2
GnuDiggers=0
GnuBashers=0
GnuBuilders=20
GnuFloaters=0
GnuClimbers=0
GnuBombers=2
LevelPicFilename and LevelMaskFilename: these files have to be in PNG format!
LevelDifficulty may vary between 1-4
LevelParTime in seconds needed for level stats
GnuOrientation=1 means that the gnus will walk from left to right; 0: from right to left
GnuXSpawnPoint=-1 will let the gnus walk in from the left side of the level. Values that are bigger than the LevelWidth will let them walk in from the right side. If 0<=GnuXSpawn<LevelWidth and GnuYSpawn<0 the gnus will fall in from the top of the level, but when GnuYSpawn>=0 the gnus will spawn inside the level (like in Desert - Sandpit)

I'd suggest you take a look at the config files of the levels I made.

Step 4: creating the .lev file
Now it's time to use the levelmaker prog.
Usage: levelmaker <outputfile> <level.conf>
# gnuz_levelmaker training_builders.lev edit/training_builders.conf
PROCESSING CONFIG FILE edit/training_builders.conf...
READ CONFIG PARAMS: LevelName - Training - Builders
READ CONFIG PARAMS: LevelAuthor - WarCow
READ CONFIG PARAMS: LevelPicFilename - training_builders.png
READ CONFIG PARAMS: LevelMaskFilename - training_builders_mask.png
READ CONFIG PARAMS: LevelDifficulty - 1
READ CONFIG PARAMS: LevelParTime - 75
READ CONFIG PARAMS: GnuCount - 20
READ CONFIG PARAMS: GnuMinSave - 16
READ CONFIG PARAMS: GnuOrientation - 1
READ CONFIG PARAMS: GnuXSpawnPoint - -1
READ CONFIG PARAMS: GnuYSpawnPoint - 134
READ CONFIG PARAMS: GnuBlockers - 2
READ CONFIG PARAMS: GnuDiggers - 0
READ CONFIG PARAMS: GnuBashers - 0
READ CONFIG PARAMS: GnuBuilders - 20
READ CONFIG PARAMS: GnuFloaters - 0
READ CONFIG PARAMS: GnuClimbers - 0
READ CONFIG PARAMS: GnuBombers - 2
READING LEVELPIC /home/eraser/dev/gnuz/data/levels/edit/training_builders.png ...
READING LEVELMASK /home/eraser/dev/gnuz/data/levels/edit/training_builders_mask.png...
CREATING OUTPUT FILE training_builders.lev...
ADDED LEVELCONFIG...
ADDED LEVELPIC...
ADDED LEVELMASK...
FILE CLOSED!
Copy the .lev file to /opt/QtPalmtop/share/gnuz/levels/ on your Zaurus.
That's all :-)
Download the Levels and take a look at how I made them. There you'll find 4 files per level: LevelConfig, LevelPic, LevelMask and a .xjt or .xcf file
© 2004 - Lukas Fraser
This software may be distributed under the terms of the GNU General Public License.