Author Topic: Corridors considered harmful  (Read 11028 times)

SarahW

  • Acolyte
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Corridors considered harmful
« Reply #60 on: November 11, 2018, 11:59:00 PM »
No procedural content generation => not a roguelike.

Not necessarily, it depends on how it's done. There is a wide area between having something have static dungeons, and having something be "truly random". By definition, truly random ends up looking like a mess.

What you want in something in between. You have a limited number of dungeon designs, but the game shuffles between these different designs. You might have only three designs, or you might have over 2,000 designs.

The way I figured it out is to create mini-levels, and have a state machine shuffle randomly between different levels. There seems be a lack of tutorials on it, is how to specifically do procedural randomness. Most of the few out there is either behind a paywall, or it's in some other language besides Ruby.

On the other hand, badly written random can look like this.

Code: [Select]
*  *  *  *  #  *  *  *  #  *  #  * 
 *  *  *  *  *  #  *  #  *  *  *  * 
 *  *  #  *  #  *  *  *  *  #  *  * 
 *  *  *  *  *  #  *  *  #  *  *  # 
 *  *  #  *  #  *  *  #  *  *  *  # 
 *  *  #  #  *  *  #  *  *  *  #  * 
 #  *  *  *  *  *  *  *  #  *  *  * 
 *  *  #  *  *  #  *  #  *  *  #  * 
 *  *  *  #  *  *  #  *  *  *  #  * 
 *  *  #  #  *  *  *  *  *  *  #  * 
 *  #  *  *  #  *  *  *  #  #  *  * 
 *  *  #  #  *  *  *  *  #  *  #  * 
 *  *  #  *  #  *  *  *  #  *  *  * 
 *  *  #  *  *  *  *  *  *  *  *  # 
 *  #  *  *  #  *  *  #  *  *  *  # 
 *  *  #  #  *  *  #  *  *  *  *  # 
 *  *  *  #  *  *  *  *  *  *  *  * 
 #  *  *  *  *  #  #  *  *  #  *  *

Not the kind of level I really get anything out of playing. And it creates more work for the programmer for people that is just beginning to code.

Skeletor

  • Protector of the @
  • *****
  • Posts: 537
  • villains ftw
    • View Profile
Re: Corridors considered harmful
« Reply #61 on: November 12, 2018, 06:42:43 AM »
I see; semi-random generation through randomly selected predetermined chunks. That's an interesting concept indeed, as long as there is plenty of chunks available so that dungeons never feel samey.
What I enjoy the most in roguelikes: Anti-Farming and Mac Givering my way out. Kind of what I also enjoy in life.

SarahW

  • Acolyte
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Corridors considered harmful
« Reply #62 on: November 12, 2018, 07:46:54 AM »
I see; semi-random generation through randomly selected predetermined chunks. That's an interesting concept indeed, as long as there is plenty of chunks available so that dungeons never feel samey.

Just finished it in a couple of days. It's not going to be perfect. This one is called Nihilist.^ ^

Troubler

  • Acolyte
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Corridors considered harmful
« Reply #63 on: November 20, 2018, 02:45:14 AM »
I'll go a step farther and say dungeons are harmful.
I'm sick of being underground all the time, I want to do something else.
Procedural generation can be applied to a lot more than just dungeons.

SarahW

  • Acolyte
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Corridors considered harmful
« Reply #64 on: November 28, 2018, 03:08:19 PM »
I've been thinking about that actually, would a roguelike even work inside the context of a spaceship?

Historically I'd make a spaceship be represented by letter P, and an enemy spaceship called E.

But increasingly, I'm considering having the Spaceship be the dungeon itself. But that in itself would largely change how one would go about doing procedural generation. Something like, the spaceship design reminds constant, but the surrounded space is procedurally generated. The spaceship itself would be something like a "home" state.

Troubler

  • Acolyte
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Corridors considered harmful
« Reply #65 on: December 02, 2018, 01:28:53 AM »
I've been thinking about that actually, would a roguelike even work inside the context of a spaceship?

Historically I'd make a spaceship be represented by letter P, and an enemy spaceship called E.

But increasingly, I'm considering having the Spaceship be the dungeon itself. But that in itself would largely change how one would go about doing procedural generation. Something like, the spaceship design reminds constant, but the surrounded space is procedurally generated. The spaceship itself would be something like a "home" state.
I've seen it done a few times before, both inside a spaceship dungeon and piloting a spaceship.
But usually when it is a dungeon, the spaceship just kind of works as a generic dungeon with a theme.
Prospector had space exploration in a spaceship, and Gearhead 2 had space combat with some simple physics.

I think another game by the guy who made gearhead called deadcold had a unique dungeon design for a space station.
But then it was pretty simplistic and not complete. Though its layout seemed pretty modular like what you describe.