1
0
Fork 0
forked from len0rd/rockbox

Bubbles for Sansa c200.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14894 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marianne Arnold 2007-09-28 22:05:22 +00:00
parent 7cbc161d51
commit bb62942b89
7 changed files with 22 additions and 2 deletions

View file

@ -52,9 +52,7 @@ plasma.c
blackjack.c
bounce.c
#ifndef SANSA_C200
bubbles.c
#endif
#if (LCD_WIDTH >= 160)
invadrox.c

View file

@ -3,6 +3,8 @@
/* Bubbles */
#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
bubbles_bubble.112x64x1.bmp
#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80)
bubbles_bubble.132x80x16.bmp
#elif ((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \
((LCD_WIDTH == 128) && (LCD_HEIGHT == 128))
bubbles_bubble.160x128x1.bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

View file

@ -82,6 +82,9 @@ bubbles_background.160x128x16.bmp
#elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128)
bubbles_emblem.160x128x16.bmp
bubbles_background.128x128x16.bmp
#elif (LCD_WIDTH >= 132) && (LCD_HEIGHT >= 80)
bubbles_emblem.132x80x16.bmp
bubbles_background.132x80x16.bmp
#endif
#elif LCD_DEPTH <= 2 /* greyscale, mono */
#if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128)

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,014 B

View file

@ -174,6 +174,17 @@ PLUGIN_HEADER
#define ROW_INDENT 5
#define MAX_FPS 30
/* 8x8 bubbles (Sansa C200) */
#elif (LCD_HEIGHT == 80) && (LCD_WIDTH == 132)
#define BUBBLE_WIDTH 8
#define BUBBLE_HEIGHT 8
#define EMBLEM_WIDTH 6
#define EMBLEM_HEIGHT 6
#define XOFS 45
#define ROW_HEIGHT 6
#define ROW_INDENT 4
#define MAX_FPS 30
/* 8x7 bubbles (Archos recorder, Ondio) */
#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112)
#define BUBBLE_WIDTH 8
@ -2456,6 +2467,12 @@ static int bubbles(struct game_context* bb) {
rb->lcd_puts(0, 6, " and show high scores");
rb->lcd_puts(0, 7, "SCROLL to aim");
rb->lcd_puts(0, 8, " and change level");
#elif CONFIG_KEYPAD == SANSA_C200_PAD
rb->lcd_puts(0, 2, "PLAY to start/pause");
rb->lcd_puts(0, 3, "SUBMENU to save/resume");
rb->lcd_puts(0, 4, "POWER to exit");
rb->lcd_puts_scroll(0, 5, "SELECT to fire and show high scores, "
"LEFT/RIGHT to aim and change level");
#endif
#if LCD_WIDTH >= 138
rb->snprintf(str, 28, "Start on level %d of %d", startlevel+1,