Skip to content
Browse files

Added tetris outline

  • Loading branch information...
1 parent 98a0650 commit c769947ed5df4b6d6e53462a1d3ae8c00618a3ad @kthakore kthakore committed Oct 12, 2010
Showing with 45 additions and 13 deletions.
  1. +2 −1 Makefile
  2. +43 −12 src/06-tetris.pod
View
3 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
View
55 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

0 comments on commit c769947

Please sign in to comment.
Something went wrong with that request. Please try again.