summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorFelix Arends <edx@rockbox.org>2002-04-28 09:10:47 +0000
committerFelix Arends <edx@rockbox.org>2002-04-28 09:10:47 +0000
commitca3d6dc5dc7af97e41c9a3d9ee1f57b2b214c86e (patch)
tree7dd90541262ce1fb15d806b79f661b477fd6c497 /uisimulator
parent2ca73a8c7a57aa00704b84b526a4810ae89d47a6 (diff)
commented and explained block_data array
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@294 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/tetris.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/uisimulator/tetris.c b/uisimulator/tetris.c
index 53dace345d..31abe5ae36 100644
--- a/uisimulator/tetris.c
+++ b/uisimulator/tetris.c
@@ -45,6 +45,21 @@ char virtual[LCD_WIDTH*LCD_HEIGHT];
short level_speeds[10] = {1000,900,800,700,600,500,400,300,250,200};
int blocks = 7;
int block_frames[7] = {1,2,2,2,4,4,4};
+
+/*
+ block_data is built up the following way
+
+ first array index specifies the block number
+ second array index specifies the rotation of the block
+ third array index specifies:
+ 0: x-coordinates of pixels
+ 1: y-coordinates of pixels
+ fourth array index specifies the coordinate of a pixel
+
+ each block consists of four pixels whose relative coordinates are given
+ with block_data
+*/
+
int block_data[7][4][2][4] =
{
{