*decrease brickmania bitmaps files in the bitmaps folders. *fix break effect bitmaps of the nano and the x5.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10067 a1c6a512-1295-4272-9138-f99709370657
|
@ -18,20 +18,11 @@ bubbles_bubble.320x240x1.bmp
|
||||||
|
|
||||||
/* BrickMania */
|
/* BrickMania */
|
||||||
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
|
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
|
||||||
|
brickmania_menu_items.112x64x1.bmp
|
||||||
brickmania_bricks.112x64x1.bmp
|
brickmania_bricks.112x64x1.bmp
|
||||||
brickmania_ball.112x64x1.bmp
|
brickmania_ball.112x64x1.bmp
|
||||||
brickmania_help.112x64x1.bmp
|
|
||||||
brickmania_no_resume.112x64x1.bmp
|
|
||||||
brickmania_pads.112x64x1.bmp
|
brickmania_pads.112x64x1.bmp
|
||||||
brickmania_powerups.112x64x1.bmp
|
brickmania_powerups.112x64x1.bmp
|
||||||
brickmania_quit.112x64x1.bmp
|
|
||||||
brickmania_resume.112x64x1.bmp
|
|
||||||
brickmania_sel_help.112x64x1.bmp
|
|
||||||
brickmania_sel_resume.112x64x1.bmp
|
|
||||||
brickmania_sel_quit.112x64x1.bmp
|
|
||||||
brickmania_sel_start.112x64x1.bmp
|
|
||||||
brickmania_start.112x64x1.bmp
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 98 B |
BIN
apps/plugins/bitmaps/mono/brickmania_menu_items.112x64x1.bmp
Executable file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 170 B |
|
@ -139,24 +139,17 @@ brickmania_menu_bg.320x240x16.bmp
|
||||||
#else
|
#else
|
||||||
brickmania_menu_bg.220x176x16.bmp
|
brickmania_menu_bg.220x176x16.bmp
|
||||||
#endif
|
#endif
|
||||||
|
brickmania_menu_items.220x176x16.bmp
|
||||||
brickmania_ball.220x176x16.bmp
|
brickmania_ball.220x176x16.bmp
|
||||||
brickmania_bricks.220x176x16.bmp
|
brickmania_bricks.220x176x16.bmp
|
||||||
brickmania_gameover.220x176x16.bmp
|
brickmania_gameover.220x176x16.bmp
|
||||||
brickmania_help.220x176x16.bmp
|
|
||||||
brickmania_no_resume.220x176x16.bmp
|
|
||||||
brickmania_pads.220x176x16.bmp
|
brickmania_pads.220x176x16.bmp
|
||||||
brickmania_powerups.220x176x16.bmp
|
brickmania_powerups.220x176x16.bmp
|
||||||
brickmania_quit.220x176x16.bmp
|
|
||||||
brickmania_resume.220x176x16.bmp
|
|
||||||
brickmania_sel_help.220x176x16.bmp
|
|
||||||
brickmania_sel_resume.220x176x16.bmp
|
|
||||||
brickmania_sel_quit.220x176x16.bmp
|
|
||||||
brickmania_sel_start.220x176x16.bmp
|
|
||||||
brickmania_start.220x176x16.bmp
|
|
||||||
brickmania_break.220x176x16.bmp
|
brickmania_break.220x176x16.bmp
|
||||||
|
|
||||||
#elif (((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \
|
#elif (((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \
|
||||||
((LCD_WIDTH == 138) && (LCD_HEIGHT == 110))) && (LCD_DEPTH == 2)
|
((LCD_WIDTH == 138) && (LCD_HEIGHT == 110))) && (LCD_DEPTH == 2)
|
||||||
|
brickmania_menu_items.160x128x2.bmp
|
||||||
brickmania_ball.160x128x2.bmp
|
brickmania_ball.160x128x2.bmp
|
||||||
#if (LCD_WIDTH == 160)
|
#if (LCD_WIDTH == 160)
|
||||||
brickmania_bricks.160x128x2.bmp
|
brickmania_bricks.160x128x2.bmp
|
||||||
|
@ -164,54 +157,29 @@ brickmania_bricks.160x128x2.bmp
|
||||||
brickmania_bricks.138x110x2.bmp
|
brickmania_bricks.138x110x2.bmp
|
||||||
#endif
|
#endif
|
||||||
brickmania_gameover.160x128x2.bmp
|
brickmania_gameover.160x128x2.bmp
|
||||||
brickmania_help.160x128x2.bmp
|
|
||||||
brickmania_menu_bg.160x128x2.bmp
|
brickmania_menu_bg.160x128x2.bmp
|
||||||
brickmania_no_resume.160x128x2.bmp
|
|
||||||
brickmania_pads.160x128x2.bmp
|
brickmania_pads.160x128x2.bmp
|
||||||
brickmania_powerups.160x128x2.bmp
|
brickmania_powerups.160x128x2.bmp
|
||||||
brickmania_quit.160x128x2.bmp
|
|
||||||
brickmania_resume.160x128x2.bmp
|
|
||||||
brickmania_sel_help.160x128x2.bmp
|
|
||||||
brickmania_sel_resume.160x128x2.bmp
|
|
||||||
brickmania_sel_quit.160x128x2.bmp
|
|
||||||
brickmania_sel_start.160x128x2.bmp
|
|
||||||
brickmania_start.160x128x2.bmp
|
|
||||||
brickmania_break.160x128x2.bmp
|
brickmania_break.160x128x2.bmp
|
||||||
|
|
||||||
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 16)
|
#elif (LCD_WIDTH == 160) && (LCD_HEIGHT == 128) && (LCD_DEPTH == 16)
|
||||||
|
brickmania_menu_items.160x128x16.bmp
|
||||||
brickmania_ball.160x128x16.bmp
|
brickmania_ball.160x128x16.bmp
|
||||||
brickmania_bricks.160x128x16.bmp
|
brickmania_bricks.160x128x16.bmp
|
||||||
brickmania_gameover.160x128x16.bmp
|
brickmania_gameover.160x128x16.bmp
|
||||||
brickmania_help.160x128x16.bmp
|
|
||||||
brickmania_menu_bg.160x128x16.bmp
|
brickmania_menu_bg.160x128x16.bmp
|
||||||
brickmania_no_resume.160x128x16.bmp
|
|
||||||
brickmania_pads.160x128x16.bmp
|
brickmania_pads.160x128x16.bmp
|
||||||
brickmania_powerups.160x128x16.bmp
|
brickmania_powerups.160x128x16.bmp
|
||||||
brickmania_quit.160x128x16.bmp
|
|
||||||
brickmania_resume.160x128x16.bmp
|
|
||||||
brickmania_sel_help.160x128x16.bmp
|
|
||||||
brickmania_sel_resume.160x128x16.bmp
|
|
||||||
brickmania_sel_quit.160x128x16.bmp
|
|
||||||
brickmania_sel_start.160x128x16.bmp
|
|
||||||
brickmania_start.160x128x16.bmp
|
|
||||||
brickmania_break.160x128x16.bmp
|
brickmania_break.160x128x16.bmp
|
||||||
|
|
||||||
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) && (LCD_DEPTH == 16)
|
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) && (LCD_DEPTH == 16)
|
||||||
|
brickmania_menu_items.176x132x16.bmp
|
||||||
brickmania_ball.176x132x16.bmp
|
brickmania_ball.176x132x16.bmp
|
||||||
brickmania_bricks.176x132x16.bmp
|
brickmania_bricks.176x132x16.bmp
|
||||||
brickmania_gameover.176x132x16.bmp
|
brickmania_gameover.176x132x16.bmp
|
||||||
brickmania_help.176x132x16.bmp
|
|
||||||
brickmania_menu_bg.176x132x16.bmp
|
brickmania_menu_bg.176x132x16.bmp
|
||||||
brickmania_no_resume.176x132x16.bmp
|
|
||||||
brickmania_pads.176x132x16.bmp
|
brickmania_pads.176x132x16.bmp
|
||||||
brickmania_powerups.176x132x16.bmp
|
brickmania_powerups.176x132x16.bmp
|
||||||
brickmania_quit.176x132x16.bmp
|
|
||||||
brickmania_resume.176x132x16.bmp
|
|
||||||
brickmania_sel_help.176x132x16.bmp
|
|
||||||
brickmania_sel_resume.176x132x16.bmp
|
|
||||||
brickmania_sel_quit.176x132x16.bmp
|
|
||||||
brickmania_sel_start.176x132x16.bmp
|
|
||||||
brickmania_start.176x132x16.bmp
|
|
||||||
brickmania_break.176x132x16.bmp
|
brickmania_break.176x132x16.bmp
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
BIN
apps/plugins/bitmaps/native/brickmania_menu_items.160x128x16.bmp
Executable file
After Width: | Height: | Size: 40 KiB |
BIN
apps/plugins/bitmaps/native/brickmania_menu_items.160x128x2.bmp
Executable file
After Width: | Height: | Size: 40 KiB |
BIN
apps/plugins/bitmaps/native/brickmania_menu_items.176x132x16.bmp
Executable file
After Width: | Height: | Size: 38 KiB |
BIN
apps/plugins/bitmaps/native/brickmania_menu_items.220x176x16.bmp
Executable file
After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 720 B |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.6 KiB |
|
@ -106,21 +106,25 @@ PLUGIN_HEADER
|
||||||
|
|
||||||
static struct plugin_api* rb;
|
static struct plugin_api* rb;
|
||||||
|
|
||||||
|
enum menu_items {
|
||||||
|
BM_START,
|
||||||
|
BM_SEL_START,
|
||||||
|
BM_RESUME,
|
||||||
|
BM_SEL_RESUME,
|
||||||
|
BM_NO_RESUME,
|
||||||
|
BM_HELP,
|
||||||
|
BM_SEL_HELP,
|
||||||
|
BM_QUIT,
|
||||||
|
BM_SEL_QUIT,
|
||||||
|
};
|
||||||
|
|
||||||
/* External bitmaps */
|
/* External bitmaps */
|
||||||
#if (LCD_WIDTH != 112) && (LCD_HEIGHT != 64)
|
#if (LCD_WIDTH != 112) && (LCD_HEIGHT != 64)
|
||||||
extern const fb_data brickmania_menu_bg[];
|
extern const fb_data brickmania_menu_bg[];
|
||||||
extern const fb_data brickmania_gameover[];
|
extern const fb_data brickmania_gameover[];
|
||||||
#endif
|
#endif
|
||||||
|
extern const fb_data brickmania_menu_items[];
|
||||||
extern const fb_data brickmania_ball[];
|
extern const fb_data brickmania_ball[];
|
||||||
extern const fb_data brickmania_help[];
|
|
||||||
extern const fb_data brickmania_no_resume[];
|
|
||||||
extern const fb_data brickmania_quit[];
|
|
||||||
extern const fb_data brickmania_resume[];
|
|
||||||
extern const fb_data brickmania_sel_help[];
|
|
||||||
extern const fb_data brickmania_sel_quit[];
|
|
||||||
extern const fb_data brickmania_sel_resume[];
|
|
||||||
extern const fb_data brickmania_sel_start[];
|
|
||||||
extern const fb_data brickmania_start[];
|
|
||||||
#ifdef HAVE_LCD_COLOR
|
#ifdef HAVE_LCD_COLOR
|
||||||
extern const fb_data brickmania_break[];
|
extern const fb_data brickmania_break[];
|
||||||
#endif
|
#endif
|
||||||
|
@ -159,17 +163,8 @@ extern const fb_data brickmania_bricks[];
|
||||||
#define LEFTMARGIN 5
|
#define LEFTMARGIN 5
|
||||||
#define TOPMARGIN 30
|
#define TOPMARGIN 30
|
||||||
|
|
||||||
#define BMPHEIGHT_start 20
|
#define MENU_BMPHEIGHT 20
|
||||||
#define BMPWIDTH_start 112
|
#define MENU_BMPWIDTH 112
|
||||||
|
|
||||||
#define BMPHEIGHT_resume 17
|
|
||||||
#define BMPWIDTH_resume 96
|
|
||||||
|
|
||||||
#define BMPHEIGHT_help 19
|
|
||||||
#define BMPWIDTH_help 37
|
|
||||||
|
|
||||||
#define BMPHEIGHT_quit 19
|
|
||||||
#define BMPWIDTH_quit 33
|
|
||||||
|
|
||||||
#define BMPHEIGHT_powerup 6
|
#define BMPHEIGHT_powerup 6
|
||||||
#define BMPWIDTH_powerup 10
|
#define BMPWIDTH_powerup 10
|
||||||
|
@ -210,17 +205,8 @@ extern const fb_data brickmania_bricks[];
|
||||||
#define LEFTMARGIN 5
|
#define LEFTMARGIN 5
|
||||||
#define TOPMARGIN 21
|
#define TOPMARGIN 21
|
||||||
|
|
||||||
#define BMPHEIGHT_start 16
|
#define MENU_BMPHEIGHT 17
|
||||||
#define BMPWIDTH_start 88
|
#define MENU_BMPWIDTH 88
|
||||||
|
|
||||||
#define BMPHEIGHT_resume 14
|
|
||||||
#define BMPWIDTH_resume 78
|
|
||||||
|
|
||||||
#define BMPHEIGHT_help 15
|
|
||||||
#define BMPWIDTH_help 30
|
|
||||||
|
|
||||||
#define BMPHEIGHT_quit 17
|
|
||||||
#define BMPWIDTH_quit 30
|
|
||||||
|
|
||||||
#define BMPHEIGHT_powerup 6
|
#define BMPHEIGHT_powerup 6
|
||||||
#define BMPWIDTH_powerup 10
|
#define BMPWIDTH_powerup 10
|
||||||
|
@ -277,17 +263,8 @@ extern const fb_data brickmania_bricks[];
|
||||||
#define LEFTMARGIN 4
|
#define LEFTMARGIN 4
|
||||||
#define TOPMARGIN 10
|
#define TOPMARGIN 10
|
||||||
|
|
||||||
#define BMPHEIGHT_start 16
|
#define MENU_BMPHEIGHT 17
|
||||||
#define BMPWIDTH_start 88
|
#define MENU_BMPWIDTH 88
|
||||||
|
|
||||||
#define BMPHEIGHT_resume 14
|
|
||||||
#define BMPWIDTH_resume 78
|
|
||||||
|
|
||||||
#define BMPHEIGHT_help 15
|
|
||||||
#define BMPWIDTH_help 30
|
|
||||||
|
|
||||||
#define BMPHEIGHT_quit 17
|
|
||||||
#define BMPWIDTH_quit 30
|
|
||||||
|
|
||||||
#define BMPHEIGHT_powerup 6
|
#define BMPHEIGHT_powerup 6
|
||||||
#define BMPWIDTH_powerup 10
|
#define BMPWIDTH_powerup 10
|
||||||
|
@ -329,18 +306,8 @@ extern const fb_data brickmania_bricks[];
|
||||||
#define LEFTMARGIN 1
|
#define LEFTMARGIN 1
|
||||||
#define TOPMARGIN 10
|
#define TOPMARGIN 10
|
||||||
|
|
||||||
#define BMPHEIGHT_start 9
|
#define MENU_BMPHEIGHT 9
|
||||||
#define BMPWIDTH_start 80
|
#define MENU_BMPWIDTH 80
|
||||||
|
|
||||||
#define BMPHEIGHT_resume 7
|
|
||||||
#define BMPWIDTH_resume 71
|
|
||||||
|
|
||||||
#define BMPHEIGHT_help 9
|
|
||||||
#define BMPWIDTH_help 26
|
|
||||||
|
|
||||||
#define BMPHEIGHT_quit 9
|
|
||||||
#define BMPWIDTH_quit 25
|
|
||||||
|
|
||||||
|
|
||||||
#define BMPHEIGHT_powerup 6
|
#define BMPHEIGHT_powerup 6
|
||||||
#define BMPWIDTH_powerup 7
|
#define BMPWIDTH_powerup 7
|
||||||
|
@ -378,17 +345,8 @@ extern const fb_data brickmania_bricks[];
|
||||||
#define LEFTMARGIN 3
|
#define LEFTMARGIN 3
|
||||||
#define TOPMARGIN 21
|
#define TOPMARGIN 21
|
||||||
|
|
||||||
#define BMPHEIGHT_start 16
|
#define MENU_BMPHEIGHT 16
|
||||||
#define BMPWIDTH_start 89
|
#define MENU_BMPWIDTH 89
|
||||||
|
|
||||||
#define BMPHEIGHT_resume 13
|
|
||||||
#define BMPWIDTH_resume 76
|
|
||||||
|
|
||||||
#define BMPHEIGHT_help 14
|
|
||||||
#define BMPWIDTH_help 28
|
|
||||||
|
|
||||||
#define BMPHEIGHT_quit 14
|
|
||||||
#define BMPWIDTH_quit 25
|
|
||||||
|
|
||||||
#define BMPHEIGHT_powerup 6
|
#define BMPHEIGHT_powerup 6
|
||||||
#define BMPWIDTH_powerup 10
|
#define BMPWIDTH_powerup 10
|
||||||
|
@ -842,7 +800,6 @@ void sleep (int secs)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define HIGH_SCORE "brickmania.score"
|
#define HIGH_SCORE "brickmania.score"
|
||||||
#define MENU_LENGTH 4
|
#define MENU_LENGTH 4
|
||||||
int game_menu(int when)
|
int game_menu(int when)
|
||||||
|
@ -851,48 +808,117 @@ int game_menu(int when)
|
||||||
char str[10];
|
char str[10];
|
||||||
rb->lcd_clear_display();
|
rb->lcd_clear_display();
|
||||||
#if (LCD_WIDTH != 112) && (LCD_HEIGHT != 64)
|
#if (LCD_WIDTH != 112) && (LCD_HEIGHT != 64)
|
||||||
rb->lcd_bitmap(brickmania_menu_bg,0,0,BMPWIDTH_menu,BMPHEIGHT_menu);
|
rb->lcd_bitmap(brickmania_menu_bg, 0, 0, BMPWIDTH_menu, BMPHEIGHT_menu);
|
||||||
#endif
|
#endif
|
||||||
while (true) {
|
while (true) {
|
||||||
for(i=0;i<MENU_LENGTH;i++) {
|
for(i=0;i<MENU_LENGTH;i++) {
|
||||||
|
#ifdef HAVE_LCD_COLOR
|
||||||
if (cur==0)
|
if (cur==0)
|
||||||
rb->lcd_bitmap(brickmania_sel_start,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPXOFS_start,BMPYOFS_start,
|
MENU_BMPHEIGHT * BM_SEL_START, MENU_BMPWIDTH,
|
||||||
BMPWIDTH_start,BMPHEIGHT_start);
|
BMPXOFS_start, BMPYOFS_start, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
else
|
else
|
||||||
rb->lcd_bitmap(brickmania_start,BMPXOFS_start,BMPYOFS_start,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPWIDTH_start,BMPHEIGHT_start);
|
MENU_BMPHEIGHT * BM_START, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_start, BMPYOFS_start, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
|
||||||
if (when==1) {
|
if (when==1) {
|
||||||
if (cur==1)
|
if (cur==1)
|
||||||
rb->lcd_bitmap(brickmania_sel_resume,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPXOFS_resume,BMPYOFS_resume,
|
MENU_BMPHEIGHT * BM_SEL_RESUME, MENU_BMPWIDTH,
|
||||||
BMPWIDTH_resume,BMPHEIGHT_resume);
|
BMPXOFS_resume, BMPYOFS_resume, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
else
|
else
|
||||||
rb->lcd_bitmap(brickmania_resume,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPXOFS_resume,BMPYOFS_resume,
|
MENU_BMPHEIGHT * BM_RESUME, MENU_BMPWIDTH,
|
||||||
BMPWIDTH_resume,BMPHEIGHT_resume);
|
BMPXOFS_resume, BMPYOFS_resume, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
rb->lcd_bitmap(brickmania_no_resume,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPXOFS_resume,BMPYOFS_resume,
|
MENU_BMPHEIGHT * BM_NO_RESUME, MENU_BMPWIDTH,
|
||||||
BMPWIDTH_resume,BMPHEIGHT_resume);
|
BMPXOFS_resume, BMPYOFS_resume, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (cur==2)
|
if (cur==2)
|
||||||
rb->lcd_bitmap(brickmania_sel_help,BMPXOFS_help,BMPYOFS_help,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPWIDTH_help,BMPHEIGHT_help);
|
MENU_BMPHEIGHT * BM_SEL_HELP, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_help, BMPYOFS_help, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
else
|
else
|
||||||
rb->lcd_bitmap(brickmania_help,BMPXOFS_help,BMPYOFS_help,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPWIDTH_help,BMPHEIGHT_help);
|
MENU_BMPHEIGHT * BM_HELP, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_help, BMPYOFS_help, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
|
||||||
if (cur==3)
|
if (cur==3)
|
||||||
rb->lcd_bitmap(brickmania_sel_quit,BMPXOFS_quit,BMPYOFS_quit,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPWIDTH_quit,BMPHEIGHT_quit);
|
MENU_BMPHEIGHT * BM_SEL_QUIT, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_quit, BMPYOFS_quit, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
else
|
else
|
||||||
rb->lcd_bitmap(brickmania_quit,BMPXOFS_quit,BMPYOFS_quit,
|
rb->lcd_bitmap_transparent_part(brickmania_menu_items, 0,
|
||||||
BMPWIDTH_quit,BMPHEIGHT_quit);
|
MENU_BMPHEIGHT * BM_QUIT, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_quit, BMPYOFS_quit, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
#else
|
||||||
|
if (cur==0)
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_SEL_START, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_start, BMPYOFS_start, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
else
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_START, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_start, BMPYOFS_start, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
|
||||||
|
if (when==1) {
|
||||||
|
if (cur==1)
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_SEL_RESUME, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_resume, BMPYOFS_resume, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
else
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_RESUME, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_resume, BMPYOFS_resume, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_NO_RESUME, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_resume, BMPYOFS_resume, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (cur==2)
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_SEL_HELP, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_help, BMPYOFS_help, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
else
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_HELP, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_help, BMPYOFS_help, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
|
||||||
|
if (cur==3)
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_SEL_QUIT, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_quit, BMPYOFS_quit, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
else
|
||||||
|
rb->lcd_bitmap_part(brickmania_menu_items, 0,
|
||||||
|
MENU_BMPHEIGHT * BM_QUIT, MENU_BMPWIDTH,
|
||||||
|
BMPXOFS_quit, BMPYOFS_quit, MENU_BMPWIDTH,
|
||||||
|
MENU_BMPHEIGHT);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
rb->lcd_set_drawmode(DRMODE_FG);
|
rb->lcd_set_drawmode(DRMODE_FG);
|
||||||
/* high score */
|
/* high score */
|
||||||
|
|