complete tile drawing support in Data::StarCraft::Tileset
authorShiar <shiar@shiar.org>
Wed, 9 Jul 2008 22:04:34 +0000 (00:04 +0200)
committerShiar <shiar@shiar.org>
Wed, 9 Jul 2008 22:13:11 +0000 (00:13 +0200)
commitd4581a2bec64edc2357aef32345819ee2917b279
tree4711c45de64b5e3c5530673778dc7e24d3e5416c
parent4e5d2696326f3562419f2fa5c3b2f81611c6af49
complete tile drawing support in Data::StarCraft::Tileset

Read minitile data (including full bitmaps) and palette.

Several new methods to get tile information:
- tile gives general details, including an image of one pixel per
  minitile.
- tileavg aggregates all minitile data to just one total per tile,
  including the average color of all minitiles.
- sprite gives the full bitmap of any tile.

Replaces manual guesswork in Data::StarCraft::Map and conversion in
scmap.
Data-StarCraft/lib/Data/StarCraft/Map.pm
Data-StarCraft/lib/Data/StarCraft/Tileset.pm
scmap