SDL::SpriteParrot class representing sprites in Parrot SDL | |
Download |
SDL::Sprite Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- chromatic
- Publisher web site:
- http://search.cpan.org/~chromatic/Crypt-CipherSaber-1.00/lib/Crypt/CipherSaber.pm
SDL::Sprite Tags
SDL::Sprite Description
Parrot class representing sprites in Parrot SDL SDL::Sprite is a parrot class representing sprites in Parrot SDL.SYNOPSIS # load this library load_bytecode 'library/SDL/Sprite.pir' # ... load a new SDL::Image into image # create a new SDL::Sprite object .local pmc sprite sprite = new 'SDL::Sprite' # set the sprite's arguments sprite.'init'( 'surface' => image, 'source_x' => 0, 'source_y' => 0, 'dest_x' => 270, 'dest_y' => 212, 'bgcolor' => black ) # if the image has multiple tiles that represent animation frames, set the # width and height of each tile # 'width' => 100, 'height' => 56 # ... draw the sprite to surfaces as you willA SDL::Sprite object represents an image and its position. By changing the coordinates of the sprite, you'll change its position when it draws itself to a surface.This is a class in progress; it has to represent several different drawing styles. Requirements: · Perl
SDL::Sprite Related Software