<?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>Courne Supremacy &#187; Programming</title>
	<atom:link href="http://www.cournesupremacy.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cournesupremacy.com</link>
	<description>Just fire one out!</description>
	<lastBuildDate>Sun, 01 Aug 2010 05:19:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3774</generator>
		<item>
		<title>My Goals from 1995</title>
		<link>http://www.cournesupremacy.com/2010/05/01/my-goals-from-1995/</link>
		<comments>http://www.cournesupremacy.com/2010/05/01/my-goals-from-1995/#comments</comments>
		<pubDate>Sun, 02 May 2010 01:40:39 +0000</pubDate>
		<dc:creator>AlbinoGrimby</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[nostalgia]]></category>
		<category><![CDATA[c++ programming]]></category>

		<guid isPermaLink="false">http://www.cournesupremacy.com/?p=574</guid>
		<description><![CDATA[I&#8217;ve been doing some spring cleaning and de-cluttering my house. I&#8217;ve got a ton of crap to get rid of that I&#8217;m sure someone else would be able to use. As I was going through my old stuff I found C++ Programming 101. It was the first book I got on the language back in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some spring cleaning and de-cluttering my house. I&#8217;ve got a ton of crap to get rid of that I&#8217;m sure someone else would be able to use. As I was going through my old stuff I found C++ Programming 101. It was the first book I got on the language back in 1995 (give or take) after I realized that learning QuickBASIC or Pascal wasn&#8217;t going to cut it if you wanted to really code games. I was pretty studious because I wanted to program games like Wolfenstein or Commander Keen and idolized the genius of the people that did, which I guess means I idolized John Carmack back in the day even though I didn&#8217;t know it. Now it&#8217;s 2010. I&#8217;m in the games industry. I guess it paid off.</p>
<p>While I was pulling all my scraps of paper out of that book, I came across a list of goals I had jotted down for myself. Things I wanted to accomplish to further my programming education. Here&#8217;s the list:</p>
<p>1. Study C++ Programming 101 Book and understand [it] all.<br />
2. Do good in math and science classes at school (review information on subjects too)<br />
3. Take a college course on C++ or C programming (Chester County College) &#8212; if I can get in one. or take in high school next year<br />
4. Study Game Programming Books (2D, 3D, animation, etc)<br />
5. More on Computer Graphics<br />
6. Study Assembly or machine language</p>
<p>I did take a college course but in Pascal one summer. I remember spending summers learning 3D programming at home. I remember how to get mode 13h which is the 320x240x256 VGA mode that Wolf3D used. I also remembered that for the longest time I couldn&#8217;t do that because I only had an EGA monitor and begged my folks for a better computer.</p>
<p>I still keep goals for myself. Projects I want to accomplish and yes, I do actually accomplish them. Hopefully in a few weeks I can relate the thing I&#8217;m doing now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cournesupremacy.com/2010/05/01/my-goals-from-1995/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sprite Engine and Code Jams</title>
		<link>http://www.cournesupremacy.com/2009/03/08/sprite-engine-and-code-jams/</link>
		<comments>http://www.cournesupremacy.com/2009/03/08/sprite-engine-and-code-jams/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 03:59:06 +0000</pubDate>
		<dc:creator>AlbinoGrimby</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Code Jamming]]></category>

		<guid isPermaLink="false">http://www.cournesupremacy.com/?p=192</guid>
		<description><![CDATA[A couple of friends were talking about doing a small &#8220;game jam.&#8221; I&#8217;ve always wanted to do one. We decided to make a 2D platforming style of game and one weekend, sometime in the near future, we&#8217;ll all get together and jam for 24-48 hours and see what we can pump out by the end. [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of friends were talking about doing a small &#8220;game jam.&#8221; I&#8217;ve always wanted to do one. We decided to make a 2D platforming style of game and one weekend, sometime in the near future, we&#8217;ll all get together and jam for 24-48 hours and see what we can pump out by the end.</p>
<p>One issue came to light as we talked: what would we use as the sprite engine? I certainly don&#8217;t want to spend the entire game jam working on the sprite engine and come away at the end of the weekend with nothing to show for it. That&#8217;s a huge task to make the thing that runs the game and then the game itself on top. I wanted to use XNA and I&#8217;m sure there are tons of hobbyist programmers out there that have programmed their own full-fledged sprite authoring and rendering engines.</p>
<p>But I&#8217;m an engineer. I know I shouldn&#8217;t re-invent the wheel, and we could certainly shop around the Internet and find someone&#8217;s sprite engine to use, but I want to know how the wheel works, and I think there&#8217;s a mentality amongst the guys interested to do the game jam where we want to brew our own. Plus, there&#8217;s the added advantage of getting tech support within our little group. We don&#8217;t have to plow through someone else&#8217;s undocumented, bullshit, and badly written code. We can plow through our own.</p>
<p>I would certainly love to have the tech homegrown just so I can use it for my own purposes. So this weekend, I sat down and did my own little &#8220;code jam.&#8221; I wanted to code for 24 hours straight, but I got maybe 18 over the course of the two days &#8212; I&#8217;m writing this post at the tail end of this journey. Twelve hours on Saturday and another 6 today. What do I have to show for it?</p>
<p>A rudimentary and crude sprite engine.</p>
<p><a href="http://www.cournesupremacy.com/wp-content/uploads/2009/03/spriteeditor.png" rel="lightbox[192]"><img class="alignnone size-full wp-image-191" title="spriteeditor.png" src="http://www.cournesupremacy.com/wp-content/uploads/2009/03/spriteeditor.png" alt="" width="500" height="328" /></a></p>
<p><strong>Features:</strong></p>
<ul>
<li>Basic sprite rendering using SpriteBatches in XNA</li>
<li>Use of 2^n x 2^n sprites (in this case 64 x 64 pixel tiles)</li>
<li>Ability to save/load tile set and sprite map XML data files.</li>
<li>A sprite map editor using windows forms.</li>
<li>Ability to add new tiles to the current map in the editor</li>
<li>Ability to interactively put down new tiles into the sprite map</li>
</ul>
<ul></ul>
<p>This won&#8217;t play a game. There&#8217;s no collision detection, no player character, no enemies, nothing. Not yet. Those are all things that need to be coded in another session. Some other nice to have features would be sprite layers so we could do backgrounds at different sprite sizes rather than a tiled sprite set. Animated sprites would be fun to do as well. All of the data is saved and loaded in XML and the document format is custom and would need to be extended as things get integrated in.</p>
<p>I&#8217;m not even sure if I want to use SpriteBatches for rendering, but I&#8217;ll go with it for now. I consider everything I did in the last 18 hours to be molded yet again into something even more robust.</p>
<p>I would say this weekend&#8217;s code session was a success. I&#8217;ll have to post about my previous weekend code jam which was focused on implementing and learning Perlin noise and using it in a height map. I&#8217;m rekindling my love of all things procedural. I do have ideas for this sprite engine in terms of procedural algorithms&#8230;mainly, I&#8217;d love to see if I could use an L-system to generate platforming levels. That would be fun. Imagine turning on a game and just having new levels made for you on the fly. An artist would still be needed to make the tiles and then they would work on generating the L-system grammar to work with their tileset, but levels would just come together on the fly. I&#8217;m sure that&#8217;s harder than what I said, but you know what they say, &#8220;easier said then done.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cournesupremacy.com/2009/03/08/sprite-engine-and-code-jams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
