Game-Marad
view release on metacpan or search on metacpan
}
}
}
sub move_winch {
my ($app) = @_;
$app->{dirty} = 1;
return NEXT_EVENT;
}
sub update {
my ($app) = @_;
if ( $app->{dirty} ) {
touchwin;
move 0, 0;
clrtobot;
my $score = $app->{game}->score;
if ( $score->[0] >= VICTORY ) {
victory(1);
} elsif ( $score->[1] >= VICTORY ) {
( run in 4.325 seconds using v1.01-cache-2.11-cpan-94b05bcf43c )