Skip to content

Commit

Permalink
Added tetris outline
Browse files Browse the repository at this point in the history
  • Loading branch information
kthakore committed Oct 12, 2010
1 parent 98a0650 commit c769947
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down
55 changes: 43 additions & 12 deletions 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.