Gr

Graph-Based Dungeon Generator

Hacker News

Graph-Based Dungeon Generator

Hey HN! I've been working on procedural generation for some time now, and more precisely on procedurally-generated dungeons. I had already explored the basic implementations using binary-space partitioning for example (see https://github.com/halftheopposite/dungeon ), but the results were usually quite primitive and required a lot of post-processing to make the dungeons realistic and playable. This led me to look at alternatives and one of them were graphs. Basing your generator on graphs makes it possible to easily define constraints and to add new rules over time. Finding existing material on the topic is hard, and most existing documentations are either PhD thesis, long white papers, or copy-cats of the same articles and implementations. Luckily, a few person out there have done fabulous work at documenting existing methods and video games analysis such as: - BorisTheBrave ( https://www.boristhebrave.com ) - Watabou ( https://twitter.com/watawatabou ) - Oskar Stålberg ( https://twitter.com/OskSta ) If you have existing documentation I'd love to have as many links as possible! The core challenge to generating a dungeon is placing rooms and corridors given the constraints you define. For example: if you have a node "A" that have two children nodes "A-1" and "A-2", you need to be able to backtrack if one of the two children cannot be placed no matter the number of reties you define. The easiest approach to this is using a breadth-first tree traversal and a queue of treated rooms. However, my current generator has some limitations such as the impossibility to generate circular sections (ex: A → B → C → A) that would make the player's experience much more challenging. I will try to iterate on this in the coming weeks, but any help on the topic would be very welcomed! Anyway, I hope that you enjoy using the generator, looking at the code, giving feedback, creating your game, or whatever you intend to do with it and that this contribution will help others that have trouble kickstarting their own!

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
83%83% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, existing, ide · Missing: https docs, excited, just released
80%80% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoStrong fit for a featured deal · Missing: plus, platform, intuitive
57%57% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, using, code · Missing: mac, agents, macos
51%51% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: video, way · Missing: mobile apps, ios, personal
28%28% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Ly
Lyric Graph Generator50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lyric Graph Generator

Hacker News2
Eg
Egsis: Exploratory Graph-Based Semi-Supervised Image Segmentation36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Egsis: Exploratory Graph-Based Semi-Supervised Image Segmentation

Hacker News2
El
EliasDB a graph based database in Go66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

EliasDB a graph based database in Go

Hacker News6
Gr
GraphQL+-, a Variant of GraphQL for Graph DBs76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GraphQL+-, a Variant of GraphQL for Graph DBs

Hacker News7
A
A graph of the 'related entries' on Stanford Encyclopedia of Philosophy40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A graph of the 'related entries' on Stanford Encyclopedia of Philosophy

Hacker News1
Co
Covid-19, Graph the Curve46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Covid-19, Graph the Curve

Hacker News2
Rh
Rhythmic Graph55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rhythmic Graph

Hacker News1
El
Election Lie Graph32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Election Lie Graph

Hacker News2
We
Weighted # of Lies from Each Candidate (Graph)51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Weighted # of Lies from Each Candidate (Graph)

Hacker News3
Mo
MongoDB + GraphViz = mongo-graph57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MongoDB + GraphViz = mongo-graph

Hacker News14