Esempio n. 1
0
    public int getHeight(int x, int z)
    {
        float height;

        lock (heightNoise) {
            height = heightNoise.GetNoise(x, z) * _maxMountainHeight + _offset;
        }
        return((int)height);
    }
Esempio n. 2
0
    private int GetIslandHeight(int x, int z)
    {
        float height = islandNoise.GetNoise(x, z) * 50;

        return((int)height + 20);
    }
Esempio n. 3
0
    private int GetTerrainHeight(int x, int z)
    {
        float height = terrainNoise.GetNoise(x, z) * 10;

        return((int)height + 20);
    }