Stendhal:Tileset specifications: Difference between revisions

From Arianne
Jump to navigation Jump to search
imported>Kiheru
Initial version. Sample images are still missing
imported>Kiheru
Initial version. Sample images are still missing
(No difference)

Revision as of 23:13, 23 February 2008

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).

General

The tilesets used for the maps are in tiled/tileset directory in the stendhal source.

  • Tile size is 32x32 pixels. Therefore, the dimensions of all tilesets must be some multiple of 32.
  • File format is PNG, 8 bits/color.
  • Use only fully opaque, or fully transparent pixels. Currently the client treats any semitransparent pixels as fully transparent, for performance reasons.
  • unlike items, tile images do not use border lines

Perspective

The position of the viewer is directly in the south, in 45°angle to the ground plane. There's no distance effect. Interiors walls are an exception to this.
The effect of the view angle is that lengths in north-south direction are scaled by 1/√2 (≈0.71). Likewise for all heights.

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.

Other

  • Try to use existing patterns and colors, when that's reasonable. It makes the job of the map makers easier when the images can be easily combined.
  • Consider making your images resizable. While an individual image can often be made look better without the limitation of tiling parts of it at 32 pixel boundaries, resizable ones can add more variety to the maps.

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).