mapgen2 is a procedural map / island generator intended for games. It focuses on generating continent/island style maps (coastlines, mountains, rivers, etc.) with a vector / polygonal structure rather than a full high-resolution tile grid. Originally written in ActionScript, this tool emphasizes generating aesthetically pleasing island maps with realistic natural features while keeping computational complexity manageable. It supports exporting to SWF (Flash) via appropriate tooling. The most important features I want are nice island/continent coastlines, mountains, and rivers. Non-goals include impassable areas (except for the ocean), maze-like structures, or realistic height maps.
Features
- Generates coastlines and island/continent outlines surrounded by water
- Computes elevation as distance from coastline, so that mountains tend to be furthest inland, enabling believable terrain gradient
- Generates rivers flowing down from valleys to the coast
- Uses a polygonal map structure (~1,000 polygons) rather than a huge grid of tiles, allowing for efficient region distinctions, road/river routing etc.
- Supports exporting to bitmap (tile map) while preserving underlying vector/polygon data to allow further game logic (territory, naming, etc.)
- Includes decorative features / modules like noisy coastline edges, roads spanning tree, lava etc. to add variety and more organic shapes
Categories
GamesLicense
MIT LicenseFollow mapgen2
You Might Also Like
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of mapgen2!