<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>game design 11 &#187; howto</title>
	<atom:link href="http://gamedesign11.wordpress.com/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://gamedesign11.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 04 Apr 2006 12:22:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gamedesign11.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>game design 11 &#187; howto</title>
		<link>http://gamedesign11.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gamedesign11.wordpress.com/osd.xml" title="game design 11" />
	<atom:link rel='hub' href='http://gamedesign11.wordpress.com/?pushpress=hub'/>
		<item>
		<title>howto: code with comments</title>
		<link>http://gamedesign11.wordpress.com/2006/03/04/howto-code-with-comments/</link>
		<comments>http://gamedesign11.wordpress.com/2006/03/04/howto-code-with-comments/#comments</comments>
		<pubDate>Sat, 04 Mar 2006 15:07:36 +0000</pubDate>
		<dc:creator>gamedesign11</dc:creator>
				<category><![CDATA[gamemaker]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[problems]]></category>

		<guid isPermaLink="false">http://gamedesign11.wordpress.com/2006/03/04/howto-code-with-comments/</guid>
		<description><![CDATA[Some students have been blogging a blow by blow description of every single thing they did to solve the problems. This is a lot of work but also hard to read and follow because there is so much description in there. A good alternative is to describe how the code works rather than what you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gamedesign11.wordpress.com&#038;blog=88037&#038;post=19&#038;subd=gamedesign11&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some students have been blogging a blow by blow description of every single thing they did to solve the problems.</p>
<p>This is a lot of work but also hard to read and follow because there is so much description in there.</p>
<p>A good alternative is to describe how the code works rather than what you did to create the code.</p>
<p>Here&#8217;s an example, using <strong>problem six</strong>:</p>
<blockquote><p><em>A ball goes through a goal and the score goes up by one…the score does not go up if the ball misses the goal</em></p></blockquote>
<p><a class="imagelink" title="goalMiss.jpg" href="http://gamedesign11.files.wordpress.com/2006/03/goalMiss.jpg"><img alt="goalMiss.jpg" src="http://gamedesign11.files.wordpress.com/2006/03/goalMiss.thumbnail.jpg?w=550" /></a>goal miss <a class="imagelink" title="goalScore.jpg" href="http://gamedesign11.files.wordpress.com/2006/03/goalScore.jpg"><img alt="goalScore.jpg" src="http://gamedesign11.files.wordpress.com/2006/03/goalScore.thumbnail.jpg?w=550" /></a>goal score<br />
After you have made your demo click the Show Information button on your most important objects to obtain the code. You can copy and paste this into your blog like I have done below.</p>
<p>I think it&#8217;s best to intersperse comments about the code inside the code so that you explain the code as you go along. Focus on the main important parts of your code that explains how the problem was solved. Don&#8217;t write about every single thing because then the important stuff gets lost.</p>
<p>Use bold and italics to make it more readable. Unfortunately we don&#8217;t seem to have colour writing in wordpress.</p>
<p><strong>Information about object: objBall</strong></p>
<p><strong> Step Event:</strong><br />
if expression y is less than one</p>
<blockquote><p>set the score relative to 1<br />
destroy the instance<br />
create instance of object objBall at position (216,192)</p></blockquote>
<p><em>Comment: If the ball goes through the goals, then do all of these things: increase the score by one, destroy the ball (so the score won&#8217;t keep going up) and create a new ball in the original position<br />
</em></p>
<p>Collision Event with object objWall:<br />
bounce not precisely against solid objects</p>
<p><em>Comment: If the ball misses the goals then bounce it back into the playing arena</em></p>
<p>Keyboard Event for  Key:<br />
set speed to 5 and direction to 45+random(90)</p>
<p><em>Comment: random(90) will output a number between 0 and 89. then add this to 45 and you get a direction between 45 and 134. So sometimes the ball will go into the goals and sometimes it will miss. Just like real life. </em></p>
<p>Other Event: Outside Room:<br />
jump to the start position<br />
start moving in directions 000010000 with speed set to 0</p>
<p><em>Comment: If the ball leaves the room then jump back to start ready to kick for goal again. </em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gamedesign11.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gamedesign11.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gamedesign11.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gamedesign11.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gamedesign11.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gamedesign11.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gamedesign11.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gamedesign11.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gamedesign11.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gamedesign11.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gamedesign11.wordpress.com&#038;blog=88037&#038;post=19&#038;subd=gamedesign11&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gamedesign11.wordpress.com/2006/03/04/howto-code-with-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e49d196b2b5cda32261fed4237b11683?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gamedesign11</media:title>
		</media:content>

		<media:content url="http://gamedesign11.files.wordpress.com/2006/03/goalMiss.thumbnail.jpg" medium="image">
			<media:title type="html">goalMiss.jpg</media:title>
		</media:content>

		<media:content url="http://gamedesign11.files.wordpress.com/2006/03/goalScore.thumbnail.jpg" medium="image">
			<media:title type="html">goalScore.jpg</media:title>
		</media:content>
	</item>
	</channel>
</rss>
