Skip to content

Commit

Permalink
fix a perl syntax error in the stub code so that extract_programlisting
Browse files Browse the repository at this point in the history
does not grump to much
  • Loading branch information
cfedde committed Oct 9, 2010
1 parent 50d7dbd commit 672c329
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/04-game.pod
Expand Up @@ -4,7 +4,7 @@

The simplest game loop can be boiled down to the following.

=for programlisting
=begin programlisting

while(!$quit)
{
Expand All @@ -13,7 +13,7 @@ The simplest game loop can be boiled down to the following.
render();
}

=for programlisting
=end programlisting

In C<get_events()> we get events from what input devices that we need. It is important to process events first to prevent lag.
In C<calculate_next_positions> we update the game state according to animations and the events captured. In C<render()> we will update the screen and show the game to the player.
Expand Down
2 changes: 1 addition & 1 deletion src/06-tetris.pod
Expand Up @@ -4,7 +4,7 @@ Making a screen:

=begin programlisting

use SDL:
use SDL;
use SDLx::App;

SDLx::App->new();
Expand Down
2 changes: 1 addition & 1 deletion src/07-music_and_sound.pod
Expand Up @@ -4,7 +4,7 @@ Making a screen:

=begin programlisting

use SDL:
use SDL;
use SDLx::App;

SDLx::App->new();
Expand Down
2 changes: 1 addition & 1 deletion src/08-CPAN.pod
Expand Up @@ -4,7 +4,7 @@ Making a screen:

=begin programlisting

use SDL:
use SDL;
use SDLx::App;

SDLx::App->new();
Expand Down
2 changes: 1 addition & 1 deletion src/09-profiling.pod
Expand Up @@ -4,7 +4,7 @@ Making a screen:

=begin programlisting

use SDL:
use SDL;
use SDLx::App;

SDLx::App->new();
Expand Down

0 comments on commit 672c329

Please sign in to comment.