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

Incorrect intersection network build #60

Open
ivanjermakov opened this issue Aug 24, 2020 · 1 comment
Open

Incorrect intersection network build #60

ivanjermakov opened this issue Aug 24, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ivanjermakov
Copy link
Member

image

@ivanjermakov ivanjermakov added the bug Something isn't working label Aug 24, 2020
@ivanjermakov
Copy link
Member Author

Tile [19, 43]
Map generation is the following:

this.randomService.seed.set('seed')
const terrainGenerationConfig = new TerrainGenerationConfig(
	new Shape(128, 128),
	0.002,
	new AltitudeMapConfig(
		new NoiseConfig(
			0.015
		),
		4,
		5,
		2
	),
	new TemperatureMapConfig(
		new NoiseConfig(
			0.001
		),
		4,
		1
	),
	new HumidityMapConfig(
		new NoiseConfig(
			0.01
		),
		9,
		0,
		0
	),
	new BiomesConfig(
		new DesertBiomeConfig(
			0.2
		),
		new TaigaBiomeConfig(
			0.75
		),
		new JungleBiomeConfig(
			0.9
		)
	),
	new NoiseConfig(
		0.03,
		new Range(0, 1)
	),
	0.1,
	0.06
)

let tiledTerrain = this.terrainGenerationService.generate(
	terrainGenerationConfig
)

const config: StreetGenerationConfig = new StreetGenerationConfig(
	new Range(5, 25),
	new Range(4, 8),
	2,
	new Range(2, 6)
)

const cityGenerationConfig = new CityGenerationConfig(
	2,
	0.8,
	config
)

this.worldService.world.set(
	this.worldGenerationService.generate(
		tiledTerrain,
		new WorldGenerationConfig(
			terrainGenerationConfig,
			cityGenerationConfig
		)
	)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant