Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kthakore
committed
Oct 12, 2010
1 parent
98a0650
commit c769947
Showing
2 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |