diff options
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 | |||
338 | /*calculate paddle y-position */ | 338 | /*calculate paddle y-position */ |
339 | #define PAD_POS_Y (GAMESCREEN_HEIGHT - PAD_HEIGHT - 1) | 339 | #define PAD_POS_Y (GAMESCREEN_HEIGHT - PAD_HEIGHT - 1) |
340 | 340 | ||
341 | int levels_num = 29; | 341 | /* change to however many levels there are, i.e. how many arrays there are total */ |
342 | 342 | int levels_num = 40; | |
343 | static unsigned char levels[29][8][10] = | 343 | |
344 | /* change the first number in [ ] to however many levels there are (levels_num) */ | ||
345 | static unsigned char levels[40][8][10] = | ||
346 | /* You can set up new levels with the level editor | ||
347 | ( http://plugbox.rockbox-lounge.de/brickmania.htm ). | ||
348 | With 0x1, it refers to the first brick in the bitmap, 0x2 would refer to the | ||
349 | second, ect., 0x0 leaves a empty space. If you add a 2 before the 2nd number, | ||
350 | it will take two hits to break, and 3 hits if you add a 3. That is 0x24, will | ||
351 | result with the fourth brick being displayed and having take 2 hits to break. | ||
352 | You could do the same with the 3, just replace the 2 with a 3 for it to take | ||
353 | three hits to break it apart. */ | ||
344 | { | 354 | { |
345 | { /* level1 */ | 355 | { /* level1 */ |
346 | {0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1}, | 356 | {0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1}, |
@@ -622,14 +632,124 @@ static unsigned char levels[29][8][10] = | |||
622 | {0x24,0x24,0x4,0x4,0x4,0x4,0x0,0x0,0x24,0x4}, | 632 | {0x24,0x24,0x4,0x4,0x4,0x4,0x0,0x0,0x24,0x4}, |
623 | {0x1,0x1,0x1,0x1,0x1,0x1,0x21,0x21,0x1,0x1} | 633 | {0x1,0x1,0x1,0x1,0x1,0x1,0x21,0x21,0x1,0x1} |
624 | }, | 634 | }, |
635 | { /* level 29 UK Flag by Seth Opgenorth */ | ||
636 | {0x32,0x0,0x3,0x3,0x2,0x2,0x3,0x3,0x0,0x32}, | ||
637 | {0x0,0x2,0x0,0x3,0x32,0x22,0x33,0x0,0x32,0x0}, | ||
638 | {0x33,0x0,0x22,0x0,0x2,0x2,0x0,0x2,0x0,0x33}, | ||
639 | {0x22,0x32,0x2,0x2,0x2,0x2,0x2,0x2,0x22,0x2}, | ||
640 | {0x3,0x0,0x0,0x32,0x22,0x2,0x2,0x0,0x0,0x3}, | ||
641 | {0x23,0x0,0x32,0x0,0x32,0x2,0x0,0x2,0x0,0x3}, | ||
642 | {0x0,0x2,0x0,0x3,0x2,0x2,0x3,0x0,0x22,0x0}, | ||
643 | {0x32,0x0,0x3,0x23,0x2,0x2,0x23,0x33,0x0,0x32} | ||
644 | }, | ||
645 | { /* level 30 Win-Logo by Seth Opgenorth */ | ||
646 | {0x0,0x0,0x0,0x22,0x0,0x0,0x0,0x0,0x0,0x0}, | ||
647 | {0x0,0x0,0x32,0x2,0x2,0x25,0x0,0x5,0x0,0x0}, | ||
648 | {0x0,0x0,0x2,0x22,0x2,0x5,0x5,0x35,0x0,0x0}, | ||
649 | {0x0,0x0,0x2,0x1,0x2,0x5,0x5,0x25,0x0,0x0}, | ||
650 | {0x0,0x0,0x21,0x1,0x1,0x36,0x7,0x26,0x0,0x0}, | ||
651 | {0x0,0x0,0x1,0x1,0x1,0x6,0x6,0x6,0x0,0x0}, | ||
652 | {0x0,0x0,0x21,0x0,0x21,0x6,0x6,0x26,0x0,0x0}, | ||
653 | {0x0,0x0,0x0,0x0,0x0,0x0,0x6,0x0,0x0,0x0} | ||
654 | }, | ||
655 | { /* level 31 Color wave/V by Seth Opgenorth */ | ||
656 | {0x25,0x34,0x2,0x31,0x33,0x23,0x1,0x2,0x34,0x5}, | ||
657 | {0x3,0x5,0x24,0x2,0x1,0x1,0x2,0x4,0x5,0x3}, | ||
658 | {0x1,0x3,0x5,0x4,0x2,0x2,0x4,0x5,0x3,0x1}, | ||
659 | {0x2,0x1,0x33,0x35,0x4,0x4,0x5,0x33,0x1,0x22}, | ||
660 | {0x31,0x22,0x1,0x3,0x5,0x25,0x3,0x1,0x2,0x31}, | ||
661 | {0x3,0x1,0x2,0x1,0x3,0x3,0x1,0x2,0x21,0x3}, | ||
662 | {0x5,0x23,0x1,0x32,0x1,0x1,0x2,0x1,0x3,0x5}, | ||
663 | {0x4,0x35,0x3,0x1,0x2,0x22,0x31,0x3,0x5,0x4} | ||
664 | }, | ||
665 | { /* level 32 Sweedish Flag by Seth Opgenorth */ | ||
666 | {0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3}, | ||
667 | {0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3}, | ||
668 | {0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3}, | ||
669 | {0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36}, | ||
670 | {0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36}, | ||
671 | {0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3}, | ||
672 | {0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3}, | ||
673 | {0x3,0x3,0x3,0x36,0x3,0x3,0x3,0x3,0x3,0x3} | ||
674 | }, | ||
675 | { /* level 33 Color Pyramid by Seth Opgenorth */ | ||
676 | {0x0,0x0,0x0,0x0,0x2,0x2,0x0,0x0,0x0,0x0}, | ||
677 | {0x0,0x0,0x0,0x4,0x24,0x4,0x24,0x0,0x0,0x0}, | ||
678 | {0x0,0x0,0x23,0x3,0x3,0x3,0x23,0x3,0x0,0x0}, | ||
679 | {0x0,0x0,0x25,0x5,0x25,0x35,0x5,0x35,0x0,0x0}, | ||
680 | {0x0,0x36,0x6,0x6,0x6,0x6,0x26,0x6,0x6,0x0}, | ||
681 | {0x0,0x7,0x7,0x7,0x7,0x25,0x27,0x7,0x27,0x0}, | ||
682 | {0x2,0x2,0x22,0x2,0x2,0x2,0x22,0x2,0x2,0x2}, | ||
683 | {0x21,0x1,0x1,0x31,0x1,0x21,0x1,0x1,0x31,0x1} | ||
684 | }, | ||
685 | { /* level 34 Rhombus by Seth Opgenorth */ | ||
686 | {0x0,0x0,0x0,0x0,0x3,0x33,0x0,0x0,0x0,0x0}, | ||
687 | {0x0,0x0,0x0,0x3,0x32,0x22,0x23,0x0,0x0,0x0}, | ||
688 | {0x0,0x0,0x3,0x2,0x24,0x4,0x2,0x23,0x0,0x0}, | ||
689 | {0x26,0x3,0x2,0x4,0x5,0x5,0x4,0x22,0x3,0x6}, | ||
690 | {0x36,0x3,0x2,0x34,0x5,0x5,0x4,0x2,0x3,0x36}, | ||
691 | {0x0,0x0,0x3,0x2,0x4,0x34,0x2,0x23,0x0,0x0}, | ||
692 | {0x0,0x0,0x0,0x23,0x2,0x2,0x3,0x0,0x0,0x0}, | ||
693 | {0x0,0x0,0x0,0x0,0x3,0x33,0x0,0x0,0x0,0x0} | ||
694 | }, | ||
695 | { /* level 35 PacMan Ghost by Seth Opgenorth */ | ||
696 | {0x0,0x0,0x0,0x0,0x2,0x32,0x2,0x0,0x0,0x0}, | ||
697 | {0x0,0x0,0x0,0x2,0x2,0x2,0x2,0x2,0x0,0x0}, | ||
698 | {0x0,0x0,0x2,0x24,0x4,0x2,0x4,0x4,0x32,0x0}, | ||
699 | {0x0,0x0,0x2,0x24,0x0,0x22,0x24,0x0,0x22,0x0}, | ||
700 | {0x0,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x0}, | ||
701 | {0x0,0x0,0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x0}, | ||
702 | {0x0,0x0,0x2,0x32,0x2,0x2,0x22,0x2,0x32,0x0}, | ||
703 | {0x0,0x0,0x0,0x22,0x0,0x32,0x0,0x22,0x0,0x0} | ||
704 | }, | ||
705 | { /* level 36 Star by Seth Opgenorth */ | ||
706 | {0x3,0x4,0x3,0x4,0x6,0x24,0x3,0x24,0x3,0x0}, | ||
707 | {0x24,0x0,0x0,0x6,0x6,0x6,0x0,0x0,0x4,0x0}, | ||
708 | {0x3,0x26,0x6,0x2,0x6,0x2,0x6,0x26,0x23,0x0}, | ||
709 | {0x4,0x0,0x6,0x6,0x36,0x6,0x6,0x0,0x4,0x0}, | ||
710 | {0x3,0x0,0x0,0x26,0x6,0x26,0x0,0x0,0x33,0x0}, | ||
711 | {0x34,0x0,0x6,0x6,0x0,0x6,0x6,0x0,0x4,0x0}, | ||
712 | {0x3,0x26,0x6,0x0,0x0,0x0,0x6,0x6,0x3,0x0}, | ||
713 | {0x4,0x3,0x4,0x23,0x24,0x3,0x4,0x33,0x4,0x0} | ||
714 | }, | ||
715 | { /* level 37 It's 8-Bit by Seth Opgenorth */ | ||
716 | {0x26,0x26,0x6,0x6,0x5,0x6,0x26,0x6,0x26,0x6}, | ||
717 | {0x2,0x2,0x22,0x3,0x3,0x0,0x0,0x0,0x4,0x0}, | ||
718 | {0x2,0x0,0x2,0x33,0x3,0x3,0x5,0x0,0x24,0x0}, | ||
719 | {0x32,0x2,0x2,0x33,0x0,0x23,0x0,0x4,0x4,0x4}, | ||
720 | {0x2,0x22,0x2,0x3,0x3,0x0,0x5,0x4,0x4,0x24}, | ||
721 | {0x2,0x0,0x2,0x23,0x0,0x3,0x25,0x0,0x4,0x0}, | ||
722 | {0x22,0x2,0x2,0x3,0x23,0x0,0x5,0x0,0x4,0x0}, | ||
723 | {0x6,0x26,0x6,0x36,0x6,0x36,0x6,0x6,0x6,0x6} | ||
724 | }, | ||
725 | { /* level 38 Linux by Seth Opgenorth */ | ||
726 | {0x27,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, | ||
727 | {0x7,0x0,0x0,0x0,0x33,0x0,0x23,0x0,0x0,0x0}, | ||
728 | {0x7,0x32,0x0,0x0,0x3,0x0,0x23,0x6,0x0,0x6}, | ||
729 | {0x37,0x0,0x0,0x0,0x23,0x0,0x3,0x6,0x0,0x26}, | ||
730 | {0x7,0x22,0x24,0x0,0x3,0x33,0x3,0x0,0x26,0x0}, | ||
731 | {0x37,0x22,0x24,0x24,0x4,0x0,0x0,0x0,0x26,0x0}, | ||
732 | {0x7,0x2,0x4,0x0,0x4,0x0,0x0,0x6,0x0,0x26}, | ||
733 | {0x7,0x27,0x4,0x0,0x34,0x0,0x0,0x6,0x0,0x26} | ||
734 | }, | ||
735 | { /* level 39 Colorful Squares by Seth Opgenorth*/ | ||
736 | {0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0}, | ||
737 | {0x0,0x4,0x5,0x5,0x5,0x5,0x5,0x5,0x4,0x0}, | ||
738 | {0x0,0x4,0x5,0x3,0x3,0x3,0x3,0x5,0x4,0x0}, | ||
739 | {0x0,0x4,0x5,0x3,0x4,0x4,0x3,0x5,0x4,0x0}, | ||
740 | {0x0,0x4,0x5,0x3,0x4,0x4,0x3,0x5,0x4,0x0}, | ||
741 | {0x0,0x4,0x5,0x3,0x3,0x3,0x3,0x5,0x4,0x0}, | ||
742 | {0x0,0x4,0x5,0x5,0x5,0x5,0x5,0x5,0x4,0x0}, | ||
743 | {0x0,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x4,0x0} | ||
744 | }, | ||
625 | { /* TheEnd */ | 745 | { /* TheEnd */ |
626 | {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, | 746 | {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}, |
627 | {0x22,0x22,0x26,0x0,0x0,0x26,0x24,0x24,0x0,0x0}, | 747 | {0x32,0x32,0x36,0x0,0x0,0x36,0x34,0x34,0x0,0x0}, |
628 | {0x22,0x0,0x26,0x26,0x0,0x26,0x24,0x0,0x24,0x0}, | 748 | {0x32,0x0,0x36,0x36,0x0,0x36,0x34,0x0,0x34,0x0}, |
629 | {0x22,0x22,0x26,0x26,0x0,0x26,0x24,0x0,0x24,0x0}, | 749 | {0x32,0x32,0x36,0x36,0x0,0x36,0x34,0x0,0x34,0x0}, |
630 | {0x22,0x22,0x26,0x0,0x26,0x26,0x24,0x0,0x24,0x0}, | 750 | {0x32,0x32,0x36,0x0,0x36,0x36,0x34,0x0,0x34,0x0}, |
631 | {0x22,0x0,0x26,0x0,0x26,0x26,0x24,0x0,0x24,0x0}, | 751 | {0x32,0x0,0x36,0x0,0x36,0x36,0x34,0x0,0x34,0x0}, |
632 | {0x22,0x22,0x26,0x0,0x0,0x26,0x24,0x24,0x0,0x0}, | 752 | {0x32,0x32,0x36,0x0,0x0,0x36,0x34,0x34,0x0,0x0}, |
633 | {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0} | 753 | {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0} |
634 | } | 754 | } |
635 | }; | 755 | }; |