Amit Patel
Amit Patel
It works on Mac OS for me, with both Chrome and Firefox (using the GhostText extension with both browsers instead of the Atomic Chrome extension).
1. I think the hills *are* boring. I wrote in the blog post: > This needs more work, as I’m still mildly unhappy with the results. Since this was a...
I think the indices array will be [[x1, y1], [x2, y2], [x3, y3]] and you can draw a triangle with those three vertices with whatever graphics library you are using....
The current algorithm is to assign elevation as the *distance from the closest water*. This is the style of mountains we needed in the game mapgen2 was for. The code...
The lakes and oceans are assigned in the same place: `assign_r_water`. Right now it uses a noise function (`fbm_noise`), and then when that value is < 0 then `r_water[r]` is...
An example is a great idea. I'll start working on one. It's been many years since I used this library so I've forgotten some of it :-)
`makeRandInt` is here: https://github.com/redblobgames/prng/blob/master/index.js If you want to use Math.random instead of a seed, you can use ```js function (_seed) { return function (N) { return Math.round(Math.random() * N); };...
Here's a full example that generates a mesh using Poisson disc points, and then calculates the map (rivers, elevation, biomes, etc.) ```js const SimplexNoise = require('simplex-noise'); const DualMesh = require('@redblobgames/dual-mesh');...
Oh interesting, it should've found it. This works for me: ```sh git clone --depth 1 https://github.com/redblobgames/mapgen4.git npm install ``` and this also worked for me ```sh git clone --depth 1...
Oh interesting, I haven't paid attention to the versions. Sure, I can add information about the node.js / npm version, but I am not sure which versions don't work. What...