diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-10-08 19:26:07 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-10-08 19:26:07 +0000 |
commit | 4f914fdd28453aedd40e9dd94aa2f31a76ffd81b (patch) | |
tree | c4627e8b9e610bf9167a20bbec33e997d7a3431a /apps/plugins | |
parent | db44178a3f01851dd45dc190b9d738cd49ae373d (diff) |
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
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/brickmania.c | 138 |
1 files changed, 129 insertions, 9 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 3412057111..6f921877a5 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -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; - -static unsigned char levels[29][8][10] = +/* change to however many levels there are, i.e. how many arrays there are total */ +int levels_num = 40; + +/* 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} } }; |