<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Stacker - binary and commented source code</title>
		<link>http://www.allegro.cc/forums/view/587475</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 11 Sep 2006 03:50:17 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This is Fruit Stacker, my PC version of the web game SkullStax and my first attempt at writing a game using Allegro. In the zip file is an executable (Windows) and the source files (C++ code and images).</p><p>It&#39;s commented as best as I could for anyone wanting to learn how the thing hangs together and appears to work. The main things still missing are sound, a high score table and animation. My initial goal was to write a game that worked, something smallish that could be dissected by others to learn from.</p><p>It&#39;d be nice to get some comments on the game - improvements, what you liked, what sucked...</p><p><a href="http://www.allegro.cc/files/attachment/590152">The zip file can be found here</a></p><p><span class="remote-thumbnail"><span class="json">{"name":"590153","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/b\/cba03a13779d6a019e66e49111aa1411.jpg","w":526,"h":425,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/b\/cba03a13779d6a019e66e49111aa1411"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/c/b/cba03a13779d6a019e66e49111aa1411-240.jpg" alt="590153" width="240" height="193" /></span></p><p>Cheers,<br />Jeroen</p><p><s>BTW, is there a guide on how to include images or use different text for a link in these messages (like an &lt;a href...&gt;&lt;/a&gt;)?</s></p><p>{edit - Thanks Kikaru for the HTM Mockup codes...}
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HardTranceFan)</author>
		<pubDate>Fri, 08 Sep 2006 11:23:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Click the &quot;HTML Mockup Code is enabled&quot; text to get a list of commands.</p><p>Very nice! The gameplay is a lot like the game I am currently working on, Drill Garanz. Very nice for a first!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kikaru)</author>
		<pubDate>Sat, 09 Sep 2006 04:35:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>$ g<span class="k3">+</span><span class="k3">+</span> main.cpp `allegro-config <span class="k3">-</span><span class="k3">-</span>libs`</td></tr><tr><td class="number">2</td><td>main.cpp: In function <span class="s">'int main()'</span><span class="k2">:</span></td></tr><tr><td class="number">3</td><td>main.cpp:124: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">4</td><td>main.cpp:209: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">5</td><td>main.cpp: In function <span class="s">'void initialiseGame()'</span><span class="k2">:</span></td></tr><tr><td class="number">6</td><td>main.cpp:299: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">7</td><td>main.cpp: In function <span class="s">'eGameState gameMenu()'</span><span class="k2">:</span></td></tr><tr><td class="number">8</td><td>main.cpp:405: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">9</td><td>main.cpp: In function <span class="s">'eGameState playGame()'</span><span class="k2">:</span></td></tr><tr><td class="number">10</td><td>main.cpp:544: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">11</td><td>main.cpp:582: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">12</td><td>main.cpp: In function <span class="s">'void displayFrame(clock_t)'</span><span class="k2">:</span></td></tr><tr><td class="number">13</td><td>main.cpp:643: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">14</td><td>main.cpp: In function <span class="s">'int updateScore()'</span><span class="k2">:</span></td></tr><tr><td class="number">15</td><td>main.cpp:944: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">16</td><td>main.cpp: In function <span class="s">'int bonusCheck()'</span><span class="k2">:</span></td></tr><tr><td class="number">17</td><td>main.cpp:1051: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">18</td><td>main.cpp: In function <span class="s">'void waveString(BITMAP*)'</span><span class="k2">:</span></td></tr><tr><td class="number">19</td><td>main.cpp:1135: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">20</td><td>main.cpp:1153: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">21</td><td>main.cpp: In function <span class="s">'void instructionsPage1()'</span><span class="k2">:</span></td></tr><tr><td class="number">22</td><td>main.cpp:1240: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">23</td><td>main.cpp:1249: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">24</td><td>main.cpp: In function <span class="s">'void instructionsPage2()'</span><span class="k2">:</span></td></tr><tr><td class="number">25</td><td>main.cpp:1341: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr><tr><td class="number">26</td><td>main.cpp: In function <span class="s">'bool instructionsNext(int*, int*, clock_t*)'</span><span class="k2">:</span></td></tr><tr><td class="number">27</td><td>main.cpp:1379: error: <span class="s">'CLK_TCK'</span> was <span class="k1">not</span> declared in <span class="k1">this</span> scope</td></tr></tbody></table></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Sat, 09 Sep 2006 18:19:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I checked the error message out, and it appears CLK_TCK is an obsolete name for CLOCKS_PER_SEC.</p><p>So, I&#39;ve replaced all occurrences of CLK_TCK with CLOCKS_PER_SEC, recompiled and put the new binary &amp; source into <a href="http://allegro.cc/files/attachment/590161">this link</a>.</p><p>Cheers,<br />Jeroen
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HardTranceFan)</author>
		<pubDate>Sun, 10 Sep 2006 04:55:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The game is fun to play. The only thing that could make it better is - giving time bonuses and showing the time as a bar.<br />If you show the time bar at the bottom, the player will see if the end is near. Giving time bonuses for multiple fruits - and time penalties for single fruit clicks will do it more action.<br />And for example, clicking two fruits will do no time - so the player will be forced to click three or more, or click to create this combinations (you already have this, but for creating score).</p><p>There is too much time at this time, I played it at the first time to the 8th level without problem and then the time dropped. If you do the time as I write, there will be a lot action, fighting each level.</p><p>Anyway, add some sound and perhaps some graphical effect (particles?) when clicking the fruit. Good work <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Pavel Hilser)</author>
		<pubDate>Sun, 10 Sep 2006 12:23:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The game does give a time bonus for multiple fruits clicked (of the same type), and there is a time penalty for clicking only one fruit. These bonuses and penalties increase the higher the level goes (you can also check the source code to see how this is calculated).</p><p>I agree with the sound comment. I haven&#39;t looked into sound, and want to make it the main area of work in the current game I&#39;m working on, where I&#39;ll put in a sound track, sound fx and a basic particle system.</p><p>Cheers,<br />Jeroen
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HardTranceFan)</author>
		<pubDate>Mon, 11 Sep 2006 03:50:17 +0000</pubDate>
	</item>
</rss>
