<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dungeon level | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/dungeon-level/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 12 Nov 2020 20:45:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>dungeon level | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>A different way of generating a dungeon level</title>
		<link>https://learncgames.com/a-different-way-of-generating-a-dungeon-level/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-different-way-of-generating-a-dungeon-level</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 14 Nov 2020 00:00:05 +0000</pubDate>
				<category><![CDATA[design]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[dungeon level]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=1806</guid>

					<description><![CDATA[<p>I talked previously on how I generated dungeon levels by splatting down squares and circles of random sizes and then linked them together by corridors. But another way that might make levels look not quite so procedurally generated is to first compile a catalogue of dungeon rooms.  These are &#8220;hand drawn&#8221; in a master text [&#8230;]</p>
The post <a href="https://learncgames.com/a-different-way-of-generating-a-dungeon-level/">A different way of generating a dungeon level</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:380,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/artie_navarre-66276\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3525140&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:381,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3525140&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 14:34:24&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 01:48:55&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-15 23:16:21&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-28 10:02:24&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 01:35:31&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-02 14:56:49&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-05 18:25:07&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-12 05:11:27&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-12 05:11:27&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_1809" aria-describedby="caption-attachment-1809" style="width: 300px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="size-medium wp-image-1809" src="https://learncgames.com/wp-content/uploads/2020/11/not-dead-3525140_640-300x300.jpg" alt="Dungeon" width="300" height="300" srcset="https://learncgames.com/wp-content/uploads/2020/11/not-dead-3525140_640-300x300.jpg 300w, https://learncgames.com/wp-content/uploads/2020/11/not-dead-3525140_640-150x150.jpg 150w, https://learncgames.com/wp-content/uploads/2020/11/not-dead-3525140_640.jpg 640w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-1809" class="wp-caption-text">Image by <a href="https://pixabay.com/users/artie_navarre-66276/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3525140">Artie_Navarre</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3525140">Pixabay</a></figcaption></figure>
<p>I talked previously on <a title="Link to blog entry on generating a dungeon level" href="https://learncgames.com/thoughts-on-generating-a-dungeon-level/" target="_blank" rel="noopener noreferrer">how I generated dungeon levels</a> by splatting down squares and circles of random sizes and then linked them together by corridors.</p>
<p>But another way that might make levels look not quite so procedurally generated is to first compile a catalogue of dungeon rooms.  These are &#8220;hand drawn&#8221; in a master text file, perhaps something like this:</p>
<pre>*****|****
*        *
=        *
*        =
*        *
*****|****
</pre>
<p>Where * marks the walls,| a possible location of a vertical running corridor and = the same for horizontal running corridor. Each entry in the catalogue has a size (vertical, horizontal) e.g. (6, 11) for the room above and the generator program has to find space for this and then see which of the four doors it can connect to.</p>
<p>You can decide if you want a dead end room or one with more doorways. Any unused doorways are just replaced with a * for wall. Single door rooms might have a secret door that the player has to first discover and unlock/open.</p>
<p>When the generator starts, it reads in the master file, builds a list of rooms and then starts using them to generate levels.</p>
<p>The advantage of the catalogue method is that you are free to create as many room sizes and shapes as you wish and they don&#8217;t have to be rectangular or square. Yes the level is procedurally generated but using this methods makes it look less so. You can have very small rooms (<em>2 x 2 anyone?</em>)  or massive hallways with lots of columns.</p>The post <a href="https://learncgames.com/a-different-way-of-generating-a-dungeon-level/">A different way of generating a dungeon level</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1806</post-id>	</item>
	</channel>
</rss>
