miepzerino
2023-12-29 fc9527729835277b295ba2c59b60c86d630e9dbe
Assets/Scripts/GenerateTileMap.cs
@@ -32,9 +32,9 @@
public class GenerateTileMap : MonoBehaviour
{
    public int? seed;
    public int maxWidth = 256;
    public int maxHeight = 384;
    public int maxGroundHeight = 256;
    public static int maxWidth = 256;
    public static int maxHeight = 384;
    public static int maxGroundHeight = 256;
    private float scale;
    private float offsetX;
    private float offsetY;
@@ -56,6 +56,8 @@
        }
        SetSettingsFromSeed(seed.Value);
        transform.position = new Vector3((maxWidth / 2) * -1, (maxGroundHeight + 1) * -1, transform.position.z);
    }
    public void SetSettingsFromSeed(int seed)