$sprite_number = $sprites->create("/path/to/filename", 10, 20);

Create will load an image file (right now, only xpm format) from disk and make a sprite out of it. The two numbers are the x and y positi on on the canvas.

$sprites->show( $sprite_number );

Makes the sprite appear on the canvas

$sprites->hide( $sprite_number );

Make the sprite picture disappear from the canvas. Note that it can still collide with other sprites. If you don't want it to hit anythi ng, move it out of the way or ignore it in your own collision handler.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

pg 2009/10/06-13:53:11 dev HandleError DBD::Pg::db do failed: no connection to the server DBI::db=HASH(0x1229568) 7 no connection to the server

2009/06/02-19:37:35 dev HandleError DBD::Pg::st execute failed: FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. DBI::st=HASH(0x271b688) 7 FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.

2009/06/02-19:37:35 dev err_parse st0 ret1 wdi= di= fa= 1 er= 300 1000 fatal 57P01 2009/06/02-19:37:36 dev HandleError DBD::Pg::st execute failed: no connection to the server DBI::st=HASH(0x271b718) 7 no connection to the server

2009/06/02-19:37:39 dev HandleError DBD::Pg::db do failed: no connection to the server DBI::db=HASH(0x1209d38) 7 no connection to the server

$work

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 18:

'=item' outside of any '=over'

=over without closing =back

Around line 84:

Unknown directive: =copyright

Around line 102:

Unknown directive: =c

Around line 617:

Unknown directive: =c