Terrain generation

Simple perlin noise used for terrain generation (See code for customisation)

Anyone got any ideas for perlin noise games/projects?

EDIT:

Perlin noise is a type of random number generation that smoothly transitions between -1 and 1. Given some number of coordinates (In this case 2) It will generate a random number. Here you can see this added to itself with bigger and bigger coordinates and smaller and smaller amplifiers creating this nice terrain look. I have marked the highest point in red.

Perlin noise also can take a seed for the hash function, here using a seed and varying it by 1 trillionth we can produce some fluid motions which almost look like continental plates moving!

Overall It’s pretty epic and simple (may hash function is so bad if someone could improve it that would be appreciated.)

EDIT2:

Why in the GIF is the red dot not always red???

6 Likes

A Terreria-style game!

1 Like

I have made one here https://makecode.com/_14sYFWFjsbqj

if thats the right link

1 Like

Also heres another one that uses ALOT of noise

(Extremely buggy)

1 Like