Extraneous doors

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Extraneous doors

#1 Post by Grey »

This has irritated me for a while actually... Currently dungeons end up with a lot of pointless doors. It makes the game look incredibly sloppy and unpolished.

I've given it some hard thought and I think there a simple test to cut out 99% of these pointless doors. For each door placed check the 4 squares immediately above/below/left/right of the door square. To be a door it must be satisfy the following condition:

Code: Select all

 . 
 +   or  .+.
 . 
Where + is the door in question and . must be a passable floor tile. If it fails both conditions it should be a wall.

Obviously this needs some testing, but I've been analysing the dungeon layouts and I can't see any flaws in it. It cuts out doors into nowhere and doors in diagonal junctions and doors that can be walked around anyway.
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Extraneous doors

#2 Post by darkgod »

Ahah funny you post that, I committed a fix for the doors yesterday :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply