![]() |
#31 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
it looks like landscape shown in a portrait view.
I.E: the horz and vert sizes are exchanged (which on a Kindle, they are compared to a CRT screen). |
![]() |
![]() |
![]() |
#32 | |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Apr 2015
Device: Kindle PaperWhite 2
|
Quote:
Maybe you need to find a way to rotate the display? Mahjong is generally in landscape anyway, isn't it? The current status is that it's looking okay and accepting touches, but is too wide for the kindle's display, right? Sincerely, A lurker keeping a hopeful eye on this thread. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
ninji'd
|
![]() |
![]() |
![]() |
#34 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Apr 2015
Device: Kindle PaperWhite 2
|
|
![]() |
![]() |
![]() |
#35 |
Enthusiast
![]() Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
|
We can resize the tiles to make them fit the screen. The "gnome2" tileset is fitting well but it may be too small. I will post a working version soon.
Rotating the screen is a good idea, can we do it on the Kindle side? Edit: here is the working KUAL extension. I made the gnome2_bigger tileset the default. It is the same as the gnome2 tileset, but bigger and with a sign to make blank tiles with black numbers different from the blank tiles with red numbers (it was hard to distinguish them in grayscale). Last edited by sguerrini97; 08-13-2016 at 10:56 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Apr 2015
Device: Kindle PaperWhite 2
|
Quote:
But, it was difficult for me to play; almost headache inducing because I had to strain my eyes to play it. The tiles look too small on my PW2, the contrast looks very different in actual play compared to these screenshots, and I had to keep looking closely at the screen to figure out if there was a layer above another. These are NOT problems caused by your work. So, I wanted to try a more optimal tile size for a PW2. As I couldn't find any obvious quick way to change the tile set through a config, I tried renaming dorothys.gif to gnome2_bigger.gif for a bigger tile set with good depth visibility. That did work, and the tiles were large as expected. Too large for the screen. Hence, the next step was to try resizing dorothys.gif to a smaller size to find the optimal size for my kindle. That failed miserably. Images resized using GIMP and imagemagick both caused the game to fail to load. If I can manage to resize dorothys without making the game crash, then I would be set. All game features are working fine. I don't even need to edit dorothys and make it dark on selection like the gnome2 tile sets as personally I prefer the way selected tiles are looking in dorothys compared to the tiles in gnome2 tile sets. Dorothys has good contrast, good depth perception, and is just slightly too big for my screen. One tile is getting partially cut off on each side. The only thing I could wish for, would be a way to change screen backlight while playing the game, because leaving the game to change backlight and then coming back results in a new game. This might be beyond the scope of this port, though, so it's okay if this remains wishful thinking. Last edited by Sukarn; 08-13-2016 at 04:37 PM. |
|
![]() |
![]() |
![]() |
#37 |
Enthusiast
![]() Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
|
The only tileset I successfuly resized using GIMP was the gnome2 one, just make sure the width can be divided by 21 and the height by 4 ( w%21=0, h%4=0 ).
We could add different tilesets for every kindle and then choose the one to use from the start.sh script (just add "-t <tileset>" at the end of the command). I can test only on my KT2 which is 600x800. For the other thing you asked, it would be possible to add a "save" function when Quit is clicked and a "load" funcion when the game is started, but I need to understand the game code better Last edited by sguerrini97; 08-13-2016 at 04:41 PM. |
![]() |
![]() |
![]() |
#38 |
Connoisseur
![]() ![]() Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
You did some more changes as it had problems to set the window title. But the window title is important for the kindle window manager as it tells him to go to landscape mode.
Could you try to compile the original code and only make the changes to fix the color depth. Code:
[root@kindle bin]# ./xmahjongg --name L:A_N:application_ID:com.xmahjongg_O:R_PC:N -B /mnt/us/extensions/xmahjongg/data/ xmahjongg: Cannot change window name on Kinde build |
![]() |
![]() |
![]() |
#39 |
Connoisseur
![]() ![]() Posts: 77
Karma: 150
Join Date: Jul 2014
Device: Kindel PW1, Voyager
|
or try to change line 699
Code:
String window_name = (x_name ? x_name : program_name); Code:
String window_name ="L:A_N:application_ID:com.xmahjongg_O:R_PC:N"; |
![]() |
![]() |
![]() |
#40 | |
Connoisseur
![]() Posts: 72
Karma: 10
Join Date: Jun 2016
Device: PW3
|
![]() Quote:
I would like to know if you could help develop a Dominoes (Dominó) game to work on Kindles with 300ppp resolution, like PW3?? Willing to donate and also some little experience on programming, so really excited about working on this project!! |
|
![]() |
![]() |
![]() |
#41 |
Enthusiast
![]() Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
|
I removed the possibility to change the window name because on the Kindle it has to be in that strange format. I didn't knew about the landscape thing, so.. I've added a command line true/false switch "--landscape" and also set the landscape mode as the default one.
Then I found a way to check the screen resolution, the game will now use the "gnome2_bigger" tileset if the resolution is equal to 600x800, otherwise the default "thick" tileset will be used. We should collect data from all the different Kindles to choose the best tileset for each one but I need others to create/test and share tilesets since I only own a KT2. @doctoralvarez please find some open source domino game for Unix that can be ported and start another thread ![]() Last edited by sguerrini97; 08-14-2016 at 08:17 AM. |
![]() |
![]() |
![]() |
#42 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
KT3 is 167 ppi
PW3, KV, and KOA are 300 ppi Details: https://www.mobileread.com/forums/sho...d.php?t=237083 FGA #10 Last edited by knc1; 08-14-2016 at 01:02 PM. |
![]() |
![]() |
![]() |
#43 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Has anybody noticed that there is an existing mahjong implementation in javascript, playable through the skipstone browser?
https://www.mobileread.com/forums/sho...d.php?t=196403 In addition to mahjong there's also: blockline, freecell, klondike, long, and pile. ![]() These were for the Kindle Touch. I don't know if they would work on later models. ![]() |
![]() |
![]() |
![]() |
#44 |
Enthusiast
![]() Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
|
@knc1 thanks I've read the different resolutions in that thread but users still need to test tilesets on their Kindle to see how it looks. I've added a configuration file so anyone can choose what tileset to use without using the command line. Here is an example: https://github.com/sguerrini97/xmahj...re/kindle.conf
@nasser I prefer native apps but thanks for sharing Last edited by sguerrini97; 08-14-2016 at 01:59 PM. |
![]() |
![]() |
![]() |
#45 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 475
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
I've attached screen shots of both this and the older implementation. Taken from my KT3 (600x800 resolution). The tiles seem to look clearer in the older one?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CPU Governor Menu (KUAL extension) | knc1 | Kindle Developer's Corner | 41 | 09-16-2021 02:54 PM |
kual extension to open a book | shoelesshunter | Kindle Developer's Corner | 14 | 08-16-2016 12:30 PM |
Is there a Kual Extension/add-on for cloud | eduardomb | Kindle Developer's Corner | 19 | 07-08-2016 05:43 PM |
is there any KUAL extension development guide? | fangzi | Kindle Developer's Corner | 2 | 01-02-2014 10:11 AM |