<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[KrampusHack 2019] Let&#39;s Build a Snowman</title>
		<link>http://www.allegro.cc/forums/view/618011</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 12 Jan 2020 11:39:33 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><i>Let&#39;s Build a Snowman</i> was made for GullRaDriel (who seems to have disappeared? Happy holidays regardless!) with the following wishlist:</p><div class="quote_container"><div class="title">GullRaDriel said:</div><div class="quote"><p>I want a game that my 3 yo toddler can understand and play with me / along with me.</p><p>Anything is allowed, regarding it&#39;s targeting a lil&#39; 3 yo child, who will play together/under supervision of/ his parents, etc.</p></div></div><p>

<span class="remote-thumbnail"><span class="json">{"name":"612269","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/4\/44af132d1d5f9b27533e12d22a35be26.jpg","w":1026,"h":802,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/4\/44af132d1d5f9b27533e12d22a35be26"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/4/4/44af132d1d5f9b27533e12d22a35be26-240.jpg" alt="612269" width="240" height="187" /></span></p><p>I&#39;ve <a href="https://www.allegro.cc/files/attachment/612270">attached a zip with the windows binaries</a>, but wasn&#39;t considering linux during the competition, so not sure how easy that build would be (I think just build system work, but not sure off hand).</p><p>My interpretation of the wishlist was a co-op game. I&#39;d expect the toddler to control the green guy and just gather snowflakes. I tried to make this fun by not having perfect dampening or mouse following, so you sort of fly all over the place. As snowflakes are gathered, a snowman is built. <br />The red guy&#39;s (adult, I guess) job is a bit more complicated. He has to fend off fireballs (which melt the snowman) by throwing snowballs. It&#39;s a lot more fun with a joystick than a keyboard. I designed it with an xbox 360 controller in mind (since those are rather ubiquitous on windows). There&#39;s also a resource management component here, since every snowball you throw subtracts from the snowman. Of course, if you want to have a bit more fun with it, you can use the snowballs as a jetpack of sorts, but that may chew through your resources.<br />You win the game when the snowman is finished, which you&#39;re trying to do as fast as possible.</p><p>I forgot to include acknowledgements for the assets, and forgot where I got them from exactly... The sound effects I pulled from freesound.org, the fonts from dafont.com, and the theme is (obviously) a slightly modified pull from <a href="https://www.cannibalthemusical.net/songs.shtml">Cannibal! The Musical</a>. I also based a number of my shaders off stuff I pulled from shader toy, but those acknowledgements are generally listed in the source.</p><p>The source for the game is <a href="https://github.com/relpatseht/KrampusHack2019">on github</a>. External libraries include allegro (:-p), box2d, imgui, glm, team Mercury&#39;s great SDF library, and the glslang compiler, so I wasn&#39;t working entirely from scratch.</p><p>Mostly, this compo was a good excuse for me to mess around with SDFs, ray marching, and PBR lighting, which was a blast. I think it looks pretty decent to. Effects could use some work, and I should have added more lights, but, eh...</p><p>Known issues:
</p><ul><li><p>Sometimes, when you win, you don&#39;t get a face.
</p></li><li><p>If you play without vsync, or on a monitor with &gt;60Hz refresh rate, the game is broken (never bothered to control gameplay by proper timer).</p></li></ul><p>Happy hacking!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (relpatseht)</author>
		<pubDate>Thu, 02 Jan 2020 02:52:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I thought this was a really clever co-op gameplay idea! I really enjoyed how one player&#39;s task is significantly easier than the other, and yet very important. It&#39;s doable, somewhat inefficiently by one person, so I could beat it by myself and I really enjoyed the process. Everything looks and sounds great. The only issue I hit is that I for some reason couldn&#39;t fire snowballs to the top-left.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Thu, 02 Jan 2020 09:22:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m here I&#39;m here !! I was more busy with the saw than the keyboard :-)</p><p>Thanks for the present, I&#39;ll try it tonight !</p><p>Edit: It does not start.
</p><div class="spoiler"><p>
(gdb) run<br />The program being debugged has been started already.<br />Start it from the beginning? (y or n) [answered Y; input not from terminal]<br />Starting program: C:\Users\gullr\Desktop\LetsBuildASnowman\LBM.exe<br />[New Thread 9484.0x1f58]<br />[New Thread 9484.0x2094]<br />[New Thread 9484.0x1f50]<br />warning: onecore\com\combase\objact\objact.cxx(834)\combase.dll!00007FF9AC038CC7: (caller: 00007FF9AC038046) ReturnHr(1) tid(7e8) 800401F0 CoInitialize n▒a pas ▒t▒ appel▒.<br />[New Thread 9484.0x2898]<br />[New Thread 9484.0x25bc]<br />[New Thread 9484.0x2610]<br />[New Thread 9484.0x9b8]<br />[New Thread 9484.0x27bc]<br />[New Thread 9484.0x2510]<br />[New Thread 9484.0x578]</p><p>Thread 1 received signal SIGTRAP, Trace/breakpoint trap.<br />0x00007ff7ad428a6f in ?? ()<br />(gdb) bt<br />#0  0x00007ff7ad428a6f in ?? ()<br />Backtrace stopped: previous frame identical to this frame (corrupt stack?)<br />(gdb)
</p></div><p>

Will try to compile it and see.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Thu, 02 Jan 2020 17:34:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Right now I can only report that the Windows binary doesn&#39;t work for me - a Window opens and immediately closes. Running from the CLI / GDB doesn&#39;t reveal any error message.</p><p>I&#39;ll try to find some time to investigate further.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (amarillion)</author>
		<pubDate>Wed, 08 Jan 2020 02:00:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Possibly needs the <a href="https://aka.ms/vs/16/release/vc_redist.x64.exe">vc 2019 redistributable</a>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (relpatseht)</author>
		<pubDate>Wed, 08 Jan 2020 11:44:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hell. Still not working, I have a black windows appearing and then it&#39;s just stopping without a hint.</p><p>I&#39;ll try to dig tomorrow and &#39;make it works&#39; (tm) as I really want to try it with my son ;-p
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Fri, 10 Jan 2020 02:47:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s no good. I threw together a binary (attached) which should be more forthcoming with details.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (relpatseht)</author>
		<pubDate>Fri, 10 Jan 2020 10:05:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>All right, I put a bit more time into troubleshooting. Here are my findings.</p><ul><li><p>My PC doesn&#39;t want to install that VC redistributable - it gets stuck at &quot;Initializing&quot; (Edit: I managed to install it now, but it doesn&#39;t help)</p><br /></li><li><p>The problem doesn&#39;t seem to be related to missing DLLs. When I run objdump to check for dependencies, the output is like this:</p></li></ul><div class="source-code snippet"><div class="inner"><pre>objdump.exe <span class="k3">-</span>p KH19.exe <span class="k3">|</span> grep <span class="s">'DLL Name:'</span>
        DLL Name: OPENGL32.dll
        DLL Name: IMM32.dll
        DLL Name: DSOUND.dll
        DLL Name: SHLWAPI.dll
        DLL Name: WINMM.dll
        DLL Name: KERNEL32.dll
        DLL Name: USER32.dll
        DLL Name: GDI32.dll
        DLL Name: SHELL32.dll
        DLL Name: ole32.dll
</pre></div></div><p>
I believe these are all common system dependencies that should be there.</p><p>Finally, the attached binary (KH19.exe) does provide a little more info when I run it. It reports:</p><div class="source-code snippet"><div class="inner"><pre>Failed to create display.
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (amarillion)</author>
		<pubDate>Sun, 12 Jan 2020 00:55:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Probably graphics drivers need to be updated. It requires OpenGL 4.6.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (relpatseht)</author>
		<pubDate>Sun, 12 Jan 2020 11:39:33 +0000</pubDate>
	</item>
</rss>
