<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:series="http://organizeseries.com/" version="2.0">

<channel>
	<title>Man With Code</title>
	
	<link>http://manwithcode.com</link>
	<description>Teaching You, One Tutorial at a Time</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:57:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ManWithCode" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="manwithcode" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Hiatus</title>
		<link>http://manwithcode.com/426/hiatus/</link>
		<comments>http://manwithcode.com/426/hiatus/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 18:30:33 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[hiatus]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=426</guid>
		<description><![CDATA[I don&#8217;t like doing this, but I think it&#8217;s for the better. I started this website back in March of 2009, and it&#8217;s been fun! As far as I can tell, I&#8217;ve helped a lot of people, and I&#8217;ve learned quite a bit myself. I had big plans for Man With Code, and while those [...]]]></description>
				<content:encoded><![CDATA[<p>I don&#8217;t like doing this, but I think it&#8217;s for the better. I started this website back in March of 2009, and it&#8217;s been fun! As far as I can tell, I&#8217;ve helped a lot of people, and I&#8217;ve learned quite a bit myself. I had big plans for Man With Code, and while those aren&#8217;t going away, they are moving to the back burner. <em><strong>Everything to do with Man With Code is going on an indefinite hiatus for me.</strong></em></p>
<p>Why am I doing this? Well, life happened. My focus has been shifting to other things, and I don&#8217;t have the same drive to work on Man With Code as I used to. It&#8217;s obvious that I&#8217;ve been neglecting Man With Code for some time, and instead giving you all a bunch of empty promises, and having them take up space in my mind, I figured it would be better to just close up shop.</p>
<p><strong>What this means for you</strong></p>
<p>You, as a reader/viewer of the Man With Code tutorials, can expect a few things:</p>
<ol>
<li>The website will still be here, I don&#8217;t have enough money in donations to keep it going, but I&#8217;ll fund the difference out of my own pocket to keep the website online for another year</li>
<li>There won&#8217;t be any new tutorials written or recorded by me</li>
<li>I will still do my best to respond to comments and emails and answer any questions anyone has</li>
<li>If anyone would like to contribute to Man With Code to keep it alive, I&#8217;m more than happy to share the website and YouTube channel with you</li>
</ol>
<p>Hopefully I&#8217;m moving on to greener pastures, though I have a feeling I&#8217;ll wind up back at Man With Code sometime in the future. Until then, happy coding! Have fun! <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/426/hiatus/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 11 Written</title>
		<link>http://manwithcode.com/424/making-games-with-ruby-episode-11-written/</link>
		<comments>http://manwithcode.com/424/making-games-with-ruby-episode-11-written/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 05:49:38 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=424</guid>
		<description><![CDATA[Episode eleven of Making Games With Ruby: Options, has been written! This episode is short and sweet, and gives the players power over how our game plays. This episode also marks the end of the core development on our Pong game, everything after this will just be icing on the cake. You can read it [...]]]></description>
				<content:encoded><![CDATA[<p>Episode eleven of Making Games With Ruby: Options, has been written! This episode is short and sweet, and gives the players power over how our game plays. This episode also marks the end of the core development on our Pong game, everything after this will just be icing on the cake. You can read it here: <a title="Making Games With Ruby Ep. 11 - Options" href="http://devel.manwithcode.com/making-games-with-ruby.html#9">http://devel.manwithcode.com/making-games-with-ruby.html#9</a></p>
<p>I hope enjoy this one! <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>- Tyler</p>
<p>(After posting this, I realized that the last episode came out just about a month ago, I&#8217;m really sorry for how long this took. In all honesty, I had the code for this written about 3 days after finishing Episode 10, but procrastination, school, and random stuff kept me away from writing the episode. Those reasons are no excuses, and I hope you&#8217;ll accept my apologies!)</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/424/making-games-with-ruby-episode-11-written/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 10 Written</title>
		<link>http://manwithcode.com/419/making-games-with-ruby-episode-10-written/</link>
		<comments>http://manwithcode.com/419/making-games-with-ruby-episode-10-written/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 04:39:35 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=419</guid>
		<description><![CDATA[Episode ten of the Making Games With Ruby series: Sound, has been written! As you could probably tell by the title, we add sound to our game in this episode, more specifically one sound effect and some background music. You can read it here: http://devel.manwithcode.com/making-games-with-ruby.html#8 I&#8217;d like to say sorry for how long this episode [...]]]></description>
				<content:encoded><![CDATA[<p>Episode ten of the Making Games With Ruby series: Sound, has been written! As you could probably tell by the title, we add sound to our game in this episode, more specifically one sound effect and some background music. You can read it here: <a title="Making Games With Ruby Ep. 10 - Sound" href="http://devel.manwithcode.com/making-games-with-ruby.html#8">http://devel.manwithcode.com/making-games-with-ruby.html#8</a></p>
<p>I&#8217;d like to say sorry for how long this episode took to come out. It&#8217;s a short one, but I still had difficulty finding the time and motivation to produce it. For the most part this is because I&#8217;m back at school, so expect future delays, but I&#8217;ll still try my best to get them out as fast as I can.</p>
<p>- Tyler</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/419/making-games-with-ruby-episode-10-written/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 9 Written</title>
		<link>http://manwithcode.com/411/making-games-with-ruby-episode-9-written/</link>
		<comments>http://manwithcode.com/411/making-games-with-ruby-episode-9-written/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 02:52:10 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=411</guid>
		<description><![CDATA[Episode nine of the Making Games With Ruby series, Game States (Title, About, and Pause), is finally written! This episode has us implementing game states, which lays the foundation for our Pause, Title, and About screens, which we also implement in this episode. You can read it here: http://devel.manwithcode.com/making-games-with-ruby.html#7 This one is probably the longest [...]]]></description>
				<content:encoded><![CDATA[<p>Episode nine of the Making Games With Ruby series, Game States (Title, About, and Pause), is finally written! This episode has us implementing game states, which lays the foundation for our Pause, Title, and About screens, which we also implement in this episode. You can read it here: <a title="Making Games With Ruby Ep. 9 - Game States (Title, About, and Pause)" href="http://devel.manwithcode.com/making-games-with-ruby.html#7">http://devel.manwithcode.com/making-games-with-ruby.html#7</a></p>
<p>This one is probably the longest episode in the entire series (at least so far), which is why it&#8217;s taken me a bit longer to finish. (I&#8217;m still not 100% sure I&#8217;ve caught every mistake, so if you see any code errors or script typos, don&#8217;t hesitate to email me, or leave a comment here).</p>
<p>Enjoy! <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>- Tyler</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/411/making-games-with-ruby-episode-9-written/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 8 Written</title>
		<link>http://manwithcode.com/407/making-games-with-ruby-episode-8-written/</link>
		<comments>http://manwithcode.com/407/making-games-with-ruby-episode-8-written/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 20:12:31 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=407</guid>
		<description><![CDATA[Episode eight of Making Games With Ruby, Winning and Playing Again, is written! This one&#8217;s a pretty short and easy episode, but it&#8217;s still a good one! You can read it here: http://devel.manwithcode.com/making-games-with-ruby.html#6 Have fun! - Tyler]]></description>
				<content:encoded><![CDATA[<p>Episode eight of Making Games With Ruby, Winning and Playing Again, is written! This one&#8217;s a pretty short and easy episode, but it&#8217;s still a good one! You can read it here: <a title="Making Games With Ruby Ep. 8 - Winning and Playing Again" href="http://devel.manwithcode.com/making-games-with-ruby.html#6">http://devel.manwithcode.com/making-games-with-ruby.html#6</a></p>
<p>Have fun! <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>- Tyler</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/407/making-games-with-ruby-episode-8-written/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 7 Written</title>
		<link>http://manwithcode.com/404/making-games-with-ruby-episode-7-written/</link>
		<comments>http://manwithcode.com/404/making-games-with-ruby-episode-7-written/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 02:26:21 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=404</guid>
		<description><![CDATA[Episode seven of Making Games With Ruby, Keeping Score, has been written. You can get to it from this link: http://devel.manwithcode.com/making-games-with-ruby.html#5 This episode has text drawing and players scoring on each other, I hope you like it - Tyler]]></description>
				<content:encoded><![CDATA[<p>Episode seven of Making Games With Ruby, Keeping Score, has been written. You can get to it from this link: <a title="Making Games With Ruby Ep. 7 - Keeping Score" href="http://devel.manwithcode.com/making-games-with-ruby.html#5">http://devel.manwithcode.com/making-games-with-ruby.html#5</a></p>
<p>This episode has text drawing and players scoring on each other, I hope you like it <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>- Tyler</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/404/making-games-with-ruby-episode-7-written/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 6 Written</title>
		<link>http://manwithcode.com/401/making-games-with-ruby-episode-6-written/</link>
		<comments>http://manwithcode.com/401/making-games-with-ruby-episode-6-written/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 04:28:16 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=401</guid>
		<description><![CDATA[Episode six of Making Games With Ruby, The Ball, is written, online, and available at this link: http://devel.manwithcode.com/making-games-with-ruby.html#4 This episode has the ball boucing off the sides of the screen and the paddles, so it&#8217;s pretty cool, I hope you like it! - Tyler]]></description>
				<content:encoded><![CDATA[<p>Episode six of Making Games With Ruby, The Ball, is written, online, and available at this link: <a title="Making Games With Ruby Ep. 6 - The Ball" href="http://devel.manwithcode.com/making-games-with-ruby.html#4">http://devel.manwithcode.com/making-games-with-ruby.html#4</a></p>
<p>This episode has the ball boucing off the sides of the screen and the paddles, so it&#8217;s pretty cool, I hope you like it! <img src='http://manwithcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>- Tyler</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/401/making-games-with-ruby-episode-6-written/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Games With Ruby – Episode 5 Written</title>
		<link>http://manwithcode.com/389/making-games-with-ruby-episode-5-written/</link>
		<comments>http://manwithcode.com/389/making-games-with-ruby-episode-5-written/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 03:09:18 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=389</guid>
		<description><![CDATA[Episode five of Making Games With Ruby, Input and Movement, is all written up and available at this link: http://devel.manwithcode.com/making-games-with-ruby.html#3 Enjoy! - Tyler]]></description>
				<content:encoded><![CDATA[<p>Episode five of Making Games With Ruby, Input and Movement, is all written up and available at this link: <a title="Making Games With Ruby Ep. 5 - Input and Movement" href="http://devel.manwithcode.com/making-games-with-ruby.html#3">http://devel.manwithcode.com/making-games-with-ruby.html#3</a></p>
<p>Enjoy!</p>
<p>- Tyler</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/389/making-games-with-ruby-episode-5-written/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>And I’m Back!</title>
		<link>http://manwithcode.com/393/and-im-back/</link>
		<comments>http://manwithcode.com/393/and-im-back/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 01:47:24 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=393</guid>
		<description><![CDATA[So you know that Making Games With Ruby series that I&#8217;ve been neglecting for a while? I&#8217;m working on it again! So here&#8217;s what you need to know: I&#8217;ve decided to write the entire series before I make any more videos You can see a text version of the tutorials here: http://devel.manwithcode.com/making-games-with-ruby.html (so far I&#8217;ve [...]]]></description>
				<content:encoded><![CDATA[<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/SgBXWn2AmZQ&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/SgBXWn2AmZQ&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>So you know that Making Games With Ruby series that I&#8217;ve been neglecting for a while? I&#8217;m working on it again!</p>
<p>So here&#8217;s what you need to know:</p>
<ul>
<li>I&#8217;ve decided to write the entire series before I make any more videos</li>
<li>You can see a text version of the tutorials here: <a title="Making Games With Ruby" href="http://devel.manwithcode.com/making-games-with-ruby.html">http://devel.manwithcode.com/making-games-with-ruby.html</a> (so far I&#8217;ve gotten through episode 4)</li>
<li>If you see anything I say that&#8217;s wrong, is confusing, needs more explanation, or if there&#8217;s any code that doesn&#8217;t work, tell me about it and I&#8217;ll fix it as soon as I can</li>
</ul>
<p>Sorry for the wait, and I hope you like the tutorials!</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/393/and-im-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade Successful</title>
		<link>http://manwithcode.com/387/upgrade-successful/</link>
		<comments>http://manwithcode.com/387/upgrade-successful/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 00:39:52 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=387</guid>
		<description><![CDATA[Upgrade to WordPress 3 appears to be a success, let me know if you see anything that&#8217;s not working right.]]></description>
				<content:encoded><![CDATA[<p>Upgrade to WordPress 3 appears to be a success, let me know if you see anything that&#8217;s not working right.</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/387/upgrade-successful/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading the Site</title>
		<link>http://manwithcode.com/385/upgrading-the-site/</link>
		<comments>http://manwithcode.com/385/upgrading-the-site/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 00:34:26 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=385</guid>
		<description><![CDATA[I&#8217;m upgrading manwithcode.com to WordPress 3, if the site goes down, or malfunctions, give it a few minutes and it should be back to normal.]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m upgrading manwithcode.com to WordPress 3, if the site goes down, or malfunctions, give it a few minutes and it should be back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/385/upgrading-the-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apology</title>
		<link>http://manwithcode.com/371/apology/</link>
		<comments>http://manwithcode.com/371/apology/#comments</comments>
		<pubDate>Tue, 11 May 2010 03:17:22 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[apology]]></category>
		<category><![CDATA[sorry]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=371</guid>
		<description><![CDATA[Covered In This Episode I&#8217;m sorry Why I&#8217;ve been gone Making Games with Ruby update Thank you donators!]]></description>
				<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/xNg9OkphKGY&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/xNg9OkphKGY&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><strong>Covered In This Episode</strong></p>
<ul>
<li>I&#8217;m sorry</li>
<li>Why I&#8217;ve been gone</li>
<li>Making Games with Ruby update</li>
<li>Thank you donators!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/371/apology/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sorry…</title>
		<link>http://manwithcode.com/367/sorry/</link>
		<comments>http://manwithcode.com/367/sorry/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 00:38:40 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=367</guid>
		<description><![CDATA[I posted a couple days ago that I thought I could get some new videos out, turns out I won&#8217;t be able to. Sorry if I got anyone&#8217;s hopes up.]]></description>
				<content:encoded><![CDATA[<p>I posted a couple days ago that I thought I could get some new videos out, turns out I won&#8217;t be able to. Sorry if I got anyone&#8217;s hopes up.</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/367/sorry/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Update 3/14/2010</title>
		<link>http://manwithcode.com/365/update-3142010/</link>
		<comments>http://manwithcode.com/365/update-3142010/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 01:19:49 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=365</guid>
		<description><![CDATA[I&#8217;m hoping to get some new episodes out in the Making Games with Ruby series sometime this week, no promises, but I figured I would let everyone know that I haven&#8217;t disappeared!]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m hoping to get some new episodes out in the Making Games with Ruby series sometime this week, no promises, but I figured I would let everyone know that I haven&#8217;t disappeared!</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/365/update-3142010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Games with Ruby Ep. 3 – Basics</title>
		<link>http://manwithcode.com/322/making-games-with-ruby-ep-3-basics/</link>
		<comments>http://manwithcode.com/322/making-games-with-ruby-ep-3-basics/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 23:58:06 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[basics window games rubygame ruby]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=322</guid>
		<description><![CDATA[Covered In This Episode: Creating a Window Basic Event Handling Transcript: Hello Everybody and welcome to making games with Ruby episode 3, Basics. I&#8217;m Tyler and these videos are brought to you by manwithcode.com. Today we&#8217;re just going to be talking about the very basics of game creation, just getting a window on the screen. [...]]]></description>
				<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/rcsNp8deJVs&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/rcsNp8deJVs&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><strong>Covered In This Episode:</strong></p>
<ul>
<li>Creating a Window</li>
<li>Basic Event Handling</li>
</ul>
<p><strong>Transcript:</strong></p>
<p>Hello Everybody and welcome to making games with Ruby episode 3, Basics. I&#8217;m Tyler and these videos are brought to you by manwithcode.com.</p>
<p>Today we&#8217;re just going to be talking about the very basics of game creation, just getting a window on the screen. The code for this episode is on manwithcode.com, if you&#8217;re not there already. <a title="Making Games with Ruby Episode 3 - Basics" href="http://manwithcode.com/322/making-games-with-ruby-ep-3-basics">http://manwithcode.com/322/making-games-with-ruby-ep-3-basics</a></p>
<p>Lets get started!</p>
<p>We&#8217;re going to start by requiring in the libraries we need, which for now is only rubygems and rubygame:</p>
<pre class="brush: ruby; title: ; notranslate">
require 'rubygems'
require 'rubygame'
</pre>
<p>Then we&#8217;re going to create the main Game class, and stub out all the methods in it:</p>
<pre class="brush: ruby; title: ; notranslate">
class Game
	def initialize
	end

	def run!
	end

	def update
	end

	def draw
	end
end
</pre>
<p>And after that we&#8217;re going to add the code to run the game:</p>
<pre class="brush: ruby; title: ; notranslate">
g = Game.new
g.run!
</pre>
<p>So far this is just some very basic structure, nothing really happens yet. I&#8217;m going to run the code just to double check we have no syntax errors&#8230;</p>
<p>The first thing we&#8217;re going to do is initialize everything we&#8217;ll need:</p>
<pre class="brush: ruby; title: ; notranslate">
def initialize
	@screen = Rubygame::Screen.new [640, 480], 0, [Rubygame::HWSURFACE, Rubygame::DOUBLEBUF]
	@screen.title = &quot;Pong&quot;

	@queue = Rubygame::EventQueue.new
	@clock = Rubygame::Clock.new
	@clock.target_framerate = 60
end
</pre>
<p>Some of this is self explaitory, but let&#8217;s break it down. The first line of <code>initialize</code> creates the window for our game, Rubygame calls this a Screen. The first argument <code>[640, 480]</code> is the size of the screen, the second is the screen depth (you don&#8217;t need to worry about this), the last one is a list of flags we pass to rubygame. HWSURFACE means we want it to be accelerated on the graphics card if available, and DOUBLEBUF means we want the screen to be double buffered. Double buffering is a way of drawing to the screen. I won&#8217;t go into too much detail right now to explain double buffering, but I will in a later episode.</p>
<p>The second line has an obvious purpose, it sets the title at the top of the screen to Pong</p>
<p>The fifth line is setup so we can handle events, I&#8217;ll talk more about this later.</p>
<p>The last two lines are the setup so we can limit the framerate to 60 frames per second. The frame rate is how many times the screen is drawn every second (we&#8217;ll be doing our drawing in the <code>Game#draw</code> method). If we let this go unchecked, our game will run as fast as possible which isn&#8217;t desireable since top speed will be different on different computers, and depending on what the game is doing at a particular moment in time. I think 60 is a good number, but we can easily change it later if we want.</p>
<p>Next we&#8217;re going to setup the main game loop:</p>
<pre class="brush: ruby; title: ; notranslate">
def run!
	loop do
		update
		draw
		@clock.tick
	end
end
</pre>
<p>This loops indefinately until we decide in a different part of the code to end the game. <code>@clock.tick</code> is what allows us to limit our framerate. You can now run the game, it should just be a black screen. You can see the title at the top, like we set in the initialize function.</p>
<p>But if you try to close the window&#8230; Nothing happens!!! To close it try pressing CTRL+C in the command prompt window, or you may have to go to the task manager and kill it from there. To fix this problem, we need to talk about the event queue.</p>
<p>We&#8217;re going to start by defining the <code>update</code> method:</p>
<pre class="brush: ruby; title: ; notranslate">
def update
	@queue.each do |ev|
		case ev
			when Rubygame::QuitEvent
				Rubygame.quit
				exit
		end
	end
end
</pre>
<p>Whenever the user gives us some input, presses a key, moves the mouse, etc. the Rubygame adds an event for this input onto the queue. We handle these events in our update method.</p>
<p><code>@queue.each</code> loops over each event, and we have a case statement that handles the event depending on the type. For closing the window, the event type is <code>Rubygame::QuitEvent</code>, which is generated whenever the user presses the close window button or ALT+F4.</p>
<p>Now if you run the game, the window should appear and you should be able to close it now! Yay!</p>
<p>This is the final source listing for this episode:</p>
<pre class="brush: ruby; title: ; notranslate">
require 'rubygems'
require 'rubygame'

class Game
	def initialize
		@screen = Rubygame::Screen.new [640, 480], 0, [Rubygame::HWSURFACE, Rubygame::DOUBLEBUF]
		@screen.title = &amp;quot;Pong&amp;quot;

		@queue = Rubygame::EventQueue.new
		@clock = Rubygame::Clock.new
		@clock.target_framerate = 60
	end

	def run!
		loop do
			update
			draw
			@clock.tick
		end
	end

	def update
		@queue.each do |ev|
			case ev
				when Rubygame::QuitEvent
					Rubygame.quit
					exit
			end
		end
	end

	def draw
	end
end

g = Game.new
g.run!
</pre>
<p>This brings us to the end of the episode.</p>
<p>If you have any questions, comments, or suggestions, leave a comment on this page or email me at tyler@manwithcode.com.</p>
<p>Thank you very much for watching! Goodbye!</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/322/making-games-with-ruby-ep-3-basics/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<series:name><![CDATA[Making Games With Ruby]]></series:name>
	</item>
		<item>
		<title>Making Games with Ruby Ep. 2 – Setup</title>
		<link>http://manwithcode.com/310/making-games-with-ruby-ep-2-setup/</link>
		<comments>http://manwithcode.com/310/making-games-with-ruby-ep-2-setup/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 00:06:26 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[setup rubygame windows mac linux]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=310</guid>
		<description><![CDATA[Windows: Mac: Linux: Links: Rubygame Installation guides Rubygame windows dependencies Covered in This Episode: How to get set up for this series on Windows, Mac, and Linux]]></description>
				<content:encoded><![CDATA[<p><strong>Windows:</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/zJgyefzctRg&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/zJgyefzctRg&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<pre class="brush: plain; title: ; notranslate">
gem install rubygame
</pre>
<p><strong>Mac:</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/URGqLBfcI5A&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/URGqLBfcI5A&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><strong>Linux:</strong></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/aq0LGlMrQgM&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/aq0LGlMrQgM&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get install -y libsdl1.2debian libsdl1.2-dev libsdl-image1.2 libsdl-image1.2-dev libsdl-ttf2.0-0 libsdl-ttf2.0-dev libsdl-mixer1.2 libsdl-mixer1.2-dev libsdl-gfx1.2-4 libsdl-gfx1.2-dev

sudo gem install rubygame
</pre>
<p><strong>Links:</strong></p>
<ul>
<li><a title="Rubygame installation guides" href="http://rubygame.org/wiki/Installation_Instructions">Rubygame Installation guides</a></li>
<li><a title="Rubygame windows dependancies" href="http://manwithcode.com/wp-content/uploads/2009/11/rubygame-deps.zip">Rubygame windows dependencies</a></li>
</ul>
<p><strong>Covered in This Episode:</strong></p>
<ul>
<li>How to get set up for this series on Windows, Mac, and Linux</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/310/making-games-with-ruby-ep-2-setup/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<series:name><![CDATA[Making Games With Ruby]]></series:name>
	</item>
		<item>
		<title>Making Games With Ruby Ep. 1 – Intro</title>
		<link>http://manwithcode.com/299/making-games-with-ruby-ep-1-intro/</link>
		<comments>http://manwithcode.com/299/making-games-with-ruby-ep-1-intro/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 22:02:31 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[intro]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=299</guid>
		<description><![CDATA[Links: Programming with Ruby Video Tutorials Covered In This Episode: What you&#8217;ll learn What we&#8217;re using What I&#8217;m assuming about you Why I&#8217;m teaching this Transcript: Hello Everybody, and Welcome to the first episode of Making Games With Ruby! I&#8217;m Tyler, and this video is brought to you by manwithcode.com In this episode I&#8217;ll be [...]]]></description>
				<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/QnXPUEXKrzg&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/QnXPUEXKrzg&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><strong>Links:</strong></p>
<ul>
<li><a title="Programming With Ruby - Man With Code" href="http://manwithcode.com/ruby-programming-tutorials/">Programming with Ruby Video Tutorials</a></li>
</ul>
<p><strong>Covered In This Episode:</strong></p>
<ul>
<li>What you&#8217;ll learn</li>
<li>What we&#8217;re using</li>
<li>What I&#8217;m assuming about you</li>
<li>Why I&#8217;m teaching this</li>
</ul>
<p><strong>Transcript:</strong></p>
<p>Hello Everybody, and Welcome to the first episode of Making Games With Ruby! I&#8217;m Tyler, and this video is brought to you by manwithcode.com</p>
<p>In this episode I&#8217;ll be covering what you will be learning in this series, what we&#8217;re using to develop our games, what I&#8217;m assuming about you, and why I&#8217;m teaching you.</p>
<p><strong>What you&#8217;ll learn</strong></p>
<p>If you couldn&#8217;t tell by the title, you&#8217;re going to learn how to make games using the Ruby programming language. More specifically I&#8217;m going to teach you how to make Pong. Though Pong may sound a little simplistic, and I&#8217;m not claiming it isn&#8217;t, learning how to make Pong will teach you almost everything you&#8217;ll need to know to make any game, with out getting bogged down in game specific details.<strong></strong></p>
<p><strong>What we&#8217;re using</strong></p>
<p>Of course we&#8217;re using the Ruby programming language. To create games, we&#8217;ll have the help of the Rubygame library, which is many things including a wrapper around SDL, and a nice framework for developing games.</p>
<p>In the creation of this series I will be using Ruby 1.8.7-p174, and Rubygame 2.6.2. Theoretically The code in this series should run on Ruby 1.8.whatever and Rubygame 2.whatever, no promises though, since languages and libraries change.</p>
<p>And if you want to know about my environment, I&#8217;ll be running Ubuntu 9.10 as my Operating System, and using Gedit as my text editor. You can write and run the code on any platform you wish, but this is what I prefer.</p>
<p><strong>What I&#8217;m assuming about you</strong></p>
<p>So I don&#8217;t have to explain every line of code to you, I&#8217;m going to be assuming that you already know the Ruby programming language. If you don&#8217;t there are many books available, as well as my own video series Programming With Ruby at http://manwithcode.com/ruby-programming-tutorials/</p>
<p>Just reading one book, or watching my video series probably isn&#8217;t enough. I&#8217;ll be easier if you have used Ruby for a while, and are comfortable with it. This isn&#8217;t<br />
a requirement, but it would help make things easier on yourself.</p>
<p><strong>Why I&#8217;m teaching this</strong></p>
<p>There are many reasons why, but I&#8217;ll talk about the most important few:</p>
<p>1) I love making games.<br />
2) I love teaching.<br />
3) Teaching teaches me something. &#8211; When you actually sit down and think about what you do, things become more concrete, and you know why you do what you do, or even see bad habits that you need to correct<br />
4) I&#8217;m trying to make money &#8211; Yep, I&#8217;m not going to try and hide this. Some of the videos in this series will be put up for sale, you&#8217;ll be able to see them as I put out more videos.</p>
<p>Thank you very much for watching! I&#8217;ll see you in the next video.</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/299/making-games-with-ruby-ep-1-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[Making Games With Ruby]]></series:name>
	</item>
		<item>
		<title>Announcing: Making Games with Ruby</title>
		<link>http://manwithcode.com/287/announcing-making-games-with-ruby/</link>
		<comments>http://manwithcode.com/287/announcing-making-games-with-ruby/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 01:20:39 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Making Games With Ruby]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=287</guid>
		<description><![CDATA[Making Games with Ruby is the next video series!]]></description>
				<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ENmkaga2CQ8&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/ENmkaga2CQ8&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Making Games with Ruby is the next video series!</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/287/announcing-making-games-with-ruby/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Update – 9/28/2009</title>
		<link>http://manwithcode.com/279/update-9282009/</link>
		<comments>http://manwithcode.com/279/update-9282009/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 21:09:13 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=279</guid>
		<description><![CDATA[Updates on the status of Man With Code, what&#8217;s been going on, what&#8217;s to come.]]></description>
				<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/jmTcQsbr840&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/jmTcQsbr840&amp;hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Updates on the status of Man With Code, what&#8217;s been going on, what&#8217;s to come.</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/279/update-9282009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Leave Feedback Here) Programming With Ruby Feedback</title>
		<link>http://manwithcode.com/235/leave-feedback-here-programming-with-ruby-feedback/</link>
		<comments>http://manwithcode.com/235/leave-feedback-here-programming-with-ruby-feedback/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 09:08:03 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[Ruby Programming]]></category>
		<category><![CDATA[1000 comments]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://manwithcode.com/?p=235</guid>
		<description><![CDATA[Leave your feedback for the 1000 comments on the Programming With Ruby series]]></description>
				<content:encoded><![CDATA[<p>Leave your feedback for the  1000 comments on the Programming With Ruby series</p>
]]></content:encoded>
			<wfw:commentRss>http://manwithcode.com/235/leave-feedback-here-programming-with-ruby-feedback/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
	
		<series:name><![CDATA[Ruby Programming]]></series:name>
	</item>
	</channel>
</rss><!-- Dynamic page generated in 0.351 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-06-11 18:43:06 -->
