正在加载视频...

视频加载失败

My easy 3-step dungeon generation algorithm using Godot Tilemaps: 1️⃣ Spawn random rooms, merge overlapping rooms 2️⃣ Merge rooms with corridors until all are merged 3️⃣ You're done! ✌️ I don't get why people overcomplicate this 😅

17,891 次观看 • 1 年前 •via X (Twitter)

30 条评论

Robin | Game dev ᕕ(ᐛ)ᕗ 的头像
Robin | Game dev ᕕ(ᐛ)ᕗ1 年前

Maybe they complicate it because they dont want players to have to go through a corridor that's 20 tiles long, when most rooms are like 4 tiles high? :)

Sander Vanhove 的头像
Sander Vanhove1 年前

People like walking simulators, no? 😅

Sander Vanhove 的头像
Sander Vanhove1 年前

And of course everything is configurable to support bigger maps or rooms:

Sander Vanhove 的头像
Sander Vanhove1 年前

Walking through a generated dungeon:

thefernando 的头像
thefernando1 年前

realy like this style I should make things in this style.

Sander Vanhove 的头像
Sander Vanhove1 年前

Thank! I would say: Go for it! 😁

thefernando 的头像
thefernando1 年前

nice stuff I love when I see people simplifying things instead of over complicating them.

Sander Vanhove 的头像
Sander Vanhove1 年前

Exactly! People, and especially programmers, like to overthink systems from time to time 😅

GIGASWORD ~ Wishlist Now! 的头像
GIGASWORD ~ Wishlist Now!1 年前

I always love finding new ways to approach dungeon generation, thanks for posting this!

Sander Vanhove 的头像
Sander Vanhove1 年前

No problem! 😁

Svambo 的头像
Svambo1 年前

How does your corridor algorithm work? I'm working on something like this atm and it works pretty well most of the time, but in some rare cases I get 2 separate unconnected dungeons ...

Sander Vanhove 的头像
Sander Vanhove1 年前

I have classes for a room, a corridor and a merded collection of rooms and corridors. So I basically take one random room and connect it to another random room with a corridor. Put all of that in a merged collection. Repeat until everything is merged into one big dungeon. 😁

Sander Vanhove 的头像
Sander Vanhove1 年前

Do you think the content of the rooms could make up for the randomness?

Redbaboon Games 的头像
Redbaboon Games1 年前

Maybe, the problem is, actually its too much random, the rooms have to be more logic in therm of size, also remember the sizes of the sprites if the generated dungeons, rooms are too small it can be problematic.

mrimvo 的头像
mrimvo1 年前

Classic Nethack style.

Sander Vanhove 的头像
Sander Vanhove1 年前

Yeah, just rectangles and some lines between them!

Sander Vanhove 的头像
Sander Vanhove1 年前

Makes sense 😅

Johannes Ebner 的头像
Johannes Ebner1 年前

The complexity is still in the spawning rooms & connecting part, isn't it? I mean you need an algorithm with quite a few constraints.

Sander Vanhove 的头像
Sander Vanhove1 年前

My algorithm just takes a random square in both rooms it's trying to connect and then put a corridor there 😅 It's really naive.

Johannes Ebner 的头像
Johannes Ebner1 年前

Do you have any checks on what is a valid room? A valid corridor? How many bends a corridor should have at least? How do you check for connections? 😂

Johannes Ebner 的头像
Johannes Ebner1 年前

IOW: If you say it's simple, I think you're either underplaying your skills or you're arrogant. Having met you personally, it's the first, as you're not arrogant 😂

Sander Vanhove 的头像
Sander Vanhove1 年前

Ok maybe you're right 🤔 I do have some classes set up that have a notion of what a room and a corridor are and a class that can merge any number of these rooms and corridors. Maybe I'm underestimating the complexity 😅

Speiger 的头像
Speiger1 年前

That only works if your working with a 100% dynamic system. Where spawns etc are not user defined. Or as a tool to build templates that you can then edit. But the moment you want to have a set of handcrafted rooms that are then dynamically layed out then your approach fails.

spaceghost e/🇺🇸 的头像
spaceghost e/🇺🇸1 年前

corridors and rooms is classic but unless u like that like cartography crawlers people like a bit more variation besides single-tile one-path corridors and rooms i personally love this style, i still play castle of the winds

Sander Vanhove 的头像
Sander Vanhove1 年前

Yeah, I guess it also depends on how long they have to play the game 🤔

Joseph Ensminger 的头像
Joseph Ensminger1 年前

Can you make the code/scene available?

zbigniewcebula 的头像
zbigniewcebula1 年前

Because your algo sucks.

Sander Vanhove 的头像
Sander Vanhove1 年前

Well, that's not nice 🤔

zbigniewcebula 的头像
zbigniewcebula1 年前

Yup, it happens.

RedDeer.Games 的头像
RedDeer.Games1 年前

🚨 New HIT on Nintendo! 🚨 🎮 My Cozy Room – the ultimate sandbox game to unleash your creativity! 🛋️Design dream spaces with 500+ furniture items & 30+ styles. 👉 Play now: #Nintendo #Indiegames #RedDeerGames #MyCozyRoom

相关视频

AOC Last Night did a 1-Hour Long Instagram Live About the Possibilities of Biden Dropping out. It's quite interesting. I have summarized some of her more important statements (full video below): - "If you're falling out of a coconut tree, God bless you. If you're riding with the President, God bless. I'm not an open-convention person. I think that is crazy." - “If they’re going to come out and say all their little things on background, off the record, but they’re not going to be fully honest, I’m going to be honest for them. I’m in these rooms. I see what they say in conversations,” - "I'm just going to say it: If you think that there is consensus among the people who want Joe Biden to leave... that they will support Vice President Harris, you would be mistaken. They are interested in removing the whole ticket." - "Maybe I'm being too risk-averse. Maybe I'm not seeing what other people are seeing. I leave space for that. And like, whatever. Like, maybe I'm taking a big L." - “I’m not here to tell you that if Joe Biden is the nominee, he’s definitely going to win because I don’t think if anybody is the nominee, we’re definitely going to win. I’m here to tell you that a huge amount of the donor class and a huge amount of these elites and a huge amount of these folks in these rooms that I see that are pushing for President Biden to not be the nominee also are not interested in seeing the Vice President being the nominee.” - "That's bullshit. If you have an opinion, say it with your chest and say it in public. That's a bunch of horseshit." "The mechanisms by which this decision is being made is concerning me. When I'm talking to folks in rooms, I hear, 'My donor this, my donor that.' Those are the inputs that I am hearing reflected by my colleagues, it's not, 'My voters this, my voters that.'" - "And you know, like, oh man, like, you're a neolib, sellout careerist. I mean, if I were here to sell out, I'd be making — there are much more profitable, peaceful ways, I assure you."

Brian Krassenstein

182,794 次观看 • 2 年前

There are 22 million healthcare workers in America. And I think we just realized how powerful we could become if we stopped letting ourselves stay divided. Something happened in DC this week that was bigger than politics, bigger than titles, and bigger than any one specialty. For the first time in a long time, I sat in rooms with nurses, techs, therapists, physicians, and healthcare workers across every part of medicine, and nobody cared what letters were behind our names. We were united by the same reality: The healthcare system is failing both patients and the people trying to care for them. For years, healthcare workers have been separated into categories, hierarchies, societies, and specialties. But sitting together this week, it became impossible not to ask the question: Why have we been kept so separate? Because divided people are easier to silence and control. But there are 22 million of us. Twenty two million people who see what is happening inside hospitals, clinics, operating rooms, and patient rooms every single day. You can call me whatever you want, but I’m not showing up as “just” a doctor anymore. I’m showing up as a healthcare worker, proud to stand alongside my colleagues at every stage of healthcare. I’m done asking permission to advocate for patients and for the future of healthcare. We know these problems because we are the ones living them. And when healthcare workers unite instead of staying divided, we become something incredibly powerful. Thank you FIGS for bringing healthcare workers together in DC this week and helping spark conversations and advocacy that felt bigger than any one title or profession. This is how we change healthcare. Together.

Elisabeth Potter MD

26,830 次观看 • 2 个月前

🚨 AMERICANS ARE FIGHTING THE ISLAMIZATION! WOW - MURPHY, TEXAS WARRIOR EXPOSES SHARIA CREEP: "SAY NO TO PRAYER ROOMS, HALAL MEALS, LOUD CALLS TO PRAYER... IT'S POLITICAL ISLAM, NOT RELIGION!" A seasoned world-traveler (lived in Kuwait 3 years, Israel, Bahrain, Emirates) stood firm at last night's council meeting and shredded the "tolerance" myth behind Islamic center expansions: Our government allows Sharia spread under 'freedom, diversity, religion' - but this is POLITICAL ISLAM. She has lived in many Muslim countries (Kuwait, Bahrain, the Emirates) and has seen what happens when mosques come to neighborhoods. Our government calls it "diversity and tolerance," but it's really about making special demands that change our way of life. She wants citizens to say NO to these special demands... 1.🔺 Hijab/burqa in schools...France banned them for safety and national identity. → Say NO. A 7-year-old girl doesn't need to wear it. 2.🔺 Kids fasting during Ramadan They want kids to fast all day (no food, water, candy). Quran says: Skip if sick, pregnant, nursing, or young — make it up later. → Say NO. Protect kids' health. 3. 🔺Prayer rooms in schools or offices They want special rooms 5 times a day. Quran says: Pray at your desk, in the car, on stairs — no special room needed. Baptists don't get Bible rooms. Catholics don't get daily mass rooms. → Say NO. 4. 🔺Halal meals in schools, hospitals, offices Who pays? Taxpayers. Quran says: Eat normal food if no halal is available — don't starve. → Say NO. Don't spend extra money. 5. 🔺 Loudspeakers for call to prayer 5 times a day In the desert long ago, people needed loud calls. Now we have cell phones and alarms. If you allow it, Baptists will blast Billy Graham, Mormons will play choir music. → Say NO. Use your phone. 6. 🔺 Women-only walled-off areas in restaurants, salons, hospitals They want separate spaces so women aren't seen with hair showing. Small businesses would have to build walls — huge cost. → Say NO. 7. 🔺 Her closing point: Would we do any of this for Baptists, Catholics, Hindus? - NO! Hindus never threatened to cut throats. I've seen it overseas - we must say NO now before it spreads. Vote YES on the ballot measure to BAN SHARIA LAW (coming up in the primary)

Amy Mek

48,104 次观看 • 6 个月前