<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Channel on Nathaniel Inman</title><link>https://nathanielinman.com/tags/channel/</link><description>Recent content in Channel on Nathaniel Inman</description><generator>Hugo -- 0.147.7</generator><language>en-us</language><copyright>Nathaniel Inman</copyright><lastBuildDate>Mon, 06 Aug 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://nathanielinman.com/tags/channel/index.xml" rel="self" type="application/rss+xml"/><item><title>Generating Exhumed River Channel</title><link>https://nathanielinman.com/generating-exhumed-river-channel/</link><pubDate>Mon, 06 Aug 2018 00:00:00 +0000</pubDate><guid>https://nathanielinman.com/generating-exhumed-river-channel/</guid><description>&lt;p>I recently did some work in generating rivers in a 2d game. Revisiting this work to create an exhumed river channel, I decided it might be fun to revisit how to generate it to make the channel look more realistic. Instead of using a drunken walker, this is a more expensive but interesting map generator:&lt;/p>
&lt;ul>
&lt;li>Start by generating 2d simplex noise where&lt;/li>
&lt;li>less &amp;lt;0.6 is floor&lt;/li>
&lt;li>rest is walls&lt;/li>
&lt;li>Generate terminal lines at each map exit (north, south, east, west). Shuffle those lines and randomly choose a start and end location for the river based on two of those lines.&lt;/li>
&lt;/ul>
&lt;p>Later you can add another line with terminal point to allow a split river channel&lt;/p></description></item></channel></rss>