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

More Path improvments #22

Open
KnatteAnka opened this issue Sep 25, 2024 · 1 comment
Open

More Path improvments #22

KnatteAnka opened this issue Sep 25, 2024 · 1 comment

Comments

@KnatteAnka
Copy link

To allow better visual effects it would help to have more path images for one path then One image
And random rotation but will not work for all images so option in Spec.
image
Example image show how all images is exactly the same and then will look repetitive

Suggestion:

  1. Add Parameter to allow more varaiation of image as base for the path
  2. Add Parameter to allow image to rotate in 90 degree steps

How to do it:

  1. I see 2 options here:
    A. Add parameters for Columns and Rows in Path texture
    (this is easier to export from paint program but may be harder to program so you chose what way to go)
    B. Add / set Path textrure to be an array and allow multiple images
  2. Add a new Parameter: "AllowRotation": "true"
    this would allow code to random rotate the image selected

Example 1A

{
  "Name": "Gravel3Path",
  "PathTexture": "sprites/paths/gravel3path/groundtexture",
  "PathColumns": 2
  "PathRows":2
  "RailingTexture": "sprites/paths/gravel3path/groundtexture",
  "ToolGroup": "CategoryPaths",
  "ToolOrder": 31,
  "PathIcon": "sprites/paths/gravel3path/darkpathicon",
  "DisplayNameLocKey": "Tobbert.Gravel3Path.DisplayName",
  "DescriptionLocKey": "Tobbert.Gravel3Path.Description",
  "FlavorDescriptionLocKey": "Tobbert.Gravel3Path.FlavorDescription",
  
  "NoiseTexScale": 10
}

Example image where it would select one of four images
image

Example 1B

{
  "Name": "Gravel3Path",
  "PathTexture": [
                          "sprites/paths/gravel3path/groundtexture1",
                          "sprites/paths/gravel3path/groundtexture2",
                          "sprites/paths/gravel3path/groundtexture3",
                          "sprites/paths/gravel3path/groundtexture4",
  ],
  "RailingTexture": "sprites/paths/gravel3path/groundtexture",
  "ToolGroup": "CategoryPaths",
  "ToolOrder": 31,
  "PathIcon": "sprites/paths/gravel3path/darkpathicon",
  "DisplayNameLocKey": "Tobbert.Gravel3Path.DisplayName",
  "DescriptionLocKey": "Tobbert.Gravel3Path.Description",
  "FlavorDescriptionLocKey": "Tobbert.Gravel3Path.FlavorDescription",
  
  "NoiseTexScale": 10
}

1:
image
2:
image
3.
image
4.
image

@KnatteAnka
Copy link
Author

maybe use "MainTextureScale": 0.5,
with random offset according to amount of columns and rows?

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