Permalink
Browse files

Smaller faster animation

  • Loading branch information...
1 parent e505ffb commit 86cf103f1c4e0cc385ad27433224e9315c0c39de @jtpalmer committed Mar 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 week4/lib/Games/ElectricLines.pm
  2. BIN week4/share/plasma.bmp
@@ -41,9 +41,9 @@ sub _build_sprite {
my ($self) = @_;
my $sprite = SDLx::Sprite::Animated->new(
- rect => SDL::Rect->new( 0, 0, 526, 526 ),
+ rect => SDL::Rect->new( 0, 0, 50, 50 ),
image => File::Spec->catfile( $self->_share_dir, 'plasma.bmp' ),
- ticks_per_frame => 5,
+ ticks_per_frame => 2,
);
$sprite->start();
return $sprite;
View
Binary file not shown.

0 comments on commit 86cf103

Please sign in to comment.