Stendhal:Tileset specifications

From Arianne
Jump to: navigation, search

Any new map graphics should comply with these specifications.[1] (Yes, there are several old images that do not comply; Those will be fixed eventually).

Contents

General

The tilesets used for the maps are in tiled/tileset directory in the stendhal source. Give your image a descriptive name in lowercase letter and use underscore between words. You don't need to repeat information in the image name that's already given by the directory name. The current directory hierarchy is here.

Perspective

The object is to appear as viewed directly from the south, at a 45 degree angle to the ground plane. There's no distance effect. Interiors walls are an exception to this.
View angle.png
The effect of the view angle is that lengths in north-south direction are scaled by 1/√2 (≈0.71). Likewise for all heights.
Well example.png Example of scaling north-south length in the well.

Interior walls

Interior walls are viewed directly from above, and with faked distance effect. See the current wall images for examples.

Light

Light comes slightly from the left (roughly south south west), and above of the viewer.
Because semitransparent pixels can not be used, shadows outside the main shape of the image must be done with opaque color. RGB color #353535 is fairly common, but you can use something else too.

Adding tiles to existing images


Other

Rubble sample.png Example: rubble can be resized in both directions.

Notes

[1] There are valid reasons to break most rules, but do not break a rule unless you understand the reason for it (and, by extension, the reason why it does not apply to your particular image).
[2] Strictly speaking, it's possible to add to the width too, while keeping the tile numbering constant. Don't do that unless you really know what you are doing.
[3] It's also possible to run MapUpdater.class on the relevant maps, either manually, or with a script. If you don't know how to do this, just use 'ant updatemaps'.

Personal tools
Namespaces
Variants
Actions
Navigation
stendhal for players
portal
resources
Toolbox