| 1 | ########################################################################## | ||
| 2 | package Games::PangZero::HalfCutter; | ||
| 3 | ########################################################################## | ||
| 4 | |||
| 5 | @ISA = qw(Games::PangZero::Harpoon); | ||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | |||
| 9 | sub Create { | ||
| 10 | return Games::PangZero::HalfCutter->new(@_); | ||
| 11 | } | ||
| 12 | |||
| 13 | sub new { | ||
| 14 | my $class = shift; | ||
| 15 | my $self = Games::PangZero::Harpoon->new(@_); | ||
| 16 | $self->{popEffect} = 'HalfCutter'; | ||
| 17 | $self->{originalSurface} = $self->{surface}; | ||
| 18 | bless $self, $class; | ||
| 19 | } | ||
| 20 | |||
| 21 | sub Advance { | ||
| 22 | my $self = shift; | ||
| 23 | |||
| 24 | $self->{surface} = (($Games::PangZero::Game->{anim} % 15) < 3) ? $Games::PangZero::WhiteHarpoonSurface : $self->{originalSurface}; | ||
| 25 | $self->SUPER::Advance(); | ||
| 26 | } | ||
| 27 | |||
| 28 | 1; |