<?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>luminance &#187; castlevania</title>
	<atom:link href="http://www.luminance.org/tag/castlevania/feed" rel="self" type="application/rss+xml" />
	<link>http://www.luminance.org/blog</link>
	<description>Programming and Game Development - Kevin Gadd&#039;s Blog</description>
	<lastBuildDate>Sun, 02 Oct 2011 00:15:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>It&#8217;s a platformer!</title>
		<link>http://www.luminance.org/blog/gruedorf/2008/11/28/its-a-platformer</link>
		<comments>http://www.luminance.org/blog/gruedorf/2008/11/28/its-a-platformer#comments</comments>
		<pubDate>Fri, 28 Nov 2008 11:42:23 +0000</pubDate>
		<dc:creator>Kael</dc:creator>
				<category><![CDATA[Gruedorf]]></category>
		<category><![CDATA[castlevania]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[platformer]]></category>
		<category><![CDATA[xna]]></category>

		<guid isPermaLink="false">http://www.luminance.org/?p=11</guid>
		<description><![CDATA[After finishing Order of Ecclesia (small aside: utterly awesome game), I felt sufficiently inspired to finally start coding the platformer I&#8217;d been working on ideas for. A couple days ago I started writing the actual meat of the platforming mechanics and fiddling around with things like animation and collision detection, to start moving towards having [...]]]></description>
			<content:encoded><![CDATA[<p>After finishing Order of Ecclesia <span style="font-size: xx-small;">(small aside: utterly awesome game)</span>, I felt sufficiently inspired to finally start coding the platformer I&#8217;d been working on ideas for. A couple days ago I started writing the actual meat of the platforming mechanics and fiddling around with things like animation and collision detection, to start moving towards having an actual game!</p>
<p><a href="http://www.luminance.org/wp-content/uploads/2008/11/platformer_thumbnail.png"><img class="alignright size-full wp-image-10" title="Platformer Thumbnail 11/28" src="http://www.luminance.org/wp-content/uploads/2008/11/platformer_thumbnail.png" alt="" width="250" height="267" /></a></p>
<p>After a couple days of work, so far I&#8217;ve got:</p>
<ul>
<li>Basic player character animation (running, jumping, falling, etc) using a <span style="font-size: xx-small;">(stolen)</span> sprite from Castlevania: Dawn of Sorrow.</li>
<li>Moving platforms (though vertical motion is a little busted)</li>
<li>Running up/down slopes</li>
<li>Falling when running off a ledge</li>
<li>Jumping</li>
</ul>
<p>I even allowed myself to get distracted by shiny things, and got it to run smoothly on my XBox 360.</p>
<p>So far the most interesting bit has been figuring out how to properly implement moving platforms in a game like this without a bunch of hacks. Getting the details just right for things like falling off a platform, being pushed by a platform, and so on is actually quite difficult &#8211; there are lots of edge cases where the simplest possible solution just doesn&#8217;t work. Once I figure it out I&#8217;m planning to try and explain the details of my solution, since people rarely talk about this problem when building platformers.</p>
<p>Getting slopes working was also a bit of a challenge &#8211; so far I&#8217;m using a bit of a hack where, if the player&#8217;s next location is obstructed, I iteratively check to see if the location slightly above it is unobstructed, a fraction of a pixel at a time. This allows the player to run straight at a sloped surface and have his character automatically climb the slope, without too much hassle. Going down slopes wasn&#8217;t quite as hard, since the falling physics automatically took over there.</p>
<p>The next few items on my milestone list:</p>
<ul>
<li>Textured level geometry</li>
<li>Viewport scrolling</li>
<li>Loading level geometry from a file</li>
</ul>
<p>Stay tuned! Hopefully the threat of being shamed by my gruedorfian brethren will keep me focused!</p>
<p style="text-align: center;"><a href="http://www.luminance.org/wp-content/uploads/2008/11/pc_and_360.jpg"><img class="aligncenter size-full wp-image-14" title="Platformer on PC and 360" src="http://www.luminance.org/wp-content/uploads/2008/11/pc_and_360.jpg" alt="" width="500" height="375" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luminance.org/blog/gruedorf/2008/11/28/its-a-platformer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

