1
0
Fork 0
forked from len0rd/rockbox

FS#10661 by Seth Opgenorth, adding more levels to brickmania

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23012 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2009-10-08 19:26:07 +00:00
parent db44178a3f
commit 4f914fdd28

View file

@ -338,9 +338,19 @@ CONFIG_KEYPAD == SANSA_M200_PAD
/*calculate paddle y-position */
#define PAD_POS_Y (GAMESCREEN_HEIGHT - PAD_HEIGHT - 1)
int levels_num = 29;
/* change to however many levels there are, i.e. how many arrays there are total */
int levels_num = 40;
static unsigned char levels[29][8][10] =
/* change the first number in [ ] to however many levels there are (levels_num) */
static unsigned char levels[40][8][10] =
/* You can set up new levels with the level editor
( http://plugbox.rockbox-lounge.de/brickmania.htm ).
With 0x1, it refers to the first brick in the bitmap, 0x2 would refer to the
second, ect., 0x0 leaves a empty space. If you add a 2 before the 2nd number,
it will take two hits to break, and 3 hits if you add a 3. That is 0x24, will
result with the fourth brick being displayed and having take 2 hits to break.
You could do the same with the 3, just replace the 2 with a 3 for it to take
three hits to break it apart. */
{
{ /* level1 */
{0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1},
@ -622,14 +632,124 @@ static unsigned char levels[29][8][10] =
{0x24,0x24,0x4,0x4,0x4,0x4,0x0,0x0,0x24,0x4},
{0x1,0x1,0x1,0x1,0x1,0x1,0x21,0x21,0x1,0x1}
},
{ /* level 29 UK Flag by Seth Opgenorth */
{0x32,0x0,0x3,0x3,0x2,0x2,0x3,0x3,0x0,0x32},
{0x0,0x2,0x0,0x3,0x32,0x22,0x33,0x0,0x32,0x0},
{0x33,0x0,0x22,0x0,0x2,0x2,0x0,0x2,0x0,0x33},
{0x22,0x32,0x2,0x2,0x2,0x2,0x2,0x2,0x22,0x2},
{0x3,0x0,0x0,0x32,0x22,0x2,0x2,0x0,0x0,0x3},
{0x23,0x0,0x32,0x0,0x32,0x2,0x0,0x2,0x0,0x3},
{0x0,0x2,0x0,0x3,0x2,0x2,0x3,0x0,0x22,0x0},
{0x32,0x0,0x3,0x23,0x2,0x2,0x23,0x33,0x0,0x32}
},
{ /* level 30 Win-Logo by Seth Opgenorth */
{0x0,0x0,0x0,0x22,0x0,0x0,0x0,0x0,0x0,0x0},
{0x0,0x0,0x32,0x2,0x2,0x25,0x0,0x5,0x0,0x0},
{0x0,0x0,0x2,0x22,0x2,0x5,0x5,0x35,0x0,0x0},
{0x0,0x0,0x2,0x1,0x2,0x5,0x5,0x25,0x0,0x0},
{0x0,0x0,0x21,0x1,0x1,0x36,0x7,0x26,0x0,0x0},
{0x0,0x0,0x1,0x1,0x1,0x6,0x6,0x6,0x0,0x0},
{0x0,0x0,0x21,0x0,0x21,0x6,0x6,0x26,0x0,0x0},
{0x0,0x0,0x0,0x0,0x0,0x0,0x6,0x0,0x0,0x0}
},
{ /* level 31 Color wave/V by Seth Opgenorth */
{0x25,0x34,0x2,0x31,0x33,0x23,0x1,0x2,0x34,0x5},
{0x3,0x5,0x24,0x2,0x1,0x1,0x2,0x4,0x5,0x3},
{0x1,0x3,0x5,0x4,0x2,0x2,0x4,0x5,0x3,0x1},
{0x2,0x1,0x33,0x35,0x4,0x4,0x5,0x33,0x1,0x22},
{0x31,0x22,0x1,0x3,0x5,0x25,0x3,0x1,0x2,0x31},
{0x3,0x1,0x2,0x1,0x3,0x3,0x1,0x2,0x21,0x3},
{0x5,0x23,0x1,0x32,0x1,0x1,0x2,0x1,0x3,0x5},
{0x4,0x35,0x3,0x1,0x2,0x22,0x31,0x3,0x5,0x4}
},
{ /* level 32 Sweedish Flag by Seth Opgenorth */
{0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3},
{0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3},
{0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3},
{0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36},
{0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36},
{0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3},
{0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3},
{0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3}
},
{ /* level 33 Color Pyramid by Seth Opgenorth */
{0x0,0x0,0x0,0x0,0x2,0x2,0x0,0x0,0x0,0x0},
{0x0,0x0,0x0,0x4,0x24,0x4,0x24,0x0,0x0,0x0},
{0x0,0x0,0x23,0x3,0x3,0x3,0x23,0x3,0x0,0x0},
{0x0,0x0,0x25,0x5,0x25,0x35,0x5,0x35,0x0,0x0},
{0x0,0x36,0x6,0x6,0x6,0x6,0x26,0x6,0x6,0x0},
{0x0,0x7,0x7,0x7,0x7,0x25,0x27,0x7,0x27,0x0},
{0x2,0x2,0x22,0x2,0x2,0x2,0x22,0x2,0x2,0x2},
{0x21,0x1,0x1,0x31,0x1,0x21,0x1,0x1,0x31,0x1}
},
{ /* level 34 Rhombus by Seth Opgenorth */
{0x0,0x0,0x0,0x0,0x3,0x33,0x0,0x0,0x0,0x0},
{0x0,0x0,0x0,0x3,0x32,0x22,0x23,0x0,0x0,0x0},
{0x0,0x0,0x3,0x2,0x24,0x4,0x2,0x23,0x0,0x0},
{0x26,0x3,0x2,0x4,0x5,0x5,0x4,0x22,0x3,0x6},
{0x36,0x3,0x2,0x34,0x5,0x5,0x4,0x2,0x3,0x36},
{0x0,0x0,0x3,0x2,0x4,0x34,0x2,0x23,0x0,0x0},
{0x0,0x0,0x0,0x23,0x2,0x2,0x3,0x0,0x0,0x0},
{0x0,0x0,0x0,0x0,0x3,0x33,0x0,0x0,0x0,0x0}
},
{ /* level 35 PacMan Ghost by Seth Opgenorth */
{0x0,0x0,0x0,0x0,0x2,0x32,0x2,0x0,0x0,0x0},
{0x0,0x0,0x0,0x2,0x2,0x2,0x2,0x2,0x0,0x0},
{0x0,0x0,0x2,0x24,0x4,0x2,0x4,0x4,0x32,0x0},
{0x0,0x0,0x2,0x24,0x0,0x22,0x24,0x0,0x22,0x0},
{0x0,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x0},
{0x0,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x0},
{0x0,0x0,0x2,0x32,0x2,0x2,0x22,0x2,0x32,0x0},
{0x0,0x0,0x0,0x22,0x0,0x32,0x0,0x22,0x0,0x0}
},
{ /* level 36 Star by Seth Opgenorth */
{0x3,0x4,0x3,0x4,0x6,0x24,0x3,0x24,0x3,0x0},
{0x24,0x0,0x0,0x6,0x6,0x6,0x0,0x0,0x4,0x0},
{0x3,0x26,0x6,0x2,0x6,0x2,0x6,0x26,0x23,0x0},
{0x4,0x0,0x6,0x6,0x36,0x6,0x6,0x0,0x4,0x0},
{0x3,0x0,0x0,0x26,0x6,0x26,0x0,0x0,0x33,0x0},
{0x34,0x0,0x6,0x6,0x0,0x6,0x6,0x0,0x4,0x0},
{0x3,0x26,0x6,0x0,0x0,0x0,0x6,0x6,0x3,0x0},
{0x4,0x3,0x4,0x23,0x24,0x3,0x4,0x33,0x4,0x0}
},
{ /* level 37 It's 8-Bit by Seth Opgenorth */
{0x26,0x26,0x6,0x6,0x5,0x6,0x26,0x6,0x26,0x6},
{0x2,0x2,0x22,0x3,0x3,0x0,0x0,0x0,0x4,0x0},
{0x2,0x0,0x2,0x33,0x3,0x3,0x5,0x0,0x24,0x0},
{0x32,0x2,0x2,0x33,0x0,0x23,0x0,0x4,0x4,0x4},
{0x2,0x22,0x2,0x3,0x3,0x0,0x5,0x4,0x4,0x24},
{0x2,0x0,0x2,0x23,0x0,0x3,0x25,0x0,0x4,0x0},
{0x22,0x2,0x2,0x3,0x23,0x0,0x5,0x0,0x4,0x0},
{0x6,0x26,0x6,0x36,0x6,0x36,0x6,0x6,0x6,0x6}
},
{ /* level 38 Linux by Seth Opgenorth */
{0x27,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0},
{0x7,0x0,0x0,0x0,0x33,0x0,0x23,0x0,0x0,0x0},
{0x7,0x32,0x0,0x0,0x3,0x0,0x23,0x6,0x0,0x6},
{0x37,0x0,0x0,0x0,0x23,0x0,0x3,0x6,0x0,0x26},
{0x7,0x22,0x24,0x0,0x3,0x33,0x3,0x0,0x26,0x0},
{0x37,0x22,0x24,0x24,0x4,0x0,0x0,0x0,0x26,0x0},
{0x7,0x2,0x4,0x0,0x4,0x0,0x0,0x6,0x0,0x26},
{0x7,0x27,0x4,0x0,0x34,0x0,0x0,0x6,0x0,0x26}
},
{ /* level 39 Colorful Squares by Seth Opgenorth*/
{0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0},
{0x0,0x4,0x5,0x5,0x5,0x5,0x5,0x5,0x4,0x0},
{0x0,0x4,0x5,0x3,0x3,0x3,0x3,0x5,0x4,0x0},
{0x0,0x4,0x5,0x3,0x4,0x4,0x3,0x5,0x4,0x0},
{0x0,0x4,0x5,0x3,0x4,0x4,0x3,0x5,0x4,0x0},
{0x0,0x4,0x5,0x3,0x3,0x3,0x3,0x5,0x4,0x0},
{0x0,0x4,0x5,0x5,0x5,0x5,0x5,0x5,0x4,0x0},
{0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0}
},
{ /* TheEnd */
{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0},
{0x22,0x22,0x26,0x0,0x0,0x26,0x24,0x24,0x0,0x0},
{0x22,0x0,0x26,0x26,0x0,0x26,0x24,0x0,0x24,0x0},
{0x22,0x22,0x26,0x26,0x0,0x26,0x24,0x0,0x24,0x0},
{0x22,0x22,0x26,0x0,0x26,0x26,0x24,0x0,0x24,0x0},
{0x22,0x0,0x26,0x0,0x26,0x26,0x24,0x0,0x24,0x0},
{0x22,0x22,0x26,0x0,0x0,0x26,0x24,0x24,0x0,0x0},
{0x32,0x32,0x36,0x0,0x0,0x36,0x34,0x34,0x0,0x0},
{0x32,0x0,0x36,0x36,0x0,0x36,0x34,0x0,0x34,0x0},
{0x32,0x32,0x36,0x36,0x0,0x36,0x34,0x0,0x34,0x0},
{0x32,0x32,0x36,0x0,0x36,0x36,0x34,0x0,0x34,0x0},
{0x32,0x0,0x36,0x0,0x36,0x36,0x34,0x0,0x34,0x0},
{0x32,0x32,0x36,0x0,0x0,0x36,0x34,0x34,0x0,0x0},
{0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}
}
};