Author Topic: Infra Arcana map generation demo  (Read 9621 times)

NON

  • Rogueliker
  • ***
  • Posts: 349
  • Karma: +0/-0
    • View Profile
    • Infra Arcana
    • Email
Infra Arcana map generation demo
« on: December 19, 2013, 09:27:08 AM »
I did some videos to show the map generation process of Infra Arcana. Maybe someone here is interested in this :)

http://www.youtube.com/watch?v=b6Kz2qMyKww

http://www.youtube.com/watch?v=_oRKLYqB4GI

It's a pretty simple Rogue-style 3x3 map, with some extra stuff added to it.
Happy is the tomb where no wizard hath lain and happy the town at night whose wizards are all ashes.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Infra Arcana map generation demo
« Reply #1 on: December 19, 2013, 12:14:20 PM »
Adding extra rooms after basic generation is a trick I also learned while developing Kaduria. That way you can simply look for available space and fill it, and those rooms even seem to be logical (storerooms etc.)

That second generation with some kind of cavern looks interesting. How do you avoid the cavern breaking the basic structure (badly)? Or is it supposed to do it?

NON

  • Rogueliker
  • ***
  • Posts: 349
  • Karma: +0/-0
    • View Profile
    • Infra Arcana
    • Email
Re: Infra Arcana map generation demo
« Reply #2 on: December 19, 2013, 12:27:23 PM »
Quote from: Krice
That second generation with some kind of cavern looks interesting.
Yeah that map turned out pretty nice. A central cave with rooms surrounding it :)

Quote from: Krice
How do you avoid the cavern breaking the basic structure (badly)? Or is it supposed to do it?
If I recall correctly the cave simply fills the empty space between rooms and corridors. Haven't looked at that code for a while, but it's a good guess that it marks every floor cell + every cell adjacent to floor cells as blocking (excluding cells inside the area the cave originates from) - then a floodfill converts all walls to floor, and adjacent walls to cave walls.
Happy is the tomb where no wizard hath lain and happy the town at night whose wizards are all ashes.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: Infra Arcana map generation demo
« Reply #3 on: December 20, 2013, 09:48:29 AM »
If I recall correctly the cave simply fills the empty space between rooms and corridors.

Yet it looks like the cavern is generated over the existing rooms and merges them in the cavern. I guess it doesn't matter as far as everything is connected.

NON

  • Rogueliker
  • ***
  • Posts: 349
  • Karma: +0/-0
    • View Profile
    • Infra Arcana
    • Email
Re: Infra Arcana map generation demo
« Reply #4 on: December 20, 2013, 12:10:36 PM »
If I recall correctly the cave simply fills the empty space between rooms and corridors.

Yet it looks like the cavern is generated over the existing rooms and merges them in the cavern. I guess it doesn't matter as far as everything is connected.
Ah yeah it does seem to modify the map pretty heavily. Well I'm planning to do a bunch of refactoring and add tests for map generation, so things may change (or at least be more tightly controlled).
Happy is the tomb where no wizard hath lain and happy the town at night whose wizards are all ashes.