This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10497 - Mastermind on color LCDs
Attached to Project:
Rockbox
Opened by Clément Pit--Claudel (CFP) - Saturday, 08 August 2009, 13:53 GMT+2
Last edited by Johannes Schwarz (Ubuntuxer) - Saturday, 24 October 2009, 21:00 GMT+2
Opened by Clément Pit--Claudel (CFP) - Saturday, 08 August 2009, 13:53 GMT+2
Last edited by Johannes Schwarz (Ubuntuxer) - Saturday, 24 October 2009, 21:00 GMT+2
|
DetailsHello world :)
This plug-in adds a new game to rockbox, the mastermind game. It runs on all players with a color LCD, and I tested it on h10_5gb, iaudiox5, ipodnano, e200, ipodvideo (all sim), and gigabeat F (device). I didn't find any bugs, but there must be some hiding here and there... I've attached a screenshot. CFP. PS: I've used PLA, although (if I remember well) it tends to be removed from plugins. What should I use then? #define(s) for each target? (the wiki page about plugins still advises to use PLA). |
This task depends upon
Closed by Johannes Schwarz (Ubuntuxer)
Saturday, 24 October 2009, 21:00 GMT+2
Reason for closing: Accepted
Additional comments about closing: r23332
Saturday, 24 October 2009, 21:00 GMT+2
Reason for closing: Accepted
Additional comments about closing: r23332
Furthermore it could be useful an option to choose colour/pattern mode, useful for colour-blind users.
* Add an option to display frames
* Add an option to display numbers, a simple "patterns" mode. This allow to use the plugin on non-color LCDs, yet it is not enabled on these by default since it has not been tested yet.
CFP
/home/asettico-9.04/Sviluppo/rockbox/rockbox/apps/plugins/codebuster.c: In function ‘draw_piece’:
/home/asettico-9.04/Sviluppo/rockbox/rockbox/apps/plugins/codebuster.c:127: warning: ‘color’ may be used uninitialized in this function
* Clear backdrop (i.e. rb->lcd_set_backdrop(NULL);) and set background color when you set foreground color.
It's not so playable with white background...
* It would be better to use *rb->current_tick for seed for rb->srand. IIUC, get_time returns always same value for non-RTC targets.
teru: Done (I added an option to clear the backdrop).
- delete the option clear backdrop instead use a background image or just let the background black
- the option display frames doesn't work; I would delete it
- use just one menu
- add a standard rockbox header label
Before the new game can be committed, it needs essentially a manual. In my opinion it doesn't need urgently a non-coloured target support.
CFP.
I wrote that display frames doesn't wrote, but this isn't right and I reinserted it.
Please have a look at my changes. After you write the manual section, I'll commit your game.
I started writing the manual ; could you take a look at the diff to see if I forgot targets, or made any mistakes ? Do not hesitate to rephrase some of the sentences, I fear that my English still needs to improve..
Somehow, I liked to have the menu button enabled on gigabeat: it feels strange that in plugins, the POWER button goes to the menus, while in other screens the MENU key is used, and power exits... Plus, in some plugins, the POWER key does exit the plugin, which always makes me wonder whether I'm going to exit the game when trying to get to a game's menu. What about re-enabling the menu button, at least for Gigabeat ?
I didn't know how to add binary files to a patch, so I'm attaching images for the manual separatly.
CFP.
PS: I just came into a problem: it seems that on the new version, on targets with a scrollwheel, when you try to change the color a piece, it moves by two colors at once, and I can't really figure out why...
I'd suggest to rename colorblind to labeling or something like.
I'm confused by button mapping. UP usually increases number and DOWN usually decreases number. it is confusing for me that it is contrary in your game.
I suppose it's a bug in the simulator or the pluginlib_action, because on my Sansa e200 the problem doesn't occure.
>I'd suggest to rename colorblind to labeling or something like.
yes, colorblind is really unsuitable
>I'm confused by button mapping. UP usually increases number and DOWN usually decreases number. it is confusing for me that it is contrary in your game.
You're right, but the problem occurs because of the bad pluginlib_action. If you scroll down the number is increased rightly. kugel is working on it.
FS#10387