| 1 | package Game::HeroesVsAliens::Projectile::Pink; | ||
| 2 | |||
| 3 | use Moo; | ||
| 4 | |||
| 5 | with 'Game::HeroesVsAliens::Role::Projectile'; | ||
| 6 | |||
| 7 | has power => ( | ||
| 8 | is => 'rw', | ||
| 9 | default => sub { 40 } | ||
| 10 | ); | ||
| 11 | |||
| 12 | has sprite => ( | ||
| 13 | is => 'rw', | ||
| 14 | default => sub { | ||
| 15 | my $sprite = SDLx::Sprite::Animated->new( | ||
| 16 | image => $_[0]->resource_directory . 'resources/girl-hero-projectile.png', | ||
| 17 | width => 32, | ||
| 18 | height => 32, | ||
| 19 | ); | ||
| 20 | } | ||
| 21 | ); | ||
| 22 | |||
| 23 | has explode_sprite => ( | ||
| 24 | is => 'rw', | ||
| 25 | default => sub { | ||
| 26 | my $sprite = SDLx::Sprite::Animated->new( | ||
| 27 | image => $_[0]->resource_directory . 'resources/girl-hero-explode-projectile.png', | ||
| 28 | width => 32, | ||
| 29 | height => 32, | ||
| 30 | ); | ||
| 31 | } | ||
| 32 | ); | ||
| 33 | |||
| 34 | 1; |