Page 1 of 1

Wall skin

Posted: Mon Mar 21, 2022 12:32 pm
by DreJaDe
I'm trying...

It seems that I lack 6 images

And like from my previous statement, I just don't understand the stone wall set.

Can anyone help find the missing pieces (With Dora voice)

...
Still incomplete like no team color and all.
No slant wall also. Those with slant walls, I tried to make it as zigzag lines.

Re: Wall skin

Posted: Mon Mar 21, 2022 3:54 pm
by Endru1241
Wall set is not so easy to understand.
There are few images working for all right, diagonal and down connections, but left ones do not work neither for diagonal, nor for down, nor upper.
Palisade set posted by me should be much more complete (although it still sometimes use additional down connection).

Re: Wall skin

Posted: Mon Mar 21, 2022 6:39 pm
by DreJaDe
You mean by "there"?

The image here?

Re: Wall skin

Posted: Mon Mar 21, 2022 7:43 pm
by Endru1241
DreJaDe wrote: Mon Mar 21, 2022 6:39 pm You mean by "there"?

The image here?
I meant in the original wall set.
Yours are not jsonized so it's all up to be seen how they'll look.

Basically to make any working JOINX image set we have to think which image will cover which connection cases.
JOINX definition can deal with all adjacent and diagonal units of the same type (or stated to be treated as the same type in similarAtJoin).
This part e.g. :

Code: Select all

      {
            "imgName":"units/unit_wall_set.png",
            "type":"JOINX",
        "types": [
          {
            "type":"JOINX",
            "typeExtraString": "UR"
          },
          {
            "type":"JOINX",
            "typeExtraString": "UR,DN"
          },
          {
            "type":"JOINX",
            "typeExtraString": "UR,DN,DR"
          },
          {
            "type":"JOINX",
            "typeExtraString": "DN,UR,DR,DL"
          },
          {
            "type":"JOINX",
            "typeExtraString": "DN,UR,DL"
          }
        ],
            "shiftIndicatorsDown":20,
            "typeExtra":0.1,
            "imgColumns":1
      },
Sets the image to be displayed in 5 cases:
UR - upper right, so:
001
0x0
000
UR,DN - upper right, down, so:
001
0x0
010
UR,DN,DR - upper right, down, down right, so:
001
0x0
011
DN,UR,DR,DL - down, upper right, down right, down left, so:
001
0x0
111
And lastly DN,UR,DL - down, upper right and down left, so :
001
0x0
110