Warning: mysqli_real_connect(): Headers and client library minor version mismatch. Headers:50625 Library:50543 in /sites/rockbox.org/flyspray/adodb/drivers/adodb-mysqli.inc.php on line 108 Index: apps/plugins/brickmania.c =================================================================== --- apps/plugins/brickmania.c (revision 23002) +++ apps/plugins/brickmania.c (working copy) @@ -338,9 +338,16 @@ /*calculate paddle y-position */ #define PAD_POS_Y (GAMESCREEN_HEIGHT - PAD_HEIGHT - 1) -int levels_num = 29; +int levels_num = 40; /*change the number after the = sign to however many levels there are, i.e. how many arrays there are total */ -static unsigned char levels[29][8][10] = +static unsigned char levels[40][8][10] = { /*change the first number in [ ] to however many levels there are (should match the one above */ + + /*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 +629,124 @@ {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} } };