Tile Studio

From Wikipedia, the free encyclopedia

Tile Studio is a Windows-only editor for graphics and level data of tile-based video games. The application combines a bitmap editor for creating graphics and a map editor for designing level maps. A notable feature, distinguishing this tool from Mappy, which defines its own general map file format, is export of assets to arbitrary files through a comprehensive and sophisticated scripting language.

Tile Studio was created by Mike Wiering / Wiering Software.

Defining the Output Format[edit]

Asset export scripts have a .TSD file extension and a line-oriented syntax. On the website, there are examples of .TSD files for use with several programming languages and libraries (C, Delphi, Java, BlitzBasic, etc.). The user is expected to write a specific .TSD file for each project.

The output consists of any number of text files, binary files, or images (.bmp or .png). For example, a tileset can be exported as a bitmap containing all the tiles (or only the tiles/tile combinations that are actually used in the maps), or in it can be exported pixel by pixel to a text file with RGB values.[citation needed]

The following example creates a .bmp file with graphics and a map file in a custom text format. Notice the looping constructs and the placeholders, e.g. #tileset iterates over tilesets and populates TileSetIdentifier with the name of each tileset.[citation needed]

#tileset
#tilebitmap tileset_<TileSetIdentifier>.bmp 320
#end tilebitmap
#end tileset

#file map_<ProjectName>.tsmap
<TileSetCount>
#tileset
tileset_<TileSetIdentifier>.bmp
<TileSetNumber>,<TileWidth>,<TileHeight>,<HorizontalTileCount>,<VerticalTileCount>
<TileSetBitmapWidth>,<TileSetBitmapHeight>,<TransparentColorR>,<TransparentColorG>,<TransparentColorB>
<MapCount>
#map
<MapNumber>,<MapWidth>,<MapHeight>,<ScrollX>,<ScrollY> 
#mapdata
\n<TileNumber>,<Bounds>,<MapCode>
#end mapdata
#end map
<SequenceCount>
#sequence
<SequenceNumber>
<SequenceLength>
#sequencedata
\n<TileNumber>
#end sequencedata
#end sequence
#end tileset
#end file

License[edit]

Tile Studio is free open source software under the Mozilla Public License (with the exception of the .tsd files and any code that is copied to the output, that is public domain). So Tile Studio can be used for projects that are under any license.

External links[edit]