diff --git a/Makefile b/Makefile index 388382b..ed9c351 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ else src/02-drawing.pod \ src/03-events.pod \ src/04-game.pod \ - src/05-pong.pod + src/05-pong.pod \ + src/06-tetris.pod endif default: prepare pdf clean diff --git a/src/06-tetris.pod b/src/06-tetris.pod index be22605..c3faadd 100644 --- a/src/06-tetris.pod +++ b/src/06-tetris.pod @@ -1,20 +1,51 @@ -=head0 The Basics +=head0 Tetris -Making a screen: +=head1 Data Structures -=begin programlisting +A design for data structures is very important to do before making a game. + +=head2 Considerations + +=head3 CPU + +Will the data structure be access in the game loop + +=head3 Memory + +Will it be loaded up a lot + +=head3 Programmer's Sanity + +Will it be gorkable to the programmer. + +=head1 Game flow + +=head2 Considerations + +=head3 Refactor the first draft + +=head1 Collisions + +What is colliding to what? + +=head2 Considerations + +=head3 Dynamic + +Are both colliders going to collide? + +=head3 Direction of Collisions + +Multiple directions of collisions? + +=head3 Game Events + +Should they trigger a game event? React? + +=head2 The Game - use SDL; - use SDLx::App; - SDLx::App->new(); - - sleep( 2 ); - -=end programlisting -This makes a screen as below: -WIP =for vim: spell