Extending TUD (Howto) Draft
1 How to make own graphics ?
1.1 Edit existing graphics
Sprites are in the spr_src directory. The input files must be in ppm truecolor format. To change existing graphics just edit the ppm-file in this directory. Than start make in this directory. Attention: TUD uses a 8-Bit Palette. This means that all pictures are remaped to the TUD palette.
1.2 Changing the palette
The palette file is "palette.ppm" and is placed in the main directory. The palette entries are just the colors used in the "palette.ppm" picture. The maximum number of colors is 256. You should not use them all because if you use less it could be possible to play in 8-Bit X server mode without private color map (not yet implemented). Also the palette must have total white and total black entries.
1.3 Create new graphics
1.3.1 Sprites without transparent dots (sprite_linear_nontransparenttype)
- Create a new ppm-file
- Edit the makefile in spr_src
- Add the name of the sprite in the "all:" list.
- type "make"
That is all.
1.3.2 Sprites with transparent dots (sprite_linear_transparenttype)
- Create a mask sprite of the same size where you must use total black (0/0/0) for transparent dots and total white for nontransparent dots
- The name of this file must be XXX_map.ppm when the real sprite is named XXX.ppm (e.g. "ptiger.ppm" and "ptiger_map.ppm")
- Do the same as in 1.3.1
How to create new objects (fuel, ammo,...) ?
Objects are represented by config files and placed in the "object" directory. Just take a look at the existing file ("object/fuel.obj") or ask me.
How to create new vehicles ?
How to create new landscapes ?
How to create new userfiles ?
If you are interested I will answer these questions. It is not verry difficult by the way. So just mail me and I will continue this page.
Go back to the main page.
Last modified: Sun Feb 11 19:24:05 CET 2001