0x33,
);
-
my $grect = SDL::Game::Rect->new(10, 10, 30, 35);
foreach(0..80)
{
$app->fill_rect($rect, $blue);
$app->fill_rect($grect, $col);
-
- $app->update_rects($rect);
- $app->update_rects($grect);
- $app->sync;
+ SDL::Surface::update_rect($app, 0, 0, 640, 480);
+ SDL::Delay(10);
}
- sleep(1);
+ SDL::Delay(100);