NAME

TCOD::Tileset - ...

SYNOPSIS

use TCOD;

my $tileset = TCOD::Tileset->load_tilesheet(
    dist_file( TCOD => 'arial10x10.png' ),
    32, 8, TCOD::CHARMAP_TCOD,
);

DESCRIPTION

This class represents a terminal emulator for rendering text-based games.

METHODS

load_tilesheet

$tileset = TCOD::Tileset->load_tilesheet( $path, $cols, $rows, $charmap );

load_bdf

$tileset = TCOD::Tileset->load_bdf( $path );

tile_shape

( $height, $width ) = $tileset->tile_shape;

get_tile

$tile = $tilset->get_tile( $codepoint );

remap

$tileset->remap( $x, $y, $codepoint );

render

$tileset->render( $console );

SEE ALSO

TCOD
TCOD::Console
TCOD::Tileset

COPYRIGHT AND LICENSE

Copyright 2021 José Joaquín Atria

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.