<?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>Wiering Software .eu &#187; Games</title>
	<atom:link href="http://www.wieringsoftware.eu/category/games/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wieringsoftware.eu</link>
	<description>Mike Wiering's Game Development Blog</description>
	<lastBuildDate>Fri, 23 Apr 2010 21:20:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using haXe for Platform Games</title>
		<link>http://www.wieringsoftware.eu/2007/01/platform-games-in-flash/</link>
		<comments>http://www.wieringsoftware.eu/2007/01/platform-games-in-flash/#comments</comments>
		<pubDate>Tue, 30 Jan 2007 00:46:29 +0000</pubDate>
		<dc:creator>Mike Wiering</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[haXe]]></category>

		<guid isPermaLink="false">http://www.wieringsoftware.eu/2007/01/platform-games-in-flash/</guid>
		<description><![CDATA[In the past weeks I&#8217;ve been experimenting a lot with haXe, a new programming language that can compile to Flash SWF files. Last summer, I already played around with haXe for a while and made a little flash scroll demo. Recently, I&#8217;ve been trying out different methods of drawing tiles, in order to find the [...]]]></description>
			<content:encoded><![CDATA[<p>In the past weeks I&#8217;ve been experimenting a lot with <a href="http://www.haxe.org/" target="_blank">haXe</a>, a new programming language that can compile to Flash SWF files. Last summer, I already played around with haXe for a while and made a little <a href="http://tilestudio.sourceforge.net/flash/Demo.html" target="_blank">flash scroll demo</a>. Recently, I&#8217;ve been trying out different methods of drawing tiles, in order to find the fastest method.</p>
<p>At first, the difference in speed appeared to be huge, but those were rather the result of other optimizations I did in the meantime. All these methods work at roughly the same speed if you&#8217;re using large tiles. But when you have small tiles (which I normally use for games) and you have hundreds of them on screen all the time, handling all those tiles seems to become far slower than rendering them.</p>
<p>Here are three methods I tried:</p>
<ol>
<li>The first is the method used in the scroll demo. Every tile is represented by a separate <strong>MovieClip</strong>, the total number of MovieClips stays constant, when a tile goes off-screen, its MovieClip is reused for the tile that appears on the other side. Using this method makes it very easy to add animated tiles, since they are handled by flash.</li>
<li>The second method is the same method as above, but with only one MovieClip with a <strong>BitmapData</strong> attached to it (as the screen surface) and just &#8220;blitting&#8221; all the tiles to it using <strong>copyPixels</strong>. Here you need to implement tile animations yourself.</li>
<li>For the third method (demonstrated below), each layer has its own BitmapData object as a surface (size of the screen + 2 tiles), which scrolls along with the layer. That way, you only need to redraw the tiles that actually change (at the edges and animating tiles). When you start to scroll, you&#8217;ll run out of space on the surface, but it wraps around to the other side. So normally, the screen will be divided in to sections horizontally and vertically. To get all those back together, there are 4 MovieClips per layer and the BitmapData is attached to all 4 of them. By placing them next to each other, you get the entire screen in the middle. The Mario example only scrolls horizontally, so it only uses 2 of those surfaces.</li>
</ol>
<p><center><code><code>[kml_flashembed movie="http://www.wieringsoftware.eu/wp-content/mario001.swf" width="320" height="182"/]</code></code></center><center><em>(click to play)</em></center><center> </center>This little demo is based on my <a href="http://www.wieringsoftware.nl/mario/" target="_blank">Mario clone for DOS</a>, there are no enemies and the only thing you can do is collect coins. If you are using FireFox, click on the game first. Use the arrow keys to walk and space to jump. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wieringsoftware.eu/2007/01/platform-games-in-flash/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>New Training Levels in Charlie II</title>
		<link>http://www.wieringsoftware.eu/2006/12/new-training-levels-in-charlie-ii/</link>
		<comments>http://www.wieringsoftware.eu/2006/12/new-training-levels-in-charlie-ii/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 03:14:52 +0000</pubDate>
		<dc:creator>Mike Wiering</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.wieringsoftware.eu/2006/12/new-training-levels-in-charlie-ii/</guid>
		<description><![CDATA[    
Wiering Software has just released Charlie II version 3.10, which now includes two free training levels, meant for first-time players and young kids who have trouble getting through the first regular level. In fact, the first level can be completed by only holding down the right arrow key (be sure to [...]]]></description>
			<content:encoded><![CDATA[<p><a title="3.jpg" class="imagelink" href="http://www.wieringsoftware.eu/wp-content/21.jpg"><img id="image50" src="http://www.wieringsoftware.eu/wp-content/21.thumbnail.jpg" /></a>  <a title="3.jpg" class="imagelink" href="http://www.wieringsoftware.eu/wp-content/3.jpg"><img alt="3.jpg" id="image51" src="http://www.wieringsoftware.eu/wp-content/3.thumbnail.jpg" /></a>  <a title="8.jpg" class="imagelink" href="http://www.wieringsoftware.eu/wp-content/8.jpg"><img alt="8.jpg" id="image52" src="http://www.wieringsoftware.eu/wp-content/8.thumbnail.jpg" /></a></p>
<p>Wiering Software has just released Charlie II version 3.10, which now includes two free training levels, meant for first-time players and young kids who have trouble getting through the first regular level. In fact, the first level can be completed by only holding down the right arrow key (be sure to set the difficulty to easy if you try that, or you won&#8217;t survive!).</p>
<p>To download, visit to the <a target="_blank" href="http://www.wieringsoftware.nl/ch2/">Charlie II website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wieringsoftware.eu/2006/12/new-training-levels-in-charlie-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coltris</title>
		<link>http://www.wieringsoftware.eu/2006/12/coltris/</link>
		<comments>http://www.wieringsoftware.eu/2006/12/coltris/#comments</comments>
		<pubDate>Fri, 22 Dec 2006 23:36:56 +0000</pubDate>
		<dc:creator>Mike Wiering</dc:creator>
				<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://www.wieringsoftware.eu/2006/12/coltris/</guid>
		<description><![CDATA[  
Coltris is a small casual game I wrote a long time ago. It&#8217;s a match-3 game in which you must try to line up at least three blocks of the same color to remove them. During the game, more and more colors appear, making it harder. This game was originally for DOS, but [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wieringsoftware.eu/wp-content/coltris1.jpg"><img alt="coltris1.jpg" id="image46" src="http://www.wieringsoftware.eu/wp-content/coltris1.thumbnail.jpg" /></a> <a href="http://www.wieringsoftware.eu/wp-content/coltris2.jpg"><img alt="coltris3.jpg" id="image48" src="http://www.wieringsoftware.eu/wp-content/coltris3.thumbnail.jpg" /></a> <a href="http://www.wieringsoftware.eu/wp-content/coltris3.jpg"><img alt="coltris2.jpg" id="image47" src="http://www.wieringsoftware.eu/wp-content/coltris2.thumbnail.jpg" /></a></p>
<p>Coltris is a small casual game I wrote a long time ago. It&#8217;s a match-3 game in which you must try to line up at least three blocks of the same color to remove them. During the game, more and more colors appear, making it harder. This game was originally for DOS, but I recently ported it to Windows / DirectX. This game is freeware.<br />
Download: <a href="http://www.wieringsoftware.eu/files/coltris.zip">DOS version</a> | <a href="http://www.wieringsoftware.eu/files/Coltris.exe">Windows version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.wieringsoftware.eu/2006/12/coltris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
