Gudradain / spirit-island-template

A set of templates to help create fan made content for the board game Spirit Island.
MIT License
16 stars 22 forks source link

Different Growth tracks #18

Closed LokiMidgard closed 2 years ago

LokiMidgard commented 3 years ago

Does anyone already work on different growth tracks like the ones of Green or Lurer?

Otherwise I would like to take a look. For syntax I thought of following:

    <!--like lurer with double border.  -->
    <growth title="Growth">
      <!-- This would put double border before and after the sub-group (if any) -->
      <!-- But of couse to a maximum of one (double)border bwtween -->
      <sub-growth title="pick one of:" bordered>
        <growth-group values="reclaim-one;gain-power-card;gain-energy(3)"></growth-group>
        <growth-group values="reclaim-one;gain-power-card;gain-energy(3)"></growth-group>
      </sub-growth>
      <sub-growth title="and one of:">
        <growth-group values="add-presence(2,ocean);gain-element(fire)"></growth-group>
        <growth-group cost="3" values="move-presence(4);reclaim-one;add-presence(3,mountain-jungle)"></growth-group>
      </sub-growth>
    </growth>

    <!-- Like Green with a different background color -->
    <growth title="Growth">
      <sub-growth title="Allways:" background="#AARRGGBB">
        <growth-group values="reclaim-one;gain-power-card;gain-energy(3)"></growth-group>
      </sub-growth>
      <sub-growth title="Plus pick one:">
        <growth-group values="add-presence(2,ocean);gain-element(fire)"></growth-group>
        <growth-group cost="3" values="move-presence(4);reclaim-one;add-presence(3,mountain-jungle)"></growth-group>
      </sub-growth>
    </growth>

    <!-- Normal for comparison -->
    <growth title="Growth (PICK ONE)">
      <growth-group values="reclaim-one;gain-power-card;gain-energy(3)"></growth-group>
      <growth-group values="add-presence(2,ocean);gain-element(fire)"></growth-group>
      <growth-group cost="3" values="move-presence(4);reclaim-one;add-presence(3,mountain-jungle)"></growth-group>
    </growth>

The position would probably done mostly in js.

Multi line growth track would also be cool, but seems a lot more work

LordMotas commented 3 years ago

Nothing like this has been attempted yet. The idea was to find a nice and easy way for the user to be able to customize it.

Gudradain commented 3 years ago

I like the idea and syntax.

It would be best for the normal syntax to keep working as it is now.

LokiMidgard commented 3 years ago

I'll think that will be the next thing I look at. But I have no idea how the layout will work yet. So it can take some time...

Hope I can start this today or tomorrow. After all this is a feature I would need for my spirit ;)