Skip to content

๐Ÿ๏ธ Simplex noise based world generation web app. Built with vanilla TypeScript for Deno.

Notifications You must be signed in to change notification settings

N8Brooks/world_generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

44 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

WorldGeneration

Simplex world generation built with the JavaScript Canvas API and Web Workers API.

Demo:

Atlas theme

https://n8brooks.github.io/world_generation/dist/index.html?theme=atlas&shape=square

Pixel-ey theme

https://n8brooks.github.io/world_generation/dist/index.html?pixels=5

Other options:

  • theme: "pixel" | "atlas" (default is "pixel")
  • shape: "circle" | "square" | "flat" (default is "circle")
  • seed: integer (default is Math.random() * 2**32)
  • octaves: integer (default is 5)
  • frequency: float (default is 0.002)
  • persistance: float (default is 0.5)

Build Commands:

deno bundle src/world_generation.ts dist/world_generation.js -c deno.json

deno bundle src/worker.ts dist/worker.js -c deno.json

About

๐Ÿ๏ธ Simplex noise based world generation web app. Built with vanilla TypeScript for Deno.

Resources

Stars

Watchers

Forks