<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scratch on Ash Tewari</title><link>https://www.tewari.info/tag/scratch/</link><description>Recent content in Scratch on Ash Tewari</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Sat, 11 Apr 2009 16:31:26 +0000</lastBuildDate><atom:link href="https://www.tewari.info/tag/scratch/feed.xml" rel="self" type="application/rss+xml"/><item><title>Create Games From Scratch</title><link>https://www.tewari.info/2009/04/11/create-games-from-scratch/</link><pubDate>Sat, 11 Apr 2009 16:31:26 +0000</pubDate><guid>https://www.tewari.info/2009/04/11/create-games-from-scratch/</guid><description>&lt;p&gt;My 18 month old son woke me up at 4 in the morning. I got him to go back to sleep, but &amp;hellip; and here I am writing.&lt;/p&gt;&#10;&lt;p&gt;A few weeks ago, I downloaded &lt;a class="link" href="http://scratch.mit.edu/" target="_blank" rel="noopener"&#10; &gt;Scratch&lt;/a&gt; from M.I.T&amp;rsquo;s website. Scratch is a programming language for kids. You drag/drop and (literally) snap together programming constructs to create games. Within a couple of minutes, I had a diver chasing a ball bouncing around on the screen.&lt;/p&gt;&#10;&lt;p&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/scratch-diver-ball.png"&gt;&lt;/p&gt;&#10;&lt;p&gt;I showed it to my 5 year old son and he watched as I &amp;ldquo;changed the game&amp;rdquo; and had the ball chase the mouse cursor and the diver chase the ball. He sat down with me and asked me if I could make it a dog chasing the ball instead. Sure! Then we started customizing further. Make it run faster .. Yeah! Let&amp;rsquo;s turn him into &lt;a class="link" href="http://www.scholastic.com/clifford/" target="_blank" rel="noopener"&#10; &gt;Clifford - The Big Red Dog&lt;/a&gt; &amp;hellip; Can he bark ? Sure. Let&amp;rsquo;s turn it into a basket ball .. I want it red, blue, yellow, &amp;hellip; Let&amp;rsquo;s make a basket ball hoop and have Clifford play basketball &amp;hellip; Sure.&lt;/p&gt;&#10;&lt;p&gt;It was a quite productive &lt;a class="link" href="http://en.wikipedia.org/wiki/Pair_programming" title="pair programming"&#10; target="_blank" rel="noopener"&#10; &gt;pair programming&lt;/a&gt; session :) . No TDD yet - he is too young for that kind of stuff :) .&lt;/p&gt;&#10;&lt;p&gt;I was relieved that I didn&amp;rsquo;t loose his attention while I was &amp;ldquo;programming&amp;rdquo;. Now, my son does have a pretty long attention span for his age, but a lot of credit goes to the designers of Scratch. The entire &amp;ldquo;artwork&amp;rdquo; was created within the Scratch application and the &amp;ldquo;programming&amp;rdquo; was just a pure joy for my son. And we were just &amp;ldquo;scratching&amp;rdquo; the surface there. Explore the possibilities &lt;a class="link" href="http://scratch.mit.edu/" target="_blank" rel="noopener"&#10; &gt;here&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;You can download the game here : &lt;a class="link" href="https://www.tewari.info/downloads/Clifford-Ball.sb" &gt;Clifford-ball.sb&lt;/a&gt;. Be careful, sometimes the dog turns upside down. There are some bugs to be fixed :) . Where is the debugger ?&lt;/p&gt;&#10;&lt;p&gt;&lt;img loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://www.tewari.info/images/scratch-clifford-ball.png"&gt;&lt;/p&gt;&#10;</description></item></channel></rss>