polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 32d5402ce7b0c559f4162477874f036abe334dbe
parent 43efbc60072c856b177715a44e923cdad554f3fa
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 28 Sep 2018 22:54:42 -0700

change default sample point distances a bit

Diffstat:
Msrc/update.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/update.c b/src/update.c @@ -107,13 +107,13 @@ void update_terrain(struct game *game) { free(terrain->samples); int n_samples = - (terrain->size * game->terrain.size) * scale * scale; + (terrain->size * game->terrain.size) / (scale * scale); /* struct point *samples = */ /* uniform_samples(n_samples, game->terrain.size); */ struct point *samples = - poisson_disk_samples(45.0, game->terrain.size, 30, &n_samples); + poisson_disk_samples(42.0, game->terrain.size, 30, &n_samples); terrain->samples = samples; terrain->n_samples = n_samples;