NAME
Game::3D::Level - a class containing one level (loaded from a file)
SYNOPSIS
use Game::3D::Level;
my $level = Game::3D::Level->new( file => 'filename' );
$level->render();
EXPORTS
Exports nothing on default.
DESCRIPTION
This package provides a base class for shapes/areas in 3D space.
METHODS
It features all the methods of Game::3D::Point (namely: new(), _init(), x(), y(), z() and pos()) plus:
- width()
-
print $area->width(); $area->width(123);
Set and return or just return the area's width (size along the X axis).
- length()
-
print $area->length(); $area->length(123);
Set and return or just return the area's length (size along the Y axis).
- height()
-
print $area->height(); $area->height(123);
Set and return or just return the area's height (size along the Z axis).
- brushes()
-
print $level->brushes();
Return the number of brushes inside the level.
- size()
-
print join (" ", $area->size()); $area->size(123,456,-1); # set X,Y and Z $area->size(undef,undef,1); # set only Z
Set and return or just return the area's size along the three axes.
AUTHORS
(c) 2003, Tels <http://bloodgate.com/>
SEE ALSO
Game::3D::Area as well as SDL:App::FPS, SDL::App and SDL.