I've implemented your suggestions but I only have a SD1000 (360x240) to work with. Please take a look at my updated code on GitHub and see what you think.
Are 360x240, 640x480 and 720x480 the only possible resolutions, or are there others?
It appears that to do things "right" will require editing the language / translation files. I don't know how to even try to do that...
Once "finished", I'm not against adding this, but I'll need a nod from reyalp.
Again, IMO, the score / active color representation is slightly non-intuitive - there are 2 fixed boxes around the score and a third one shows which one is active. The source of the issue is that the background color matches one of the "player" colors (black) - I guess this is the reason you used a magenta box.
typedef unsigned int uchar;
I'm not sure that I like it better, but there it is. If only I could add SOUNDS.(Question - any way to add user-defined sounds?)
Index: gui_reversi.c===================================================================--- gui_reversi.c (revision 5)+++ gui_reversi.c (working copy)@@ -306,7 +306,22 @@ //------------------------------------------------------------------- static void redraw() { uint x, y, mid;+ char *plm1, *plm2; + if (InGame) {+ if (CurrPlayer==FIELD_PLAYER1) {+ plm1 = "\x10";+ plm2 = " ";+ }+ else {+ plm1 = " ";+ plm2 = "\x10";+ }+ }+ else {+ plm1 = plm2 = " ";+ }+ draw_rectangle(field_x+cell_size*xPos, field_y+cell_size*yPos, field_x+cell_size*(xPos+1), field_y+cell_size*(yPos+1), MAKE_COLOR(COLOR_RED,COLOR_RED), RECT_BORDER1); x = camera_screen.disp_left+field_size, y = 40;@@ -315,10 +330,12 @@ draw_string(x, y-10, "REVERSI", MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); sprintf(buf, " %d ", NumPl1); draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*2, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE));+ draw_string(x, y+FONT_HEIGHT*2, plm1, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); draw_ellipse(x+FONT_WIDTH*1.5+(cell_size>>1), y+FONT_HEIGHT*3+(cell_size>>1), (cell_size>>1)-4, (cell_size>>1)-4, COLOR_WHITE, DRAW_FILLED); sprintf(buf, " %d ", NumPl2); draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*6, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); + draw_string(x, y+FONT_HEIGHT*6, plm2, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); draw_ellipse(x+FONT_WIDTH*1.5+(cell_size>>1), y+FONT_HEIGHT*7+(cell_size>>1), (cell_size>>1)-4, (cell_size>>1)-4, COLOR_BLACK, DRAW_FILLED); }
Started by mkmenuts Feature Requests
Started by lemongrass Feature Requests
Started by chdecker « 1 2 » General Discussion and Assistance
Started by TobiMarg « 1 2 » General Discussion and Assistance