<?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>RecessStudios.com</title>
	<atom:link href="http://recessstudios.com/newWPblog/blog.php/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://recessstudios.com/newWPblog/blog.php</link>
	<description>Recess Studios</description>
	<lastBuildDate>Mon, 12 Nov 2012 12:43:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Recess Studios is Closed</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=108</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=108#comments</comments>
		<pubDate>Mon, 12 Nov 2012 12:43:32 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=108</guid>
		<description><![CDATA[The project is no longer active. However, the site will remain online, as I believe Recess Studios is an excellent example of subversively teaching middle schoolers critical thinking, game design, teamwork and collaboration. This is STEM in action. Good teachers create, smart &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=108">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The project is no longer active. However, the site will remain online, as I believe Recess Studios is an excellent example of subversively teaching middle schoolers critical thinking, game design, teamwork and collaboration. This is STEM in action.</p>
<p>Good teachers create, smart teacher steal.  It&#8217;s my hope that Recess Studios becomes a resource and inspiration for other innovators.</p>
<p>Also, if you want to see what it was <em>really </em>like managing a team of seventeen 11-year-olds, <a title="Email Me" href="mailto:evan@evanmatthewfuchs.com">ask me</a> for Visitor access to our <a title="Recess Studios on Basecamp" href="http://basecamp.com/2060231/projects/1500102-recess-studios" target="_blank">behind-the-scenes Basecamp site</a>.</p>
<p>-Evan (Mr.) Fuchs</p>
<p><a href="mailto:evan@evanmatthewfuchs.com" target="_blank">evan (at) EvanMatthewFuchs.com</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=108</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We&#8217;re Back! Scrum, StencylWorks, and More!</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=85</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=85#comments</comments>
		<pubDate>Wed, 15 Feb 2012 00:37:19 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=85</guid>
		<description><![CDATA[Scrum. Officially, Scrum is an &#8220;agile framework for for completing complex projects.&#8221; You can begin to learn more about it here. Like most aspects of our project, Scrum really wasn&#8217;t designed for 11-year-olds, so official ScrumMasters (yeah, that&#8217;s a real &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=85">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Scrum.</strong> Officially, Scrum is an &#8220;agile framework for for completing complex projects.&#8221; You can begin to learn more about it <a title="Scrum" href="http://www.scrumalliance.org/pages/what_is_scrum" target="_blank">here</a>. Like most aspects of our project, Scrum really wasn&#8217;t designed for 11-year-olds, so official ScrumMasters (yeah, that&#8217;s a real thing) may frown upon our implementation. Nonetheless, I like our Scrum Board, and I&#8217;m hoping everyone will start looking forward to our daily stand-up meetings.</p>
<p><strong>iStencyl. </strong> Perhaps the biggest change we made was the switch to iStencyl. The coding team has been hard at work learning the basics, but iStencyl&#8217;s color-coded Lego-like code blocks make it pretty easy to pick up. If you&#8217;re not familiar with iStencyl, it&#8217;s kind of like Scratch on steroids, without the training wheels. I&#8217;ve been using it a lot lately to try and stay a step ahead of our little code monkeys, and I&#8217;m really enjoying it. I&#8217;m in the middle of using it to make another math app to follow up <a title="Tribbs for iPad" href="http://itunes.apple.com/us/app/tribbshd/id446649202?mt=8" target="_blank">Tribbs</a>. Over the next few days, I&#8217;m going to show everyone on the team some of the basics of designing behaviors. We&#8217;re also all eagerly awaiting some the improvements expected in StencylWorks 2.0.</p>
<p>That&#8217;s all for now. If our posts seem sparse or infrequent, it&#8217;s probably because we&#8217;ve begun using <a title="Basecamp" href="http://basecamp.com/2060231/projects/1500102-recess-studios">Basecamp</a> for most of our internal communication. We&#8217;ll still update the development blog, but probably not as often as we should. If you&#8217;re a friend of the project, or a random stranger who wants to offer some words of encouragement (or praise. we really like praise!), you can always reach us at evan (at) RecessStudios.com.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=85</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For the Coding Department</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=80</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=80#comments</comments>
		<pubDate>Sat, 07 Jan 2012 17:31:29 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=80</guid>
		<description><![CDATA[I love Corona. I think it makes sense and is easy to use, once you get used to it. However, I know some of you guys are having a hard time. It&#8217;s frustrating when things like capital letters and missing &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=80">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I love Corona. I think it makes sense and is easy to use, once you get used to it. However, I know some of you guys are having a hard time. It&#8217;s frustrating when things like capital letters and missing parentheses stop your code from working.</p>
<p>Would you like to make a switch? Someone recommended a SDK called iStencyl to me. It looks pretty cool, and perhaps a bit more 5th-grader friendly.</p>
<p>Check it out at: <a href="http://www.stencyl.com/stencylworks/overview/" target="_blank">http://www.stencyl.com/stencylworks/overview/</a> and let me know what you think.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=80</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Homework&#8217; Update</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=77</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=77#comments</comments>
		<pubDate>Thu, 05 Jan 2012 00:04:10 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=77</guid>
		<description><![CDATA[Yesterday, each department came up with some short-term assignments to focus on. Please use the comments of this post to give us an update about your individual progress. Remember: we&#8217;re all learning together. I&#8217;m looking for effort and progress, not &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=77">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday, each department came up with some short-term assignments to focus on. Please use the comments of this post to give us an update about your individual progress.</p>
<p>Remember: we&#8217;re all learning together. I&#8217;m looking for effort and progress, not necessarily polished, app-ready work yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=77</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The beginnings of a game</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=73</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=73#comments</comments>
		<pubDate>Tue, 13 Dec 2011 20:34:28 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=73</guid>
		<description><![CDATA[After an excellent discussion today, we&#8217;ve settled on a rough idea for our first game: a 2D, side-scrolling, ancient Egypt themed platformer. Our current thinking is the the game will have at least three different levels, possibly with a pseudo-level &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=73">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After an excellent discussion today, we&#8217;ve settled on a rough idea for our first game: <strong>a 2D, side-scrolling, ancient Egypt themed platformer.</strong></p>
<p>Our current thinking is the the game will have at least three different levels, possibly with a pseudo-level (afterlife) when you &#8216;die&#8217;. <strong></strong></p>
<p>Tonight&#8217;s assignment is to think of / draw out how the main game mechanic will work. Tap to jump? Tilt to move? etc.<strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=73</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Game Ideas</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=68</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=68#comments</comments>
		<pubDate>Tue, 13 Dec 2011 00:00:55 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=68</guid>
		<description><![CDATA[Today&#8217;s meeting was mostly about the different kids of games we&#8217;ve played. Some of the genres we came up with were: Platformer (like Mario) First Person Shooter [FPS] Arcade/Action Puzzler Sims Board Games Roguelike Dungeon Crawlers Most of my games &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=68">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s meeting was mostly about the different kids of games we&#8217;ve played. Some of the genres we came up with were:</p>
<ul>
<li>Platformer (like Mario)</li>
<li>First Person Shooter [FPS]</li>
<li>Arcade/Action</li>
<li>Puzzler</li>
<li>Sims</li>
<li>Board Games</li>
<li>Roguelike</li>
<li>Dungeon Crawlers</li>
</ul>
<p>Most of my games (<a href="http://itunes.apple.com/us/app/schmutz/id422957882" target="_blank">Schmutz</a>, <a href="http://itunes.apple.com/us/app/pico-firme-bago-lite/id412344832?mt=8" target="_blank">Pico</a>, <a href="http://itunes.apple.com/us/app/tribbshd/id446649202?mt=8" target="_blank">Tribbs</a>) have been puzzlers, but I think a platformer may work best for our project. The game I&#8217;m working on now, Ape Crazy, will be a platformer of sorts.</p>
<p>Sasha &amp; Chris&#8217;s pyramid jumper, as well as Nicole&#8217;s pig adventure could both work as 2D, side-scrolling, platformers.</p>
<p>Also, I reminded everyone that our game must somehow, someway connect with our curriculum. However, if you think about what we study, from (super)heroes in English, to the ancient world in History, the possibilities are pretty endless. I&#8217;m looking forward to making a final decision tomorrow.</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=68</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now Hiring!</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=62</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=62#comments</comments>
		<pubDate>Sun, 11 Dec 2011 18:26:31 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=62</guid>
		<description><![CDATA[We&#8217;re not really hiring. This post is mostly for team members to start thinking about what they would like to specialize in. After Friday&#8217;s discussion, here&#8217;s what we came up with: First of all, we broke the whole studio up &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=62">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re not really hiring. This post is mostly for team members to start thinking about what they would like to specialize in.</p>
<p>After Friday&#8217;s discussion, here&#8217;s what we came up with:</p>
<p>First of all, we broke the whole studio up into 5 major departments, each with several roles:</p>
<ul>
<li><strong>Management</strong> &#8211; responsible for keeping the project moving forward</li>
<ul>
<li><strong>Producer</strong>: That&#8217;s me. Job&#8217;s taken, sorry.</li>
<li><strong>Assistant Producer</strong>: Help keep everyone focused. Should be comfortable working with people in all of the other departments. We&#8217;re not sure if we&#8217;re going to have one or not. If you&#8217;d like to be the Assistant Producer, convince me.</li>
</ul>
</ul>
<ul>
<li><strong>Coding</strong> &#8211; they, um, write the code that makes the game work. Duh.</li>
<ul>
<li><strong>Lead Programmer</strong>: makes sure everything works. Troubleshoot when things go wrong</li>
<li><strong>Gameplay Programmer</strong>: makes sure the various game mechanics (jumping, scrolling, etc.) all work. Most likely more than one person.</li>
<li><strong>Art Programmer</strong>: works with the Art Department to make sure everything is being displayed as it should. Should be comfortable with sprites as well.</li>
<li><strong>Level Programmer</strong>: codes the various different levels</li>
<li><strong>UI Programmer</strong>: gets all the User Interface (menus, score, controls, etc.) things to work</li>
</ul>
</ul>
<ul>
<li><strong>Design</strong> &#8211; develop the idea of our game.</li>
<ul>
<li><strong>Lead Designer</strong>: Makes sure the game is fun!</li>
<li><strong>Level Designer</strong>: comes up with interesting levels</li>
<li><strong>Mechanics Designer</strong>: designs how the game works. How high can we jump? What do red shells do?, etc</li>
<li><strong>UI Designer</strong>: figures out how the user should interact with the game</li>
<li><strong>Lead QA</strong>: Quality Assurance. In charge of testing the game to figure out what works (and what doesn&#8217;t)</li>
</ul>
</ul>
<ul>
<li><strong>Art</strong> &#8211; make our game pretty!</li>
<ul>
<li><strong>Art Director</strong>: make sure everything looks great and stays true to our desired overall style</li>
<li><strong>Background Artist</strong>: creates the jaw-dropping backgrounds and environments</li>
<li><strong>Character Artist</strong>: games need characters!</li>
<li><strong>Object Artist</strong>: design and draw all the objects, shells, mushrooms, starts, etc</li>
<li><strong>Animator</strong>: convert drawings to sprites when necessary. Works with Coders as well.</li>
</ul>
</ul>
<ul>
<li><strong>Sound</strong> &#8211; ever watch a movie with the sound off? Meh.</li>
<ul>
<li><strong>Lead Sound Designer</strong>: creates the audio environment for our game</li>
<li><strong>FX Designer</strong>: brinks the game events to life</li>
</ul>
</ul>
<p>There are probably other roles we haven&#8217;t thought about yet, and several roles will be filled by more than one person. If you think you&#8217;re the best person for a particular job, all you have to do is convince me.</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=62</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More on Corona</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=51</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=51#comments</comments>
		<pubDate>Sun, 11 Dec 2011 17:42:38 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=51</guid>
		<description><![CDATA[This post is for the coders on the team. I&#8217;m going to break down some of the parts of our sample app and explain what they do. If you haven&#8217;t checked out the tools section yet, you should. It has &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=51">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post is for the coders on the team. I&#8217;m going to break down some of the parts of our sample app and explain what they do. If you haven&#8217;t checked out the tools section yet, you should. It has some suggestions and links for getting started.</p>
<p>Here&#8217;s the stuff we&#8217;re almost always going to have at the top of our lua file. I&#8217;ve annotated it so you can see what&#8217;s what. (&#8216;Annotated&#8217; means &#8216;added comments&#8217;. In Corona, if you use two dashes, whatever comes after will be ignored by the compiler.)</p>
<div class="codecolorer-container lua mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="lua codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">display<span style="color: #66cc66;">.</span>setStatusBar<span style="color: #66cc66;">&#40;</span> display<span style="color: #66cc66;">.</span>HiddenStatusBar <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- turns off the device's status bar (signal strength, time, etc)</span><br />
physics <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">require</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff6666;">&quot;physics&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- tells Corona we're going to be using physics in our game</span><br />
physics<span style="color: #66cc66;">.</span>start<span style="color: #66cc66;">&#40;</span> <span style="color: #aa9900;">true</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- turns on the physics engine</span><br />
physics<span style="color: #66cc66;">.</span>setGravity<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- sets up gravity. Just like graphing, it goes X,Y. X goes side to side, Y is up and down. (0,9.8) is normal earth gravity</span><br />
middleX <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>contentWidth<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2</span> <span style="color: #808080; font-style: italic;">-- these lines just make it easy to find the middle of the screen. middleX and middleY are variables that equal half of the screen size</span><br />
middleY <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>contentHeight<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2</span><br />
<span style="color: #0000aa;">math.randomseed</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000aa;">os.time</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- these two lines are needed if you're going to be using random numbers.</span><br />
<span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- Without them, your numbers might not be too random.</span><br />
<span style="color: #808080; font-style: italic;">--physics.setDrawMode( &quot;hybrid&quot; ) --take away the two dashes at the very beginning of this line to see your physics bodies.</span></div></td></tr></tbody></table></div>
<p>Next, we set up our walls. Lines 1-4 draw the rectangles, lines 6-9 add physics to the walls (otherwise they&#8217;d just be pictures; things would pass right through them).</p>
<div class="codecolorer-container lua mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="lua codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">leftWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">480</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">--&quot;leftWall&quot; is a variable. I could have named it anything, but &quot;leftWall&quot; seemed to make more sense than &quot;Frankenstein&quot;</span><br />
rightWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">310</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">480</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- The four numbers each are properties of the wall.</span><br />
topWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">320</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- (x of top left corner, y of top left corner, width, height)</span><br />
bottomWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">470</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">480</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span><br />
<br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>leftWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">--static bodies stay put</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>rightWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">--dynamic bodies react to each other and to gravity</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>topWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">--kinematic bodies react to each other, but not to gravity</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>bottomWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span></div></td></tr></tbody></table></div>
<p>The next line adds our background image. Besides <em>display.newImage</em>, there is also <em>display.newRect</em>, <em>display.newCircle</em>, and <em>display.newText</em>.</p>
<div class="codecolorer-container lua mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="lua codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">background <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newImage<span style="color: #66cc66;">&#40;</span> <span style="color: #ff6666;">&quot;bkg_clouds.png&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- for games, we use png files more than jpgs</span></div></td></tr></tbody></table></div>
<p>Next come the functions. Remember, functions are like recipes: they have the instructions for what to do, but they won&#8217;t run unless you tell them to. Having a recipe for pizza doesn&#8217;t magically make a pizza appear on my plate.</p>
<div class="codecolorer-container lua mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="lua codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #aa9900; font-weight: bold;">function</span> changeColor<span style="color: #66cc66;">&#40;</span>event<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- this one says 'event' because it's linked to the 'tap' listener. It will only run when that event happens.</span><br />
<span style="color: #aa9900; font-weight: bold;">if</span> event<span style="color: #66cc66;">.</span>phase <span style="color: #66cc66;">==</span> <span style="color: #ff6666;">&quot;began&quot;</span> <span style="color: #aa9900; font-weight: bold;">then</span><br />
randomRed <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
randomBlue <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
randomGreen <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
event<span style="color: #66cc66;">.</span>target<span style="color: #66cc66;">:</span>setFillColor<span style="color: #66cc66;">&#40;</span>randomRed<span style="color: #66cc66;">,</span>randomBlue<span style="color: #66cc66;">,</span>randomGreen<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
event<span style="color: #66cc66;">.</span>target<span style="color: #66cc66;">:</span>applyForce<span style="color: #66cc66;">&#40;</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<br />
<span style="color: #aa9900; font-weight: bold;">function</span> makeBall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
ball <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newCircle<span style="color: #66cc66;">&#40;</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">300</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">400</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">30</span> <span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>ball<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;dynamic&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">,</span> radius<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">30</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><br />
ball<span style="color: #66cc66;">:</span>applyForce<span style="color: #66cc66;">&#40;</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
ball<span style="color: #66cc66;">:</span>addEventListener<span style="color: #66cc66;">&#40;</span><span style="color: #ff6666;">&quot;collision&quot;</span><span style="color: #66cc66;">,</span> changeColor<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- this is a listener. Listeners are VERY important. Without them, you get art instead of a game.</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<br />
<span style="color: #aa9900; font-weight: bold;">function</span> makeLotsOfBalls<span style="color: #66cc66;">&#40;</span>howMany<span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">for</span> i<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span>howMany <span style="color: #aa9900; font-weight: bold;">do</span> <span style="color: #808080; font-style: italic;">-- this counts from 1 to howMany (10, in our case) and does something each time.</span><br />
makeBall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span></div></td></tr></tbody></table></div>
<p>Finally, this line gets things going. It tells the <em>makeLotsOfBalls</em> function to run 10 times. Each time it runs, it starts the <em>makeBall()</em> function. Phew.</p>
<div class="codecolorer-container lua mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="lua codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">makeLotsOfBalls<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- if you change the number, you are sending a different value to howMany. makeLotsOfBalls(3) would make 3 balls.</span></div></td></tr></tbody></table></div>
<p>If you have any questions, ask in the comments of this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Baby Steps: Checking Out Corona</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=46</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=46#comments</comments>
		<pubDate>Sun, 11 Dec 2011 17:25:39 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/newWPblog/blog.php/?p=46</guid>
		<description><![CDATA[After some discussion about what a game is and what makes them fun, we rolled up our sleeves and took a look at our SDK (software development kit), Corona. Why Corona? Well, mostly, it&#8217;s what I know. I&#8217;ve used xCode &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=46">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After some discussion about what a game is and what makes them fun, we rolled up our sleeves and took a look at our SDK (software development kit), <a title="Ansca Mobile" href="http://www.anscamobile.com" target="_blank">Corona</a>.</p>
<p>Why Corona? Well, mostly, it&#8217;s what I know. I&#8217;ve used xCode and GameSalad, and I can&#8217;t imagine either working very well for our needs. Lua (the language that Corona uses) isn&#8217;t super difficult, and, after you get the hang of it, it just seems to make sense. Although I know I&#8217;ll end up spending a lot of time proofreading and correcting code, I&#8217;m hoping we&#8217;ll have one or two naturals to do the bulk of the coding (I&#8217;m looking at you, Katie).</p>
<p>For those of you playing along at home, here&#8217;s the code from the sample app we made together:</p>
<div class="codecolorer-container lua mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br /></div></td><td><div class="lua codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">display<span style="color: #66cc66;">.</span>setStatusBar<span style="color: #66cc66;">&#40;</span> display<span style="color: #66cc66;">.</span>HiddenStatusBar <span style="color: #66cc66;">&#41;</span><br />
physics <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">require</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff6666;">&quot;physics&quot;</span><span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>start<span style="color: #66cc66;">&#40;</span> <span style="color: #aa9900;">true</span> <span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>setGravity<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
middleX <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>contentWidth<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2</span><br />
middleY <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>contentHeight<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2</span><br />
<span style="color: #0000aa;">math.randomseed</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000aa;">os.time</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #808080; font-style: italic;">--physics.setDrawMode( &quot;hybrid&quot; )</span><br />
<br />
leftWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">480</span> <span style="color: #66cc66;">&#41;</span><br />
rightWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">310</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">480</span> <span style="color: #66cc66;">&#41;</span><br />
topWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">320</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span><br />
bottomWall <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newRect<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">470</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">480</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">&#41;</span><br />
<br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>leftWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>rightWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>topWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>bottomWall<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;static&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><br />
<br />
background <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newImage<span style="color: #66cc66;">&#40;</span> <span style="color: #ff6666;">&quot;bkg_clouds.png&quot;</span> <span style="color: #66cc66;">&#41;</span><br />
<br />
<span style="color: #aa9900; font-weight: bold;">function</span> changeColor<span style="color: #66cc66;">&#40;</span>event<span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">if</span> event<span style="color: #66cc66;">.</span>phase <span style="color: #66cc66;">==</span> <span style="color: #ff6666;">&quot;began&quot;</span> <span style="color: #aa9900; font-weight: bold;">then</span><br />
randomRed <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
randomBlue <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
randomGreen <span style="color: #66cc66;">=</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
event<span style="color: #66cc66;">.</span>target<span style="color: #66cc66;">:</span>setFillColor<span style="color: #66cc66;">&#40;</span>randomRed<span style="color: #66cc66;">,</span>randomBlue<span style="color: #66cc66;">,</span>randomGreen<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><br />
event<span style="color: #66cc66;">.</span>target<span style="color: #66cc66;">:</span>applyForce<span style="color: #66cc66;">&#40;</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
<br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<br />
<span style="color: #aa9900; font-weight: bold;">function</span> makeBall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
ball <span style="color: #66cc66;">=</span> display<span style="color: #66cc66;">.</span>newCircle<span style="color: #66cc66;">&#40;</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">300</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">400</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">30</span> <span style="color: #66cc66;">&#41;</span><br />
physics<span style="color: #66cc66;">.</span>addBody<span style="color: #66cc66;">&#40;</span>ball<span style="color: #66cc66;">,</span> <span style="color: #ff6666;">&quot;dynamic&quot;</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">&#123;</span>density <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1.0</span><span style="color: #66cc66;">,</span> friction <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.3</span><span style="color: #66cc66;">,</span> bounce <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0.2</span><span style="color: #66cc66;">,</span> isSensor <span style="color: #66cc66;">=</span> <span style="color: #aa9900;">false</span><span style="color: #66cc66;">,</span> radius<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">30</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><br />
ball<span style="color: #66cc66;">:</span>applyForce<span style="color: #66cc66;">&#40;</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #0000aa;">math.random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><br />
ball<span style="color: #66cc66;">:</span>addEventListener<span style="color: #66cc66;">&#40;</span><span style="color: #ff6666;">&quot;collision&quot;</span><span style="color: #66cc66;">,</span> changeColor<span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<br />
<span style="color: #aa9900; font-weight: bold;">function</span> makeLotsOfBalls<span style="color: #66cc66;">&#40;</span>howMany<span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">for</span> i<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span>howMany <span style="color: #aa9900; font-weight: bold;">do</span><br />
makeBall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<span style="color: #aa9900; font-weight: bold;">end</span><br />
<br />
makeLotsOfBalls<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=46</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://recessstudios.com/newWPblog/blog.php/?p=1</link>
		<comments>http://recessstudios.com/newWPblog/blog.php/?p=1#comments</comments>
		<pubDate>Sat, 10 Dec 2011 12:21:33 +0000</pubDate>
		<dc:creator>Mr. Fuchs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://recessstudios.com/wpBlog/?p=1</guid>
		<description><![CDATA[&#8220;Hello World&#8221; is usually the first program that people learn. It&#8217;s exciting to think that we&#8217;re soon going to move from Hello World (or in our case, Hello Crate) to a full-fledged game! The purpose of this blog is two-fold. &#8230; <a href="http://recessstudios.com/newWPblog/blog.php/?p=1">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&#8220;Hello World&#8221; is usually the first program that people learn. It&#8217;s exciting to think that we&#8217;re soon going to move from Hello World (or in our case, Hello Crate) to a full-fledged game!</p>
<p>The purpose of this blog is two-fold. First, we need a place where visitors, teachers, and parents can check on our progress. Secondly, we&#8217;ve got a pretty large team (17!) and we&#8217;re learning things very, very quickly. I will try to use this blog to consolidate, reiterate, and organize the various aspects of our project.</p>
<p>Game on!</p>
]]></content:encoded>
			<wfw:commentRss>http://recessstudios.com/newWPblog/blog.php/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
