Skip to main content

Module tileset

Module tileset 

Source
Expand description

Tileset configuration: codepage mappings, options, builder, and error types.

This module defines the public API for configuring PNG sprite sheet tilesets that overlay or replace BitmapFont glyphs. A tileset is a sprite sheet PNG sliced into equally sized tiles, each mapped to a Unicode codepoint via a Codepage; SpriteCache decodes and indexes those tiles for lookup by glyph at draw time.

Structs§

TilesetBuilder
Builder for TilesetOptions.
TilesetOptions
Options for loading a single tileset (sprite sheet).

Enums§

Codepage
Maps row-major tile indices in a sprite sheet to Unicode codepoints.
SheetColor
What a tileset’s pixels mean, which decides how its sprites respond to the cell’s foreground color.
SpriteAlign
Where a sprite sits inside the multi-cell box a span reserves for it.
TilesetError
Errors that can occur during tileset validation or decoding.

Constants§

CP437_TO_UNICODE
Standard IBM CP437 to Unicode mapping, 256 entries.