Rockbox Technical Forums

Support and General Use => Plugins/Viewers => Topic started by: mcc01 on August 17, 2014, 06:33:08 AM

Title: Rockbox dev: 2048 - low contrast and misaligned screen contents
Post by: mcc01 on August 17, 2014, 06:33:08 AM
Hi,

Today I built rockbox dev from source.
Installation works fine.

Unfortunately the game "2-48" is barely playable on
the Clip Zip since the contrast of the "chess board" is very low
and "something" (cannot recognize for sure what it is) is
overwriting the boards from the left side of the screen.

Is there a way to fix it beside removing/changing the code itsself?

Best regards,
mcc
Title: Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
Post by: __builtin on August 17, 2014, 02:53:56 PM
I am the author of 2048! ;)

The "something" you are talking about is the score that is going into the board: http://forums.rockbox.org/index.php/topic,48355.msg229098.html#msg229098
The way the game decides how to draw the score is like this:

1. "Score: " in UI font
2. "Score: " in system font
3. "S: " in UI font
4. "S: " in system font
5. No prefix in UI font
6. No prefix in system font

However, on devices with small screens like the Clip Zip, even option 6 doesn't make the score fit so it still overflows into the grid.
Therefore,I will push a patch that will make it so the game does not draw the score at all if option 6 doesn't work.
Have fun (when it's fixed)! :)
Title: Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
Post by: [Saint] on August 17, 2014, 03:04:36 PM
That solution makes zero sense, without a score, its useless, and it sounds like even if it weren't drawing over areas it shouldn't its still largely unplayable.

Just disable it for this target.


[Saint]
Title: Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
Post by: __builtin on August 17, 2014, 04:53:19 PM
It runs fine in the simulator: http://forums.rockbox.org/index.php/topic,48355.msg229098.html#msg229098
Title: Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
Post by: mcc01 on August 19, 2014, 01:07:12 PM
HI,

thank you for all the replies ! :)

Some ideas/suggestions:
Binding the font to settings like "the <function> font" instead
of "Times Roman 19 pt" (EXAMPLE ONLY) results the need of assigning
fonts to settings based on the readability of a game instead of the
theme/ui/system font.
Whats about a configuration option ot let the user decide, which font
s/he wants to use with the game and only for the game?

Highscore:
I think the highscore is not needed to be visible all the time while
playing. What about to put is on the screen which apears when
pressing SELECT for a longer time? Selecting the highscore then and
pressing SELECT again jumps back to the game.

Disableing 2048 for the Sansa Clip ZIP:
This is the most simplistic solution.
But it has nothing more to offer than simplicity.


Best regards,
mcc
Title: Re: Rockbox dev: 2048 - low contrast and misaligned screen contents
Post by: __builtin on August 19, 2014, 02:58:46 PM
HI,

thank you for all the replies ! :)

Some ideas/suggestions:
Binding the font to settings like "the <function> font" instead
of "Times Roman 19 pt" (EXAMPLE ONLY) results the need of assigning
fonts to settings based on the readability of a game instead of the
theme/ui/system font.
Whats about a configuration option ot let the user decide, which font
s/he wants to use with the game and only for the game?

Highscore:
I think the highscore is not needed to be visible all the time while
playing. What about to put is on the screen which apears when
pressing SELECT for a longer time? Selecting the highscore then and
pressing SELECT again jumps back to the game.

Disableing 2048 for the Sansa Clip ZIP:
This is the most simplistic solution.
But it has nothing more to offer than simplicity.


Best regards,
mcc

mcc, 2048 runs perfectly fine on the Clip Zip, why would I want to disable it? :)
The problem with having a fixed font is that people might not have all the fonts installed, so the game will use whatever font the user has selected in the settings menu, and then the system font if that doesn't fit.

Personally, I prefer having the high score showing, but if you want to hide it, you can comment out lines 375 to 420 in the file apps/plugins/2048.c and rebuild+install.
Enjoy the choice :)