polyadvent

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

commit 90c4b692bc865eeb92e8f2d92010ed80419d0b2b
parent 7cc78012b0084646743f22706b04b3868b64ad94
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 27 Oct 2018 09:59:47 -0700

smaller pdist

Diffstat:
Msrc/update.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/update.c b/src/update.c @@ -134,7 +134,7 @@ void update_terrain(struct game *game) { /* struct point *samples = */ /* uniform_samples(n_samples, game->terrain.size); */ - static const double pdist = 42.0; + static const double pdist = 32.0; struct point *samples = poisson_disk_samples(pdist, game->terrain.size, 30, &n_samples);