| 1 | ########################################################################## | ||
| 2 | package Games::PangZero::DemoPlaybackGame; | ||
| 3 | ########################################################################## | ||
| 4 | |||
| 5 | @ISA = qw(Games::PangZero::DemoGame Games::PangZero::PlaybackGame); | ||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | |||
| 9 | sub new { | ||
| 10 | my $class = shift; | ||
| 11 | my $self = Games::PangZero::PlaybackGame->new(@_); | ||
| 12 | bless $self, $class; | ||
| 13 | } | ||
| 14 | |||
| 15 | sub DrawScoreBoard { | ||
| 16 | my $self = shift; | ||
| 17 | my $x = 10; | ||
| 18 | my $y = $Games::PangZero::ScreenHeight + 2 * $Games::PangZero::ScreenMargin + 5; | ||
| 19 | if ($self->{anim} < 1) { | ||
| 20 | SDLx::SFont::print_text( $Games::PangZero::Background, $x, $y, "Press F to fast forward" ); | ||
| 21 | SDLx::SFont::print_text( $Games::PangZero::App, $x, $y, "Press F to fast forward" ); | ||
| 22 | } return; | ||
| 23 | SDL::Video::fill_rect($Games::PangZero::App, SDL::Rect->new(0, $y, $Games::PangZero::PhysicalScreenWidth, $Games::PangZero::PhysicalScreenHeight - $y), SDL::Color->new(0, 0, 0) ); | ||
| 24 | SDLx::SFont::print_text( $Games::PangZero::App, $x, $y, $self->{recordpointer} ); | ||
| 25 | |||
| 26 | } |