Term::Caca::Sprite - an OO-interface to caca_sprite


Term-Caca documentation  | view source Contained in the Term-Caca distribution.

Index


NAME

Top

Term::Caca::Sprite - an OO-interface to caca_sprite

SYNOPSIS

Top

Basic usage

  use Term::Caca::Sprite;
  eval {
    my $sprite = Term::Caca::Sprite->new('/tmp/sprite.txt');
    my ($x, $y, $frame) = (8, 20, 0);
    $sprite->draw($x, $y, $frame);
  };
  # The destructor will take care of releasing memory.

DESCRIPTION

Top

a brief summary of the module written with users in mind.

METHODS

Top

new

...

Example:

load

The load() method is a synonym for new() and they can be used interchangably.

get_frames

...

Example:

get_width

...

Example:

get_height

...

Example:

get_dx

...

Example:

get_dy

...

Example:

draw

...

Example:

DESTROY

...

Example:

CLASS VARIABLES

Top

cvars

DIAGNOSTICS

Top

no errors

AUTHOR

Top

John BEPPU <beppu@cpan.org>

SEE ALSO

Top

perl(1)


Term-Caca documentation  | view source Contained in the Term-Caca distribution.