<?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>Screwfly Studios</title>
	<atom:link href="http://screwflystudios.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://screwflystudios.com</link>
	<description></description>
	<lastBuildDate>Thu, 07 Mar 2013 12:07:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Zafehouse: Diaries needs your support!</title>
		<link>http://screwflystudios.com/2013/03/zafehouse-diaries-needs-your-support/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zafehouse-diaries-needs-your-support</link>
		<comments>http://screwflystudios.com/2013/03/zafehouse-diaries-needs-your-support/#comments</comments>
		<pubDate>Thu, 07 Mar 2013 11:52:59 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://screwflystudios.com/?p=124</guid>
		<description><![CDATA[]]></description>
				<content:encoded><![CDATA[<p><center><a href="http://steamcommunity.com/sharedfiles/filedetails/?id=97230840"><img src="http://assets.screwflystudios.com/pr/gl_screwfly.png" /></a><br />
<a href="http://www.zafehouse.com/buy"><img src="http://assets.screwflystudios.com/pr/zd_screwfly.png" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2013/03/zafehouse-diaries-needs-your-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zafehouse: Diaries v1.1.8 released!</title>
		<link>http://screwflystudios.com/2013/03/patch-v1-1-8-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=patch-v1-1-8-released</link>
		<comments>http://screwflystudios.com/2013/03/patch-v1-1-8-released/#comments</comments>
		<pubDate>Fri, 01 Mar 2013 11:54:46 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Zafehouse]]></category>

		<guid isPermaLink="false">http://screwflystudios.com/?p=129</guid>
		<description><![CDATA[Patch v1.1.8 for Zafehouse: Diaries is now available. This patch improves a number of areas of the game and adds a solid dose of content, including a new dilemma, Overwhelmed, and showering, an idle task. The custom occupation editor has been expanded on, making it more flexible than ever and we&#8217;ve even implemented weather effects [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://forums.screwflystudios.com/index.php/topic,339.0.html"><img style="float: right; margin-left: 12px; margin-bottom: 0px" src="http://assets.screwflystudios.com/pr/v118_promo.png" /></a> <strong>Patch v1.1.8 for Zafehouse: Diaries is now available.</strong> This patch improves a number of areas of the game and adds a solid dose of content, including a new dilemma, Overwhelmed, and showering, an idle task. </p>
<p>The custom occupation editor has been expanded on, making it more flexible than ever and we&#8217;ve even implemented weather effects to keep things interesting.</p>
<p>The Overwhelmed dilemma has a chance to occur when your group faces staggering odds after breaching a location. You&#8217;ll be able to retreat to, hopefully, a safe location or, if you&#8217;re feeling lucky, try your hand at more heroic options.</p>
<p>Getting around during a zombie apocalypse is not the cleanest affair, so your survivors will accumulate grime and if left idle, will now occasionally wash themselves. Doing so will provide them with a small morale boost.</p>
<p>We felt the towns of Zafehouse: Diaries were drier than they should be, so now it&#8217;ll occasionally rain and storm. As you&#8217;d expect, noise doesn&#8217;t travel as far under these conditions, so be sure to take advantage of the weather when you can!</p>
<p>Several dilemmas, including the Lynch Mob, Moby Dick and the Girl Scout Family, now feature an assessment of your survivors&#8217; chances if you decide to fight. As a result, it should be easier to make more informed, strategic decisions regarding these encounters.</p>
<p>Finally, for users with high-resolution displays, a scaling option is now included so that game takes up most the screen. It is currently experimental, so if it doesn&#8217;t work as expected, let us know so we can tweak it!</p>
<p>The update includes several other tweaks, fixes and improvements, all of which are <a href="http://forums.screwflystudios.com/index.php/topic,339.0.html">mentioned in the patch notes on our forums</a>.</p>
<p>Direct purchasers and GamersGate customers, the patch can be downloaded from our <a href="http://www.zafehouse.com/support">support page</a>. For Desura and GOG users, please use the facilities provided by these services to update the game. Note that updates from these distributors may be delayed while the patch is approved.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2013/03/patch-v1-1-8-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zafehouse: Diaries v1.1.7 now available!</title>
		<link>http://screwflystudios.com/2013/01/patch-v1-1-7-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=patch-v1-1-7-released</link>
		<comments>http://screwflystudios.com/2013/01/patch-v1-1-7-released/#comments</comments>
		<pubDate>Thu, 10 Jan 2013 11:55:31 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Zafehouse]]></category>

		<guid isPermaLink="false">http://screwflystudios.com/?p=132</guid>
		<description><![CDATA[We&#8217;re happy to announce the release of patch v1.1.7 for Zafehouse: Diaries. With this patch, we&#8217;ve taken the opportunity to update a number of images, including all of the in-built survivor portraits and several dilemmas, with high-quality replacements. We&#8217;ve also added 16 completely new images for in-game items, which will appear as photos in the [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://forums.screwflystudios.com/index.php/topic,277.0.html"><img style="float: right; border: solid 0px #fff; margin-left: 12px; margin-bottom: 12px" src="http://assets.screwflystudios.com/pr/v117_promo.png" /></a> <strong>We&#8217;re happy to announce the release of patch v1.1.7 for Zafehouse: Diaries.</strong> With this patch, we&#8217;ve taken the opportunity to update a number of images, including all of the in-built survivor portraits and several dilemmas, with high-quality replacements. We&#8217;ve also added 16 completely new images for in-game items, which will appear as photos in the diary when you discover them for the first time.</p>
<p>On the gameplay side, v1.1.7 features a new dilemma, called &#8220;The Believers&#8221;, as well as the Priest occupation to accompany it. A new ranged weapon and ammunition type has been added &#8212; the crossbow and quarrels respectively. While the crossbow has a slow rate of fire, it makes up for it by being extreme powerful and very quiet. There&#8217;s also the possibility of retrieving fired quarrels when cleaning corpses after a fight, making it more economical than the bullet-based ranged weapons.</p>
<p>Barricading has been reworked significantly. Secured and fortified locations will now impart meaty bonuses to spotting and resilience; noise levels inside will be reduced and survivors will sometimes automatically attack zombies through barricades. Barricades now also last longer against zombie attacks.</p>
<p>We&#8217;ve also made a thrilling change to the Infection dilemma. Along with the usual &#8220;Let them live&#8221; and &#8220;Kill&#8221; options, there will sometimes be a third option with the potential to save the survivor and rid them of the infection. The price, however, may be too great&#8230;</p>
<p>These are the biggest changes in v1.1.7, but we&#8217;ve added a bunch of visual tweaks, balance changes and bug fixes we&#8217;re sure you&#8217;ll appreciate, so check out the <a href="http://forums.screwflystudios.com/index.php/topic,277.0.html">full patch notes on the forums</a>.</p>
<p>Direct purchasers and GamersGate customers, the patch can be downloaded from our <a href="http://www.zafehouse.com/support">support page</a>. For Desura users, please use the Desura client to update the game.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2013/01/patch-v1-1-7-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zafehouse: Diaries v1.1.6 &#8211; Play Road Kill, an all-new game mode</title>
		<link>http://screwflystudios.com/2012/12/zafehouse-diaries-v1-1-6-is-out-play-road-kill-an-all-new-game-mode/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zafehouse-diaries-v1-1-6-is-out-play-road-kill-an-all-new-game-mode</link>
		<comments>http://screwflystudios.com/2012/12/zafehouse-diaries-v1-1-6-is-out-play-road-kill-an-all-new-game-mode/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 11:57:14 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Zafehouse]]></category>

		<guid isPermaLink="false">http://screwflystudios.com/?p=137</guid>
		<description><![CDATA[It&#8217;s patch time again folks, and v1.1.6 is a beauty! The most exciting addition is an entirely new game mode, called &#8220;Road Kill&#8221;. Search the town and scavenge for parts for a broken-down vehicle. Your survivors will then have to fix the vehicle before they can drive themselves to safety. To support this new mode, [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://forums.screwflystudios.com/index.php/topic,236.0.html"><img style="width: 220px; height: 220px; float: right; border: solid 1px #000; margin-left: 12px; margin-bottom: 12px" src="http://assets.screwflystudios.com/zafehouse/uploads/2012/12/roadkill_promo_220.jpg" /></a> It&#8217;s patch time again folks, and v1.1.6 is a beauty!</p>
<p>The most exciting addition is <b>an entirely new game mode, called &#8220;Road Kill&#8221;</b>. Search the town and scavenge for parts for a broken-down vehicle. Your survivors will then have to fix the vehicle before they can drive themselves to safety. To support this new mode, we&#8217;ve not only added new content, but modified existing dilemmas and events to reflect the altered objective.</p>
<p>The best thing about Road Kill is that rescue is now entirely in your hands &#8212; the game won&#8217;t end unless you drive out&#8230; or die. Even if you do make it out alive, relationships and the supplies you&#8217;ve gathered play an important role in just how well you do. How these affect the end result, well, you&#8217;ll have to play and find out!</p>
<p>Road Kill represents the largest addition to the game since its release; it really changes the way you approach the game. You&#8217;ll have to re-examine those rock-solid strategies that served you well in Classic mode and try different tactics if you want to succeed. </p>
<p>For players who like to share their games, you can now enable sharing functionality via the options menu. When active, hovering over diary entries will show a &#8220;copy to clipboard&#8221; button. This should make it easier to quickly paste text into forum posts or documents. We hope to expand this feature in the future to support popular social media sites.</p>
<p>As usual, a complete list of fixes, changes and improvements can be <a href="http://forums.screwflystudios.com/index.php/topic,236.0.html">found on the forums</a>.</p>
<p>Direct purchasers and GamersGate customers, the patch can be downloaded from our <a href="http://www.zafehouse.com/support">support page</a>. For Desura users, please use the Desura client to update the game.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2012/12/zafehouse-diaries-v1-1-6-is-out-play-road-kill-an-all-new-game-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zafehouse: Diaries site is live</title>
		<link>http://screwflystudios.com/2012/06/zafehouse-diaries-site-is-live/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zafehouse-diaries-site-is-live</link>
		<comments>http://screwflystudios.com/2012/06/zafehouse-diaries-site-is-live/#comments</comments>
		<pubDate>Tue, 12 Jun 2012 01:16:10 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Zafehouse]]></category>

		<guid isPermaLink="false">http://screwflystudios.com/?p=116</guid>
		<description><![CDATA[We&#8217;re getting close now. The site is now live and we&#8217;ll be adding more info, screenshots and other media over the next few weeks. Note that the game is in heavy development and the game&#8217;s features and design are not yet final. Head on over to sign up for updates, follow us on Twitter or [...]]]></description>
				<content:encoded><![CDATA[<p>We&#8217;re getting close now. <a href="http://www.zafehouse.com/">The site is now live</a> and we&#8217;ll be adding more info, screenshots and other media over the next few weeks.</p>
<p>Note that the game is in heavy development and the game&#8217;s features and design are not yet final.</p>
<p>Head on over to sign up for updates, follow us on Twitter or just drop by the forums and say hi.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2012/06/zafehouse-diaries-site-is-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zafehouse makes the move to Direct3D… without the 3D bit</title>
		<link>http://screwflystudios.com/2011/12/zafehouse-makes-the-move-to-direct3d%e2%80%a6-without-the-3d-bit/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zafehouse-makes-the-move-to-direct3d%25e2%2580%25a6-without-the-3d-bit</link>
		<comments>http://screwflystudios.com/2011/12/zafehouse-makes-the-move-to-direct3d%e2%80%a6-without-the-3d-bit/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 01:25:06 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[direct3d]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[gdi+]]></category>
		<category><![CDATA[vb.net]]></category>
		<category><![CDATA[zafehouse]]></category>

		<guid isPermaLink="false">http://0daystudios.com/?p=27</guid>
		<description><![CDATA[About three weeks ago, I put the finishing touches on the Direct3D 9 renderer for Zafehouse 2. Previously, the game exclusively used GDI+, the default graphics API for .NET. Now it runs on a bizarre fusion, with Direct3D performing compositing and GDI+ painting the final image onto the screen. Well, except when I use native [...]]]></description>
				<content:encoded><![CDATA[<p>About three weeks ago, I put the finishing touches on the Direct3D 9 renderer for Zafehouse 2. Previously, the game exclusively used GDI+, the default graphics API for .NET. Now it runs on a bizarre fusion, with Direct3D performing compositing and GDI+ painting the final image onto the screen.</p>
<p>Well, except when I use native GDI calls to paint instead. Actually, now that I think about it, GDI+ doesn’t do a heck of a lot for Zafehouse 2 anymore.</p>
<p>Now, this change raises a number of questions: Why not use Direct3D for the entire process? Why change APIs in the first place? Isn’t the Direct2D API in DirectX 10+ basically what you’re describing?</p>
<p>These are all fair questions, and I’m going to try to answer them.<span id="more-27"></span></p>
<h3>Why not use Direct3D for the whole shebang?</h3>
<p>Because I’ve already done a lot of groundwork for image rendering that replacing the engine wholesale would add a lot of time to the development process. Considering the game is already years overdue, I doubt anyone would be excited about the news of me delaying the game just to rewrite a chunk of code that doesn’t need to be rewritten. It all works fine, I just needed something more powerful than GDI+ to get the heavy lifting done.</p>
<h3>Why move to Direct3D in the first place?</h3>
<p>Primarily, it was a question of speed. Secondarily, I wanted to improve my knowledge of the DirectX API, having already implemented my own xWMA audio engine, which relies on the XAudio2 API. So the game already depended on DirectX, through the managed SlimDX wrapper.</p>
<h3>Isn’t what you’ve described basically Direct2D?</h3>
<p>It kind of is, and I could have just used the Direct2D API to quickly accomplish the GDI/GDI+/Direct3D fusion. Except Direct2D is a god-awful API. That, and Direct2D requires a DirectX 10-compliant graphics card to run, as well as Vista or Windows 7. It’s bad enough Z2 needs a DirectX 9.0c-compliant card now, and I didn’t want the make the situation worse. By writing my own routines, Z2 remains compatible with Windows XP and graphics cards circa 2005. Which is pretty good, all things considered.</p>
<h3>How does it work?</h3>
<p>In technical terms, Zafehouse 2 generates a couple of D3D-compatible textures from PNGs for compositing purposes at startup. This takes a couple of milliseconds. We also create some device independent bitmaps for direct blitting, but we don’t have to worry about that.</p>
<p>Whenever compositing is required, the game sends the textures to the D3D renderer, paints them to an off-screen surface, downloads the data into system memory, and then blits it directly to the GDI+ graphics object using GDI calls. In the case of Intel chips, we lock the surface and perform the blit directly. In the case of NVIDIA/AMD cards (which use dedicated video RAM), we copy the surface to another surface in system RAM using GetRenderTargetData, and then blit directly from that surface.</p>
<p>The reason for the two different paths is because it’s faster to copy directly on Intel GPUs as they don’t have dedicated video RAM so, essentially, locking the rendering surface is like locking another chunk of system RAM and doing a direct copy which, as you can imagine, is faster than copying it to another surface in system RAM and copying from that.</p>
<p>For cards with dedicated RAM, locking the video surface directly is actually slower. GetRenderTargetData is heavily optimised for these chips, so doing a surface to surface copy followed by a blit is actually pretty fast, even on crappy low-end NVIDIA/AMD cards.</p>
<p>The result is a GDI/GDI+ based graphics engine that offloads compositing (so alpha-blending and overlays) to video hardware. This means we can make use of hardware acceleration, as GDI+ is completely software driven.</p>
<p>It’s true that copying data from video RAM to system RAM is a bit of a performance hog (and I’m sure there are more than a few coders out there shaking their heads), but in practice it’s much, much faster than even the most heavily-optimised GDI+ routines.</p>
<h3>What is GDI+ good for then?</h3>
<p>Rendering text. My god, it’s great at that. I actually implemented text rendering via D3D in my renderer, but it looked like garbage. GDI+, on the other hand, looks amazing, as it supports a number of quality features D3D’s Font class does not (hinting, gamma correction, etc). So, I’m happy to take a minor performance hit to keep text rendering in software.</p>
<p>GDI+ also makes alpha-blending images easy, but the performance hit is quite nasty, even with double-buffering and razor-accurate dirty rectangles. Credit where credit’s due – it’s simple to use but not at all a great performer.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2011/12/zafehouse-makes-the-move-to-direct3d%e2%80%a6-without-the-3d-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zafehouse&#8217;s audio engine: ADPCM versus xWMA</title>
		<link>http://screwflystudios.com/2011/12/zafehouses-audio-engine-adpcm-versus-xwma/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=zafehouses-audio-engine-adpcm-versus-xwma</link>
		<comments>http://screwflystudios.com/2011/12/zafehouses-audio-engine-adpcm-versus-xwma/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 03:19:32 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://zeroday-studios.com/?p=80</guid>
		<description><![CDATA[I might have mentioned somewhere that I&#8217;ve converted Zafehouse 2&#8242;s audio engine from Managed DirectX to XAudio2 under SlimDX. I don&#8217;t believe I mentioned it here, though. First, history. The original Zafehouse lacked many elements one normally expects from a game. Graphics. A proper tutorial. Sound. These are slowly being rectified in the sequel. Graphics [...]]]></description>
				<content:encoded><![CDATA[<p>I might have <a href="http://twitter.com/logan_booker">mentioned somewhere</a> that I&#8217;ve converted Zafehouse 2&#8242;s audio engine from <a href="http://en.wikipedia.org/wiki/Managed_DirectX">Managed DirectX</a> to <a href="http://msdn.microsoft.com/en-us/library/ee415737(VS.85).aspx">XAudio2</a> under <a href="http://slimdx.org/">SlimDX</a>. I don&#8217;t believe I mentioned it here, though.</p>
<p>First, history. The original Zafehouse lacked many elements one normally expects from a game. Graphics. A proper tutorial. Sound. These are slowly being rectified in the sequel. Graphics are being <a href="http://www.playwrite-blog.net/zafehouse-2/help-zafehouse-2/">taken care of handily</a>, and a tutorial will be implemented once, well, the game is.</p>
<p>Sound&#8230; sound was an interesting one. There are many ways to play sounds in Windows and .NET. You can use the basic, in-built functionality in My.Computer. Or you can venture into the <i>slighly</i> more complex world of System.Media.SoundPlayer.</p>
<p>Both, sadly, are kind of garbage if you&#8217;re trying to make a game. That is, a game with more than one or two sounds playing at once. There&#8217;s also the problem of being limited to PCM as an audio file format. Hey, if I was willing to have Z2 weigh in at a couple of hundred megabytes, then PCM would be fine. Hilariously so.<span id="more-80"></span></p>
<p>But I think my download server (and everyone downloading from said server) would be upset. So upset they might convert from downloadees to &#8220;I-hate-you-Logan-for-wasting-my-download&#8221;&#8230;. ees.</p>
<p>So I started investigating Managed DirectX. MDX is a wrapper around the standard DirectX libraries so you can use them in C# and VB .NET, among other languages. DirectSound under MDX didn&#8217;t look too foreboding, and I went ahead and implemented a basic audio engine capable of playing multiple sounds and background music.</p>
<p>Now MDX will play anything that resembles a RIFF. Well, anything that resembles a RIFF and contains a PCM or ADPCM stream. Anything else and it will spit at you like a pretentious hydra being served broiled heads instead of boiled ones. Because hydras like boiled heads.</p>
<p>ADPCM isn&#8217;t really a compressed stream. It&#8217;s just PCM reduced from 16 to 4-bits. Other stuff happens to maintain sound quality, but essentially you end up with something many times smaller than the original PCM. The only problem is, to (barely) match the compression ratio of MP3, Vorbis or WMA, you have to cut out a channel.</p>
<p>Stereo to mono. Which ain&#8217;t so bad. Truly, it&#8217;s not. And, in some cases, ADPCM can produce audio that sounds better than what a psychoacoustic codec can crank out. As long as you don&#8217;t mind a bit of hissing.</p>
<p>But I wasn&#8217;t satisifed. I knew I could do better. I was particularly certain of this betterness when I read that Microsoft was encouraging developers to move from MDX to XNA. It gently encouraged this by flipping the bird to MDX.</p>
<p>Yes, I had just written an audio engine in an API no longer supported by MS. Sweet, I thought, and began searching for alternatives.</p>
<p>There are a bunch of free audio engines that work in .NET, but if you ever want to commercialise your product, then you have to fork out megabucks. And I didn&#8217;t want to lock myself into that sort of situation. The idea of using a pre-packaged solution didn&#8217;t tickle me the right way either.</p>
<p>I fiddled around with Vorbis, but had trouble tracking down a native implementation in VB .NET or C#. I did find one in the <a href="http://anonsvn.mono-project.com/viewvc/trunk/csvorbis">Mono repository</a>, and even got it working. Problem was it was slow (Vorbis-to-PCM conversion, specifically), and it still relied on MDX. </p>
<p>Sucky? You bet. Extra sucky because I know squat about the inner workings of Vorbis and had no idea how to optimise. I didn&#8217;t really want to spend time doing it. I have a game to finish, after all.</p>
<p>XNA appeared my only option. After getting the libraries loaded, I realised it was too high level. Which means it didn&#8217;t give me enough control over what it was doing. Much sighing occurred.</p>
<p>Then&#8230; I found XAudio2. Its documentation was hidden away in MSDN, but there it was. XAudio2 is Microsoft&#8217;s replacement for DirectSound, and it&#8217;s the underlying tech for XNA&#8217;s audio stuff. XAudio2 is nifty. It would have been even more nifty if all the documentation wasn&#8217;t as verbose as a mute sports announcer. Oh, the documentation is for C++ only, so make that a mute sports announcer who only speaks Esperanto.</p>
<p>But XAudio2 supports xWMA out of the box. xWMA is a stripped-down version of WMA encased in a RIFF container. Yay! It was exactly what I was after. I grabbed SlimDX, which allows you to access XAudio2 (and other multimedia-related libraries) via a managed wrapper, and buried myself to the armpits in code for a weekend.</p>
<p>Eventually, I came up with something &#8211; dare I say it &#8211; <i>sound</i>. An audio engine blindingly superior to what I&#8217;d previously concocted. It plays up to 64 xWMA-encoded sounds flawlessly and with only a minor hit to memory consumption (much less than the MDX monster I was working with).</p>
<p>Only now I need to include SlimDX with Zafehouse 2. I went from a 9MB audio package encoded in ADPCM, to a 7MB xWMA one with a 3MB DLL. To be fair, the new audio is all stereo (which makes the music sound that much better), but I still feel like I&#8217;ve run in a giant circle.</p>
<p>The circle does crack out some fine dual-speaker tunes, though.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2011/12/zafehouses-audio-engine-adpcm-versus-xwma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A short history of the new Zafehouse</title>
		<link>http://screwflystudios.com/2011/12/a-short-history-of-the-new-zafehouse/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-short-history-of-the-new-zafehouse</link>
		<comments>http://screwflystudios.com/2011/12/a-short-history-of-the-new-zafehouse/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 11:00:30 +0000</pubDate>
		<dc:creator>Logan Booker</dc:creator>
				<category><![CDATA[Zafehouse]]></category>
		<category><![CDATA[zafehouse]]></category>

		<guid isPermaLink="false">http://0daystudios.com/?p=42</guid>
		<description><![CDATA[Zafehouse 2 has had a rocky development path. I started on a sequel over two years ago. Called Deadshed, it had a quasi-X-COM feel and like the original game, focused on strategy over tactics. It had a neat event logging system which could be filtered depending on what you clicked, so it was easy to [...]]]></description>
				<content:encoded><![CDATA[<p>Zafehouse 2 has had a rocky development path. I started on a sequel over two years ago. Called Deadshed, it had a quasi-X-COM feel and like the original game, focused on strategy over tactics. It had a neat event logging system which could be filtered depending on what you clicked, so it was easy to see at a glance the entire history of a person or building.</p>
<p>It grew, exponentially, until it wasn&#8217;t what it needed to be – a successor to Zafehouse. It became its own game, a game I didn&#8217;t want to make.</p>
<p>Consider it the first prototype.</p>
<p>A little side project – a 2D map generator – I&#8217;d been working on while hacking away at Deadshed suddenly <a href="http://www.theplaywrite.com/zafehouse-2/a-view-of-zafehouse-2/">became the new Zafehouse 2</a>. It was closer to the game&#8217;s original vision, just with more stuff. Lots of neat features were added to this generator, until it started turning into a game.<span id="more-42"></span></p>
<p>And then I got suckered into building three combat engines, which <a href="http://www.theplaywrite.com/zafehouse-2/its-here-grab-the-zafehouse-2-combat-demo/">culminated in a solid tactical 2D game</a>. I&#8217;m actually happy with the result, and I have no doubt a fun game of some description could come of this project.</p>
<p>But again, it wouldn&#8217;t be Zafehouse.</p>
<p>After spending weeks contemplating the future of the game, I decided to follow my gut. As painful as it was to do, I shelved the Zafehouse 2 codebase and accepted it as the second prototype.</p>
<p>I then started on Zafehouse 2.5, scavenging a couple of chunks from Zafehouse 2 – the audio engine, random name generator and a few miscellaneous bits and bobs.</p>
<p>Yes, I&#8217;m essentially starting Zafehouse&#8217;s sequel from scratch, again. But the clarity of thought, purity of design, experience and elegance I&#8217;m bringing from Deadshed and Z2 are worth their weight in blood-stained gold. I&#8217;m finally happy, completely, with the direction the latest incarnation is taking and, for the first time in at least a year, I&#8217;m really enjoying working on the game. The inspiration and passion have returned, and these are by far the most potent qualities a developer can bring to a title.</p>
<p>So there you have it – an honest assessment and lowdown of the current state of the project. For everyone who’s stayed with the game, I can&#8217;t begin to thank you for putting up with the sparodic updates and procrastination. This year’s been hard on the game industry, particularly in Australia, both emotionally and financially. It&#8217;s good to be able to once again take a firm grasp of the fundamentals, the primal drive for doing this thing, and wield like a dwarven berserker would a mangled hatchet in the face of a stalwart, somewhat insane orc army.</p>
<p>As for tangibles, expect screenshots and gameplay details in the New Year. Until then, enjoy the holidays.</p>
]]></content:encoded>
			<wfw:commentRss>http://screwflystudios.com/2011/12/a-short-history-of-the-new-zafehouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.800 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-03-07 23:13:40 -->

<!-- Compression = gzip -->