Log In  

Cart #procmapmaker-0 | 2023-05-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
24

A simple 1-bit procedural map generator with coastlines, rivers, mountains and forests.

Controls

⬆️⬇️⬅️➡️ - Move camera
❎🅾️ - Zoom in an out
TAB - Enter forge, create a new world

This started life as a tweet cart and creeped in scope a bit until it became what you see now.

There's a UI to play with the numbers, if you'd like to modify these values outside the boundaries I've set, check out the vals object array near the start of the file.

The world is created from a vornoi diagram, mountains are placed along cell boundaries and forest in cell centre points.

World name generated has been pilthered from this post from The Collaborative Gamer

If you comment out the pal calls at the start of draw_world() you'll see a more colourful version of the world, but I much prefer the 1 bit style personally.

Please feel free to remix or adapt this code in any way you see fit :)

P#130035 2023-05-22 19:20

1

This is beautiful, and the zoom-dependent level of detail in the drawing is really slick.

P#130043 2023-05-22 21:04
1

That is soooo cool. I love watching it being drawn in real time.

P#130059 2023-05-23 09:15 ( Edited 2023-05-23 09:15)
1

Really nice! 🌟

P#130082 2023-05-23 20:52

Love the zoom. So cool to see details.

P#131112 2023-06-18 14:49

excellent! would be perfect in a rpg type game

P#131128 2023-06-19 05:30

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 20:50:14 | 0.011s | Q:22