Browse files

Adding code listing for drawing

  • Loading branch information...
1 parent 863b8ea commit 2040e1d127247c975101fd4ce545702621ccbb0f @kthakore kthakore committed Aug 28, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 code_listings/drawing.pl
View
12 code_listings/drawing.pl
@@ -0,0 +1,12 @@
+use strict;
+use warnings;
+
+use SDL;
+use SDLx::App;
+my $app = SDLx::App->new(width => 400, height => 400, title => 'Pong - A clone');
+
+$app->draw_rect([ 10, 20, 40 , 40], [255,255,255,255]);
+
+$app->update();
+
+sleep(2);

0 comments on commit 2040e1d

Please sign in to comment.