Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different art for different farm plants #1536

Open
Piddagoras opened this issue Sep 4, 2022 · 0 comments
Open

Different art for different farm plants #1536

Piddagoras opened this issue Sep 4, 2022 · 0 comments

Comments

@Piddagoras
Copy link

I haven't seen a tileset actually contain different art for different farm plants (corn, oats, cucumber, etc). I thought it was impossible, since they're all the same id (f_plant_seed, f_plant_seedling, etc). The current way that farm plants are implemented, however, uses hidden seed items to record which plants are growing, and so the layering system can be used to give them different art. I worked up a small example to test the concept, and it works (see attached).

I'm sure there are other priorities for the development of the tilesets, but if I didn't know it was possible, other people might not have known either, so here it is.

{
  "variants": [
    {
      "context": "f_plant_seedling",
      "item_variants": [
        { "item": "seed_corn", "sprite": [ { "id": "icon_corn", "weight": 1 } ], "layer": 90 },
		{ "item": "seed_oats", "sprite": [ { "id": "icon_buckwheat", "weight": 1 } ], "layer": 90 }
      ]
    },
    {
      "context": "f_plant_seed",
      "item_variants": [
        { "item": "seed_corn", "sprite": [ { "id": "icon_corn", "weight": 1 } ], "layer": 90 },
		{ "item": "seed_oats", "sprite": [ { "id": "icon_buckwheat", "weight": 1 } ], "layer": 90 }
      ]
    },
    {
      "context": "f_plant_mature",
      "item_variants": [
        { "item": "seed_corn", "sprite": [ { "id": "icon_corn", "weight": 1 } ], "layer": 90 },
		{ "item": "seed_oats", "sprite": [ { "id": "icon_buckwheat", "weight": 1 } ], "layer": 90 }
      ]
    },
    {
      "context": "f_plant_harvest",
      "item_variants": [
        { "item": "seed_corn", "sprite": [ { "id": "icon_corn", "weight": 1 } ], "layer": 90 },
		{ "item": "seed_oats", "sprite": [ { "id": "icon_buckwheat", "weight": 1 } ], "layer": 90 }
      ]
    }
  ]
}

plant icons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant