Skip to content

Small project to explore generating island maps using perlin-noise.

Notifications You must be signed in to change notification settings

sethiroth66/map-generator-php

Repository files navigation

Island Map Generator in PHP

This is a small project that was done to explore how to generate pixelated island maps.

Influence for this project comes from an old browser game.

Examples of islands generated using 'example' as seed at 128x128 and upscaling to 256x256:
'example' seed, 128px, upscaled 256, circle gradient
'example' seed, 128px size, up-scaled to 256, using circle gradient.
'example' seed, 128px, upscaled 256, diamond gradient
'example' seed, 128px size, up-scaled to 256, using diamond gradient.
'example' seed, 128px, upscaled 256, square gradient
'example' seed, 128px size, up-scaled to 256, using square gradient.
'example' seed, 128px, upscaled 256, fill gradient
'example' seed, 128px size, up-scaled to 256, using fill (or none) gradient.

In the example script used to render the island, the images will be saved to islands/ and serve the existing render if it exists to prevent having to re-render the whole image.


The interface is very basic as was not the focus of this project. This is an image The blue 'sea' isn't actually in the image, in the image, this layer is transparent. The blue is there as a result of CSS styling.


Do not expect maintenance on this, but feel free to make issues/pull requests

About

Small project to explore generating island maps using perlin-noise.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages