Game-Marad
view release on metacpan or search on metacpan
248249250251252253254255256257258259260261262263264265266267268
}
}
}
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 0.234 second using v1.01-cache-2.11-cpan-94b05bcf43c )