Xiqual 0.7.2

int tileset

(int argc, char* argv[])

Create a tileset from a tileset definition.

Usage:

tileset name.t

The definition file can have any name, but .t is the postfix I'll be using. A tileset definition refers to one or more images (loadable by SDL_image) to cut sections from. The resulting tileset contains graphics with a masking colour defined (the colour that doesn't get copied in blits). It does not define WHAT each tile is for (sprites, terrain, icons).

Definition file format

The file is divided into sections. Descriptions follow here.

[tileset]: The first section, normally. It can be anywhere in the file, but it must be unique.

Variables in the [tileset] section

Variables are set in the usual way of INI-style files, with "name = definition" at most once per line.

The next type of section can appear multiple times. It specifies files to grab images from. The section name is [source].

Variables in [source] sections

IFF chunk types

Here is a list of the different chunks that a tileset contains. The FORM type is TILS.

Note: If image names are not specified by full paths, the program will attempt to load them relative to the definition file. In other words, the working directory is set to wherever the definitions are.

Author:
Ronny Bangsund
See Also:

Alphabetic index



This page was generated with the help of DOC++.