GraphicsTemplates
From TTWiki
Revision as of 12:28, 11 June 2013 by Planetmaker (talk | contribs) (→Ground tiles: explain ground tile image a bit more)
This page shall just provide a list of templates for easy use and to avoid re-doing the alignment task
Landscape
Ground tiles
Normal terrain has 19 different slopes as in the order in the image above. Shown are the grid lines which are part of each ground tile.
template tmpl_groundsprites(x, y) { [ 0+x, y, 64, 31, -31, 0 ] [ 80+x, y, 64, 31, -31, 0 ] [ 160+x, y, 64, 23, -31, 0 ] [ 240+x, y, 64, 23, -31, 0 ] [ 320+x, y, 64, 31, -31, 0 ] [ 398+x, y, 64, 31, -31, 0 ] [ 478+x, y, 64, 23, -31, 0 ] [ 558+x, y, 64, 23, -31, 0 ] [ 638+x, y, 64, 39, -31, -8 ] [ 718+x, y, 64, 39, -31, -8 ] [ 798+x, y, 64, 31, -31, -8 ] [ 878+x, y, 64, 31, -31, -8 ] [ 958+x, y, 64, 39, -31, -8 ] [1038+x, y, 64, 39, -31, -8 ] [1118+x, y, 64, 31, -31, -8 ] [1196+x, y, 64, 47, -31,-16 ] [1276+x, y, 64, 15, -31, 0 ] [1356+x, y, 64, 31, -31, -8 ] [1436+x, y, 64, 31, -31, -8 ] }
There are four additional flat rough tiles. They need to be inserted after the usual 19 rough tiles:
template tmpl_rough(x, y) { tmpl_level_ground( x, y) tmpl_level_ground( 80+x, y) tmpl_level_ground(160+x, y) tmpl_level_ground(240+x, y) } template tmpl_additional_rough(x, y) { tmpl_rough(1510+x, y) }