Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Patches
  • Category Plugins
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Version 3.3
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by CFP - 2009-08-08
Last edited by Ubuntuxer - 2009-10-24

FS#10497 - Mastermind on color LCDs

Hello 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).

Closed by  Ubuntuxer
2009-10-24 19:00
Reason for closing:  Accepted
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

r23332

CFP commented on 2009-08-08 15:34

Rename the game to “codebuster” to avoid copyright issues.

Probably it could be possible to extend the game to the non-colour LCD targets using some patterns to show the different elements.
Furthermore it could be useful an option to choose colour/pattern mode, useful for colour-blind users.

CFP commented on 2009-08-12 15:46

* Add a color (original game: 8 colors and five pieces)
* 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

I got this warning in r22309.
/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

teru commented on 2009-08-16 11:54

A few suggestions.
* 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.

CFP commented on 2009-08-24 05:42

asettico: I couldn’t reproduce this warning… I added an else statement anyway, tell me if it does any good.
teru: Done (I added an option to clear the backdrop).

CFP commented on 2009-08-24 07:50

Woops, remove tabs.

CFP commented on 2009-08-24 07:52

… Add missing files

I will try to look at it this week.

OK, I got any error both for the sim and the FW. Thank you! :-)

A few suggestions:
- 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.

I implemented the suggestions above.

CFP commented on 2009-10-20 21:01

Great! I haven’t had any time to work on this lately, but I’ll write the manual section during the holidays, so that it can be commited.
CFP.

Ok, I fixed some bugs and revised the menu, so I think it’s easy of use and the settings are saved now. Besides I made the game usable on small display sizes (c200).
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.

CFP commented on 2009-10-24 09:30

First of all, I like the changes you made ; thanks a lot !

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…

teru commented on 2009-10-24 11:15

In my thought, in the game plugin on gigabeat, POWER is not a key to bring up the menu, is a key to exit game and go back to the menu. so there isn’t wonder for me.

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.

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 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 

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing