diff --git a/src/04-game.pod b/src/04-game.pod index d71489a..ef84228 100644 --- a/src/04-game.pod +++ b/src/04-game.pod @@ -4,7 +4,7 @@ The simplest game loop can be boiled down to the following. -=for programlisting +=begin programlisting while(!$quit) { @@ -13,7 +13,7 @@ The simplest game loop can be boiled down to the following. render(); } -=for programlisting +=end programlisting In C we get events from what input devices that we need. It is important to process events first to prevent lag. In C we update the game state according to animations and the events captured. In C we will update the screen and show the game to the player. diff --git a/src/06-tetris.pod b/src/06-tetris.pod index 56afdfc..be22605 100644 --- a/src/06-tetris.pod +++ b/src/06-tetris.pod @@ -4,7 +4,7 @@ Making a screen: =begin programlisting - use SDL: + use SDL; use SDLx::App; SDLx::App->new(); diff --git a/src/07-music_and_sound.pod b/src/07-music_and_sound.pod index 56afdfc..be22605 100644 --- a/src/07-music_and_sound.pod +++ b/src/07-music_and_sound.pod @@ -4,7 +4,7 @@ Making a screen: =begin programlisting - use SDL: + use SDL; use SDLx::App; SDLx::App->new(); diff --git a/src/08-CPAN.pod b/src/08-CPAN.pod index 56afdfc..be22605 100644 --- a/src/08-CPAN.pod +++ b/src/08-CPAN.pod @@ -4,7 +4,7 @@ Making a screen: =begin programlisting - use SDL: + use SDL; use SDLx::App; SDLx::App->new(); diff --git a/src/09-profiling.pod b/src/09-profiling.pod index 56afdfc..be22605 100644 --- a/src/09-profiling.pod +++ b/src/09-profiling.pod @@ -4,7 +4,7 @@ Making a screen: =begin programlisting - use SDL: + use SDL; use SDLx::App; SDLx::App->new();