Gomapgen
A 2d map generator written in Go
Install / Use
/learn @cxong/GomapgenREADME
GoMapGen
A 2d map generator written in Go
$ go run main.go --algo=rogue
Using seed 1512389956399933000
+--------------------------------+
| WWWWWWW WWWW |
| W.....W W..W |
| W.....+## W..W WWWWWWW |
| WWW+WWW ##+..+## W.....W |
| # W..W ###+.....W |
| # W..W WWW+WWW |
| # WW+W # |
| # # # |
| # # # |
| # # # |
| # WW+W ## |
| # W..W # |
| WWW+WWW W..W # |
| W.....W W..W # |
| W.....W ##+.<+### # |
| W.....+## W..W # # |
| W.....W W..W ##### |
| WWW+WWW W..W # |
| ## WW+W # |
| # # # |
|WWWW+WWWW #### ### |
|W.......W # # |
|W.......W # # |
|W.......W # # |
|W.......+### # |
|W.......W WWW+WWW |
|W.......W W.....W |
|WWWWWWWWW W..>..W |
| WWWWWWW |
| |
| |
| |
+--------------------------------+
This map generator implements a number of different algorithms and can output to ASCII, CSV and TMX tile map.
See main.go for all the options.
--algo=rogue --width=30 --height=18

--algo=village

--algo=shop --width=16 --height=13

--algo=bspinterior --corridorWidth=2

--algo=bsp --width=24 --height=20

--algo=walk --width=16 --height=16 --iterations=500

--algo=interior --minroomsize=4 --maxroomsize=8 --width=24 --height=24

--algo=cell --width=24 --height=20 --template=kenney

Developer Getting Started
- Install go
go get github.com/cxong/gomapgen- Go to the source location, run
go run main.go - This should create a folder named
tmx_export/ - Install Tiled
- Open
tmx_export/map.tmxin Tiled - Look at the generated map!
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
