<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>yet about destructable terrains</title>
		<link>http://www.allegro.cc/forums/view/586445</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 13 Jul 2006 00:39:22 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i´ve read some threads about this subject, but i haven´t seen was how it was going to be in the code</p><p>i know that you draw a circle ow watever u wnat with &#39;magic pink&#39; .. but where do i draw it? does it have to do with put pixel()? and getpixel()? i didnt get this point...</p><p>also ive seen some code snipets (thats why i didnt &#39;got&#39; how it works <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />, cause what ive seen is incomplete), and was wondering why is it necessary to have more than one backgrtound (usually foreground and background)</p><p>thanks!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (valdir salgueiro)</author>
		<pubDate>Wed, 12 Jul 2006 22:43:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Using the pumping lemma, I can make enough assumptions to assume that you are using a regular language, however unclear it may be. </p><p>Sorry, just being an a**.</p><p>Anyway, I guess you mean a 2D landscape, yes?  The magic pink that you refer to is makecol(255,0,255).  This special guy is transparent.  If you have a background bitmap with your...background, you can draw this to a buffer first.  Then, you draw your foreground bitmap with the...foreground on to the buffer.  Then buffer to the screen.  The background will be completely solid (no magic pink) and the foreground will have magic pink where ever you want to see the background.</p><p>Thus, to have destructable terrain, you just put the magic pink down where ever you are blowing up the foreground, and you will then see the background behind this spot.</p><p>Cool?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Onewing)</author>
		<pubDate>Wed, 12 Jul 2006 22:49:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>yes its a 2d landscape, and it written using allegro and c, hope didnt forget about anything else <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>ok, but how do i &#39;draw&#39; the magic pink, i prolly will use pixelmask as my library to do the pixel collision, but what i dont get is how it to change the actual shape of my background, so the colision would be different (there would be more holes)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (valdir salgueiro)</author>
		<pubDate>Thu, 13 Jul 2006 00:34:48 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="source-code"><a href="http://www.allegro.cc/manual/circlefill" target="_blank"><span class="a">circlefill</span></a><span class="k2">(</span>backgrtound, x, y, r, <a href="http://www.allegro.cc/manual/makecol" target="_blank"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">255</span>,<span class="n">0</span>,<span class="n">255</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Thu, 13 Jul 2006 00:37:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I fear that you&#39;ll have to give up using pixel mask unless you want to change the mask everytime you blow somethin up.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (OICW)</author>
		<pubDate>Thu, 13 Jul 2006 00:38:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
<span class="source-code"><a href="http://www.allegro.cc/manual/getpixel" target="_blank"><span class="a">getpixel</span></a></span><br />Should be good enough.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Richard Phipps)</author>
		<pubDate>Thu, 13 Jul 2006 00:39:22 +0000</pubDate>
	</item>
</rss>
