Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'SDLx_animated' of github.com:kthakore/SDL_perl

  • Loading branch information...
commit 3add30bb4331cd75826ada04356c97bb154145df 2 parents 5c87976 + 74ebde0
@kthakore kthakore authored
Showing with 7 additions and 0 deletions.
  1. +3 −0  .gitignore
  2. +4 −0 t/sdlx_sprite_animated.t
View
3  .gitignore
@@ -6,6 +6,8 @@ nytprof*
lib/SDLx/*.c
lib/SDLx/*.xs
lib/SDLx/*_def.old
+lib/SDLx/Controller/*.c
+lib/SDLx/Controller/*.xs
lib/SDL/*.c
lib/SDL/*.xs
lib/SDL/*_def.old
@@ -24,6 +26,7 @@ lib/SDL/Pango/*_def.old
lib/SDL/TTF/*.c
lib/SDL/TTF/*.xs
lib/SDL/TTF/*_def.old
+SDLPerl.app
SDL_perl.c
SDL_perl.xs
SDL_perl_def.old
View
4 t/sdlx_sprite_animated.t
@@ -153,6 +153,10 @@ is( $rect->y, 0, 'rect->y after third next' );
is( $rect->w, 48, 'rect->w after third next' );
is( $rect->h, 48, 'rect->h after third next' );
+is( $sprite->next, $sprite, 'next() returns the object' );
+is( $sprite->previous, $sprite, 'previous() returns the object' );
+is( $sprite->reset, $sprite, 'reset() returns the object' );
+
$sprite = SDLx::Sprite::Animated->new(
image => 'test/data/hero.bmp',
rect => SDL::Rect->new( 40, 50, 48, 48 ),
Please sign in to comment.
Something went wrong with that request. Please try again.