diff options
author | Marianne Arnold <pixelma@rockbox.org> | 2007-09-28 22:05:22 +0000 |
---|---|---|
committer | Marianne Arnold <pixelma@rockbox.org> | 2007-09-28 22:05:22 +0000 |
commit | bb62942b8959c2dcc5be7977f7e8e89c4b4536bc (patch) | |
tree | 33b31fa9dbe842ff6b001c9d76b59eb7c9bc0b02 /apps/plugins | |
parent | 7cbc161d517eb9bfbd2a251d82f62b07c1752168 (diff) | |
download | rockbox-bb62942b8959c2dcc5be7977f7e8e89c4b4536bc.tar.gz rockbox-bb62942b8959c2dcc5be7977f7e8e89c4b4536bc.zip |
Bubbles for Sansa c200.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/bitmaps/mono/SOURCES | 2 | ||||
-rwxr-xr-x | apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp | bin | 0 -> 94 bytes | |||
-rw-r--r-- | apps/plugins/bitmaps/native/SOURCES | 3 | ||||
-rw-r--r-- | apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp | bin | 0 -> 31734 bytes | |||
-rw-r--r-- | apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp | bin | 0 -> 1014 bytes | |||
-rw-r--r-- | apps/plugins/bubbles.c | 17 |
7 files changed, 22 insertions, 2 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 7862d554d4..69ace619a9 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES | |||
@@ -52,9 +52,7 @@ plasma.c | |||
52 | 52 | ||
53 | blackjack.c | 53 | blackjack.c |
54 | bounce.c | 54 | bounce.c |
55 | #ifndef SANSA_C200 | ||
56 | bubbles.c | 55 | bubbles.c |
57 | #endif | ||
58 | 56 | ||
59 | #if (LCD_WIDTH >= 160) | 57 | #if (LCD_WIDTH >= 160) |
60 | invadrox.c | 58 | invadrox.c |
diff --git a/apps/plugins/bitmaps/mono/SOURCES b/apps/plugins/bitmaps/mono/SOURCES index d74905fb0d..3917828bba 100644 --- a/apps/plugins/bitmaps/mono/SOURCES +++ b/apps/plugins/bitmaps/mono/SOURCES | |||
@@ -3,6 +3,8 @@ | |||
3 | /* Bubbles */ | 3 | /* Bubbles */ |
4 | #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) | 4 | #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) |
5 | bubbles_bubble.112x64x1.bmp | 5 | bubbles_bubble.112x64x1.bmp |
6 | #elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80) | ||
7 | bubbles_bubble.132x80x16.bmp | ||
6 | #elif ((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \ | 8 | #elif ((LCD_WIDTH == 160) && (LCD_HEIGHT == 128)) || \ |
7 | ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128)) | 9 | ((LCD_WIDTH == 128) && (LCD_HEIGHT == 128)) |
8 | bubbles_bubble.160x128x1.bmp | 10 | bubbles_bubble.160x128x1.bmp |
diff --git a/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp b/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp new file mode 100755 index 0000000000..47cdd508d9 --- /dev/null +++ b/apps/plugins/bitmaps/mono/bubbles_bubble.132x80x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index 5e66779abb..430f5f90e2 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES | |||
@@ -82,6 +82,9 @@ bubbles_background.160x128x16.bmp | |||
82 | #elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128) | 82 | #elif (LCD_WIDTH >= 128) && (LCD_HEIGHT >= 128) |
83 | bubbles_emblem.160x128x16.bmp | 83 | bubbles_emblem.160x128x16.bmp |
84 | bubbles_background.128x128x16.bmp | 84 | bubbles_background.128x128x16.bmp |
85 | #elif (LCD_WIDTH >= 132) && (LCD_HEIGHT >= 80) | ||
86 | bubbles_emblem.132x80x16.bmp | ||
87 | bubbles_background.132x80x16.bmp | ||
85 | #endif | 88 | #endif |
86 | #elif LCD_DEPTH <= 2 /* greyscale, mono */ | 89 | #elif LCD_DEPTH <= 2 /* greyscale, mono */ |
87 | #if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) | 90 | #if (LCD_WIDTH >= 160) && (LCD_HEIGHT >= 128) |
diff --git a/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp b/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp new file mode 100644 index 0000000000..beddf716ed --- /dev/null +++ b/apps/plugins/bitmaps/native/bubbles_background.132x80x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp b/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp new file mode 100644 index 0000000000..04664ec5aa --- /dev/null +++ b/apps/plugins/bitmaps/native/bubbles_emblem.132x80x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 812a88fb10..05ce15d75b 100644 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c | |||
@@ -174,6 +174,17 @@ PLUGIN_HEADER | |||
174 | #define ROW_INDENT 5 | 174 | #define ROW_INDENT 5 |
175 | #define MAX_FPS 30 | 175 | #define MAX_FPS 30 |
176 | 176 | ||
177 | /* 8x8 bubbles (Sansa C200) */ | ||
178 | #elif (LCD_HEIGHT == 80) && (LCD_WIDTH == 132) | ||
179 | #define BUBBLE_WIDTH 8 | ||
180 | #define BUBBLE_HEIGHT 8 | ||
181 | #define EMBLEM_WIDTH 6 | ||
182 | #define EMBLEM_HEIGHT 6 | ||
183 | #define XOFS 45 | ||
184 | #define ROW_HEIGHT 6 | ||
185 | #define ROW_INDENT 4 | ||
186 | #define MAX_FPS 30 | ||
187 | |||
177 | /* 8x7 bubbles (Archos recorder, Ondio) */ | 188 | /* 8x7 bubbles (Archos recorder, Ondio) */ |
178 | #elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112) | 189 | #elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 112) |
179 | #define BUBBLE_WIDTH 8 | 190 | #define BUBBLE_WIDTH 8 |
@@ -2456,6 +2467,12 @@ static int bubbles(struct game_context* bb) { | |||
2456 | rb->lcd_puts(0, 6, " and show high scores"); | 2467 | rb->lcd_puts(0, 6, " and show high scores"); |
2457 | rb->lcd_puts(0, 7, "SCROLL to aim"); | 2468 | rb->lcd_puts(0, 7, "SCROLL to aim"); |
2458 | rb->lcd_puts(0, 8, " and change level"); | 2469 | rb->lcd_puts(0, 8, " and change level"); |
2470 | #elif CONFIG_KEYPAD == SANSA_C200_PAD | ||
2471 | rb->lcd_puts(0, 2, "PLAY to start/pause"); | ||
2472 | rb->lcd_puts(0, 3, "SUBMENU to save/resume"); | ||
2473 | rb->lcd_puts(0, 4, "POWER to exit"); | ||
2474 | rb->lcd_puts_scroll(0, 5, "SELECT to fire and show high scores, " | ||
2475 | "LEFT/RIGHT to aim and change level"); | ||
2459 | #endif | 2476 | #endif |
2460 | #if LCD_WIDTH >= 138 | 2477 | #if LCD_WIDTH >= 138 |
2461 | rb->snprintf(str, 28, "Start on level %d of %d", startlevel+1, | 2478 | rb->snprintf(str, 28, "Start on level %d of %d", startlevel+1, |