| | |
| | | [Tooltip("The lower the number the more dense the ore will spawn (big clusters. Higher number means little clusters (more spread).")] |
| | | [Range(10, 100000)] |
| | | public int clusterWeight; |
| | | public RuleTile tile; |
| | | public CustomRuleTile tile; |
| | | public int maxSpawnHeight; |
| | | public int minSpawnHeight; |
| | | } |
| | |
| | | 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; |
| | | Tilemap tilemap; |
| | | public RuleTile forestRuleTile; |
| | | public CustomRuleTile forestRuleTile; |
| | | public TileBase borderTile; |
| | | public List<Ore> ores; |
| | | //public List<TileBase> tiles; |
| | |
| | | } |
| | | |
| | | SetSettingsFromSeed(seed.Value); |
| | | |
| | | transform.position = new Vector3((maxWidth / 2) * -1, (maxGroundHeight + 1) * -1, transform.position.z); |
| | | } |
| | | |
| | | public void SetSettingsFromSeed(int seed) |