<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[SH 2015] Teacher</title>
		<link>http://www.allegro.cc/forums/view/615494</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 12 Jul 2015 06:20:44 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="remote-thumbnail"><span class="json">{"name":"11101-1","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/4\/c45f0d642b6746a122601d27b1a4ab9b.png","w":1282,"h":748,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/4\/c45f0d642b6746a122601d27b1a4ab9b"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/c/4/c45f0d642b6746a122601d27b1a4ab9b-240.jpg" alt="11101-1" width="240" height="140" /></span></p><p><span class="remote-thumbnail"><span class="json">{"name":"11124-1","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/c\/ac81e99efcd4b77fb6d4b49ce3721fd4.png","w":1282,"h":748,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/c\/ac81e99efcd4b77fb6d4b49ce3721fd4"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/a/c/ac81e99efcd4b77fb6d4b49ce3721fd4-240.jpg" alt="11124-1" width="240" height="140" /></span></p><p><a href="http://speedhack.allegro.cc/entry/13/358">Sources</a></p><p><a href="http://allefant.com/teacher_by_allefant_OSX.zip">OSX Binaries</a></p><p><a href="http://allefant.com/teacher_by_allefant_Windows.zip">Windows Binaries</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Mon, 29 Jun 2015 09:01:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That entry is cool.</p><p>I loved it. </p><p>I only tried in easy, and it was long enough to bring back these <span class="cuss"><span>fuck</span></span>ers ;-)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Mon, 29 Jun 2015 22:58:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>My wife is a teacher, and she has students, just like these little turds. Spent a good 10 minutes trying to round them up (like herding cats). Annoying music, text based commands and gravity reversing, ticks all the boxes. Awesome effort.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (devo_au)</author>
		<pubDate>Tue, 30 Jun 2015 17:19:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Dammit! Sticky keys!</p><p>This is NOT a good advert for looking after kids. I&#39;m traumatised. Well done <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>I feel Backspace support wouldn&#39;t have gone amiss though! Or is that part of the realism - kids can sense when the teacher isn&#39;t confident? <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Perry)</author>
		<pubDate>Wed, 01 Jul 2015 05:10:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/615494/1014519#target">Bruce Perry</a> said:</div><div class="quote"><p>Dammit! Sticky keys!</p></div></div><p>
You can hold shift and that works, too.</p><p>This game is really cool, but I want to play it more before I say more. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Mark Oates)</author>
		<pubDate>Thu, 02 Jul 2015 03:02:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/615494/1014562#target">Mark Oates</a> said:</div><div class="quote"><p>You can hold shift and that works, too.</p></div></div><p>
Yeah, I figured that out later <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>We had a fight between Ctrl and Shift for shooting a weapon in one of our work demos in Unity. I changed it from Ctrl to Shift because Ctrl was impeding WASD and Unity was telling us we couldn&#39;t save (Ctrl+S) during play. Someone else then changed it back to Ctrl because Shift caused sticky keys to kick in. I&#39;m glad we have decent commit message discipline <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>Elias, I looked at your code. Was it written in Python and transformed to C? Isn&#39;t it slightly against the spirit of SpeedHack not to include the real source code? <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Perry)</author>
		<pubDate>Tue, 07 Jul 2015 20:31:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The real source is my custom language nobody can even start to make sense of so I found it better to just include the C code. But I see now I forgot to remove the #line directives so it&#39;s hard to read :/</p><p>The real source code is here: <a href="https://github.com/elias-pschernig/teacher">https://github.com/elias-pschernig/teacher</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Tue, 07 Jul 2015 20:43:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Is that not just Python?</p><p>Main thing I was missing was comments - but I see there aren&#39;t many anyway <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Perry)</author>
		<pubDate>Tue, 07 Jul 2015 20:52:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s designed to work with Python syntax highlighting, so I get at least some IDE support <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Tue, 07 Jul 2015 21:20:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Cool <img src="http://www.allegro.cc/forums/smileys/cool.gif" alt="8-)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Perry)</author>
		<pubDate>Tue, 07 Jul 2015 21:34:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Binaries don&#39;t work for me. But luckily you included debugging symbols, so here&#39;s a backtrace for you :</p><pre>
c:\ctwoplus\progcode\allegro5\SpeedHack2015entries\teacher_by_allefant&gt;gdb teacher.exe
GNU gdb (GDB) 7.6.1

...

Program received signal SIGTRAP, Trace/breakpoint trap.
0x77987b0f in ntdll!DbgBreakPoint () from C:\Windows\system32\ntdll.dll
(gdb) bt
#0  0x77987b0f in ntdll!DbgBreakPoint () from C:\Windows\system32\ntdll.dll
#1  0x779f28f3 in ntdll!RtlpNtMakeTemporaryKey () from C:\Windows\system32\ntdll.dll
#2  0x779bc596 in ntdll!RtlTimeToElapsedTimeFields () from C:\Windows\system32\ntdll.dll
#3  0x779a8592 in ntdll!RtlTryEnterCriticalSection () from C:\Windows\system32\ntdll.dll
#4  0x779f318a in ntdll!RtlpNtMakeTemporaryKey () from C:\Windows\system32\ntdll.dll
#5  0x779bc3c4 in ntdll!RtlTimeToElapsedTimeFields () from C:\Windows\system32\ntdll.dll
#6  0x779a8592 in ntdll!RtlTryEnterCriticalSection () from C:\Windows\system32\ntdll.dll
#7  0x77aaa6e2 in msvcrt!_lock () from C:\Windows\system32\msvcrt.dll
#8  0x77aac6b4 in msvcrt!calloc () from C:\Windows\system32\msvcrt.dll
#9  0x0040eb8f in land_calloc ()
#10 0x00401898 in bumpmap_create ()
#11 0x00405a68 in ladder_create ()
#12 0x00402de8 in init ()
#13 0x00419454 in land_runner_switch_active ()
#14 0x0040eefa in land_mainloop ()
#15 0x00405bcc in realmain ()
#16 0x00405bf1 in main ()
(gdb)
</pre><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 08 Jul 2015 00:52:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>A calloc failed.  That seems odd.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Pascoe)</author>
		<pubDate>Wed, 08 Jul 2015 01:14:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks, I had a small memory overrun. I updated the github source and the Windows binary. Re-downloading should fix it. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 08 Jul 2015 02:30:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It now segfaults with no proper backtrace. I tried building it but it fails on game.py with 
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
In file included from c:\mingw\include\wtypes.h:30:0,<br />                 from c:\mingw\include\unknwn.h:38,<br />                 from c:\mingw\include\commdlg.h:532,<br />                 from c:\mingw\include\windows.h:87,<br />                 from c:\mingw\LIBS\A5111distro\include/allegro5/allegro_opengl.h:26,<br />                 from c/land/land.h:1122,<br />                 from src/common.py:1,<br />                 from src/main.py:1,<br />                 from src/game.py:1,<br />                 from src/game.py:1:<br />src/game.py:35:16: error: expected identifier or &#39;(&#39; before &#39;char&#39;
</p></div></div><p>

This is the command line I tried to compile it with :
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
</p><div class="source-code snippet"><div class="inner"><pre>mingw32-gcc <span class="k3">-</span>g <span class="k3">-</span>o teacher.exe <span class="k3">-</span><span class="k3">-</span>std<span class="k3">=</span>gnu99 c<span class="c">/*.c c/land/land.c -Ic:\mingw\LIBS\A5111distro\include -Lc:\mingw\LIBS\A5111distro\lib -lallegro_monolith-debug.dll</span>
</pre></div></div><p>
</p></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 08 Jul 2015 04:26:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s not the new Windows .zip, try compiling <a href="http://allefant.com/teacher_by_allefant_Windows.zip">that</a> with:</p><p>make teacher.exe</p><p>I had to flip the position of two headers there to compile under Windows, didn&#39;t investigate why.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Elias)</author>
		<pubDate>Wed, 08 Jul 2015 05:56:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I couldn&#39;t finish Easy, haha.  I saw the monster and the reversed gravity, but getting the children back to the classroom was just too daunting for me.</p><p>I suddenly feel the need to open a charity for teachers.  Even if all I can offer is hugs.  And now I feel kind of creepy...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Sun, 12 Jul 2015 06:20:44 +0000</pubDate>
	</item>
</rss>
