Page 1 of 1

power level

Posted: 17 Nov 2014, 12:55
by Ezio
we had

Code: Select all

#define POW_BARWIDTH	308
but actual image from screenshot was 316px, where did extra 8px comes from?.

Image

Re: power level

Posted: 18 Nov 2014, 03:34
by stiv
Ah! So that's where those pixels went. I have been looking all over for them.

Re: power level

Posted: 21 Nov 2014, 02:47
by Iluvalar
the curve each side is outside the box I guess...

Re: power level

Posted: 22 Nov 2014, 08:16
by Ezio
Iluvalar wrote:the curve each side is outside the box I guess...
assuming you use 640x480

Code: Select all

int POW_X = OBJ_BACKX + 12; //  24 + 132 + 6 + 12= 174
int POW_Y = (OBJ_BACKY + OBJ_BACKHEIGHT + 6); //  324+ 115  +6 = 445
int POW_BARWIDTH = 308;
X and Y would give most top-left of power bar, added with 308 it would end at most right of 'build screen' (menu above power bar). still there's an appendix near map ( 8px extra ).

Re: power level

Posted: 22 Dec 2014, 03:20
by CesarIII
Ezio wrote:X and Y would give most top-left of power bar, added with 308 it would end at most right of 'build screen' (menu above power bar). still there's an appendix near map ( 8px extra ).
I suppose you are talking about this:

Image

The 8px you mention could be because of the rounded parts (4px + 4px). The size of both the bar and the building menu stay the same in this old screenshot (couldn't find the game version), so my guess is that it should be a problem with the bar position (which confirms the appendix you are talking about):

Image

Re: power level

Posted: 24 Dec 2014, 10:32
by Cyp
Think there's a way of seeing the bounding rectangles in the master branch by pressing some key combination. But as far as I remember, some of the bounding rectangles don't actually make sense.