diff options
author | Marianne Arnold <pixelma@rockbox.org> | 2008-05-18 13:05:45 +0000 |
---|---|---|
committer | Marianne Arnold <pixelma@rockbox.org> | 2008-05-18 13:05:45 +0000 |
commit | 4ee3fed014be4b55d8421f13f9d343c829a45c77 (patch) | |
tree | 4676d89b9703ac1379a3bb438e0fa01bab97ef9b /apps/plugins/bitmaps/native | |
parent | 01f72230832bf7c441d5f1695130db790b053a12 (diff) | |
download | rockbox-4ee3fed014be4b55d8421f13f9d343c829a45c77.tar.gz rockbox-4ee3fed014be4b55d8421f13f9d343c829a45c77.zip |
Sokoban: enable the plugin for the c200. Invent a new, a bit more rockboxish colour scheme since the old one didn't work in the small size that was needed for the c200's screen. Also use these colours in existing bmps and add some in-between sizes (e.g. for the Nano and Gigabeat) to use the screen size as best as possible. Rename the existing colour bmps consistently. Remove the drawing code for monochrome screens and let them use the bitmap build system too. This also allows further simplifying the code and let the plugin retrieve the tilesize from the bitmap.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17569 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bitmaps/native')
14 files changed, 37 insertions, 14 deletions
diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index 74b57b3452..6762e7421c 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES | |||
@@ -437,22 +437,45 @@ snake2_bottom.160x128x2.bmp | |||
437 | #endif | 437 | #endif |
438 | 438 | ||
439 | /* Sokoban*/ | 439 | /* Sokoban*/ |
440 | /* biggest tilesize: 20 columns x 16 rows + stat box need to fit (minimum) | ||
441 | * allow clipping of up to 4 pixels in favour of using a bigger tilesize | ||
442 | * stat box width of 32 in horizontal & height of 25 pixels in vertical layout | ||
443 | * currently the horizontal layout fits best on all wider than high displays | ||
444 | */ | ||
445 | |||
446 | #if LCD_WIDTH > LCD_HEIGHT | ||
447 | #define SOKOBAN_TILESIZE ((LCD_WIDTH + 4 -32)/20) | ||
448 | #else | ||
449 | #define SOKOBAN_TILESIZE ((LCD_WIDTH + 4)/20) | ||
450 | #endif | ||
451 | |||
440 | #ifdef HAVE_LCD_COLOR | 452 | #ifdef HAVE_LCD_COLOR |
441 | #if (LCD_HEIGHT >= 224) && (LCD_WIDTH >= 312) || \ | 453 | #if SOKOBAN_TILESIZE >= 14 |
442 | (LCD_HEIGHT >= 249) && (LCD_WIDTH >= 280) | 454 | sokoban_tiles.14x14x16.bmp |
443 | sokoban_tiles.14x14.bmp | 455 | #elif SOKOBAN_TILESIZE >= 12 |
444 | #elif (LCD_HEIGHT >= 144) && (LCD_WIDTH >= 212) || \ | 456 | sokoban_tiles.12x12x16.bmp |
445 | (LCD_HEIGHT >= 169) && (LCD_WIDTH >= 180-4) | 457 | #elif SOKOBAN_TILESIZE >= 9 |
446 | sokoban_tiles.9x9.bmp | 458 | sokoban_tiles.9x9x16.bmp |
447 | #elif (LCD_HEIGHT >= 96 && LCD_WIDTH >= 152) || \ | 459 | #elif SOKOBAN_TILESIZE >= 7 |
448 | (LCD_HEIGHT >= 121 && LCD_WIDTH >= 120) | 460 | sokoban_tiles.7x7x16.bmp |
449 | sokoban_tiles.6x6.bmp | 461 | #elif SOKOBAN_TILESIZE >= 6 |
450 | #endif | 462 | sokoban_tiles.6x6x16.bmp |
451 | #elif LCD_DEPTH >= 2 && \ | 463 | #elif SOKOBAN_TILESIZE >= 5 |
452 | ((LCD_HEIGHT >= 96 && LCD_WIDTH >= 152) || \ | 464 | sokoban_tiles.5x5x16.bmp |
453 | (LCD_HEIGHT >= 121 && LCD_WIDTH >= 120)) | 465 | #endif /* tilesize */ |
466 | #elif LCD_DEPTH > 1 /*greyscale */ | ||
467 | #if SOKOBAN_TILESIZE >= 6 | ||
454 | sokoban_tiles.6x6x2.bmp | 468 | sokoban_tiles.6x6x2.bmp |
455 | #endif | 469 | #elif SOKOBAN_TILESIZE >= 5 |
470 | sokoban_tiles.5x5x2.bmp | ||
471 | #endif /* tilesize */ | ||
472 | #else /* mono */ | ||
473 | #if SOKOBAN_TILESIZE >= 6 | ||
474 | sokoban_tiles.6x6x1.bmp | ||
475 | #elif SOKOBAN_TILESIZE >= 4 | ||
476 | sokoban_tiles.4x4x1.bmp | ||
477 | #endif /* tilesize */ | ||
478 | #endif /* HAVE_COLOR */ | ||
456 | 479 | ||
457 | /* Solitaire and Blackjack */ | 480 | /* Solitaire and Blackjack */ |
458 | #ifdef HAVE_LCD_COLOR | 481 | #ifdef HAVE_LCD_COLOR |
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.12x12x16.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.12x12x16.bmp new file mode 100644 index 0000000000..8ac740bbc1 --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.12x12x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.14x14.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.14x14.bmp deleted file mode 100644 index 47dc5486cf..0000000000 --- a/apps/plugins/bitmaps/native/sokoban_tiles.14x14.bmp +++ /dev/null | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.14x14x16.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.14x14x16.bmp new file mode 100644 index 0000000000..5dc2ebeb65 --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.14x14x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.4x4x1.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.4x4x1.bmp new file mode 100644 index 0000000000..b5a79aa448 --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.4x4x1.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.5x5x16.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.5x5x16.bmp new file mode 100644 index 0000000000..57bc1acc79 --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.5x5x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.5x5x2.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.5x5x2.bmp new file mode 100644 index 0000000000..d68f78dd65 --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.5x5x2.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.6x6.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.6x6.bmp deleted file mode 100644 index 38c045790d..0000000000 --- a/apps/plugins/bitmaps/native/sokoban_tiles.6x6.bmp +++ /dev/null | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.6x6x1.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.6x6x1.bmp new file mode 100644 index 0000000000..fdebba604f --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.6x6x1.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.6x6x16.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.6x6x16.bmp new file mode 100644 index 0000000000..0c4766300b --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.6x6x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.6x6x2.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.6x6x2.bmp index ccf184d558..034783dc96 100644 --- a/apps/plugins/bitmaps/native/sokoban_tiles.6x6x2.bmp +++ b/apps/plugins/bitmaps/native/sokoban_tiles.6x6x2.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.7x7x16.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.7x7x16.bmp new file mode 100644 index 0000000000..ca8bc8820f --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.7x7x16.bmp | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.9x9.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.9x9.bmp deleted file mode 100644 index 9675db8b14..0000000000 --- a/apps/plugins/bitmaps/native/sokoban_tiles.9x9.bmp +++ /dev/null | |||
Binary files differ | |||
diff --git a/apps/plugins/bitmaps/native/sokoban_tiles.9x9x16.bmp b/apps/plugins/bitmaps/native/sokoban_tiles.9x9x16.bmp new file mode 100644 index 0000000000..3d63b0812f --- /dev/null +++ b/apps/plugins/bitmaps/native/sokoban_tiles.9x9x16.bmp | |||
Binary files differ | |||