<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sanjay Bhatikar on Medium]]></title>
        <description><![CDATA[Stories by Sanjay Bhatikar on Medium]]></description>
        <link>https://medium.com/@sanjay.bhatikar?source=rss-74f8647da3a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fW-7LKOflmMlWRgTXya9bQ.png</url>
            <title>Stories by Sanjay Bhatikar on Medium</title>
            <link>https://medium.com/@sanjay.bhatikar?source=rss-74f8647da3a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:32:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sanjay.bhatikar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Build a Game of Mole Mash With MIT App Inventor]]></title>
            <link>https://medium.com/@sanjay.bhatikar/build-a-game-of-mole-mash-with-mit-app-inventor-74194f0e5c4f?source=rss-74f8647da3a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/74194f0e5c4f</guid>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[appinventor]]></category>
            <category><![CDATA[sprite-animation]]></category>
            <category><![CDATA[canvas]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Sanjay Bhatikar]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 21:13:03 GMT</pubDate>
            <atom:updated>2022-08-28T16:33:11.252Z</atom:updated>
            <content:encoded><![CDATA[<p>Build games with animated characters using image sprites and a canvas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*tJgdgPVyucPPTnPtTUDQBA.gif" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfEMS3tvdxh4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfEMS3tvdxh4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfEMS3tvdxh4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f261aaf9bdaeaf56a24fb12de15c2f47/href">https://medium.com/media/f261aaf9bdaeaf56a24fb12de15c2f47/href</a></iframe><p>In this session, we built an animated game of “mole mash” with MIT App Inventor. The player scores points by stabbing a wily mole with the finger. But the mole’s reflexes improve with each encounter. In the process, we learned HOW TO:</p><ul><li>Use image sprites on a canvas in an animated game</li><li>Orchestrate action with a clock and timer</li><li>Create a custom code block by writing a procedure.</li></ul><p>Participants are well on their way to building animated games like Flappy Bird or Temple Run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74194f0e5c4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Soundboard App With MIT App Inventor]]></title>
            <link>https://medium.com/@sanjay.bhatikar/build-a-soundboard-app-with-mit-app-inventor-2c5498936de6?source=rss-74f8647da3a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c5498936de6</guid>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[appinventor]]></category>
            <category><![CDATA[sensors]]></category>
            <category><![CDATA[soundboards]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Sanjay Bhatikar]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 21:07:28 GMT</pubDate>
            <atom:updated>2022-08-28T16:19:17.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*B-7kMbyMaS7zoHL68wcuMQ.gif" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1t_Bh5ybYXc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1t_Bh5ybYXc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1t_Bh5ybYXc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/722cb1165e00653b2ac048c9f5800ed9/href">https://medium.com/media/722cb1165e00653b2ac048c9f5800ed9/href</a></iframe><p>In this session, we built a soundboard app with MIT App Inventor. A soundboard is an interactive image gallery that plays multimedia files. We built an app that plays recordings of Dr. Martin Luther King’s famous “I Have a Dream” speech and an interview by Malcolm X. In the process, we learned <strong>HOW TO</strong>:</p><ul><li>Apply the event-driven pattern in an Android app</li><li>Design the Graphical User Interface (GUI) with Layouts, and</li><li>Integrate sensors in an app to craft a rich User Experience (UX).</li></ul><p>Participants will apply this knowledge to build their own soundboard apps to inspire, uplift and educate!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c5498936de6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Pedometer App]]></title>
            <link>https://medium.com/@sanjay.bhatikar/a-pedometer-app-217141d74ac6?source=rss-74f8647da3a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/217141d74ac6</guid>
            <category><![CDATA[appinventor]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[sensors]]></category>
            <category><![CDATA[gyroscope]]></category>
            <category><![CDATA[pedometer]]></category>
            <dc:creator><![CDATA[Sanjay Bhatikar]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 02:05:32 GMT</pubDate>
            <atom:updated>2022-08-28T17:01:25.032Z</atom:updated>
            <content:encoded><![CDATA[<p>Sitting is killing people!</p><h3>Let’s get moving!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*mxpw-krK1VMds9F01QmzWw.gif" /></figure><p><em>Can an app can be your companion as you walk your way to good health? Research shows that people with sitting jobs have twice the risk of cardiovascular disease as people with standing jobs. Experts recommend getting out of the chair and walking around at every opportunity. App Inventor’s pedometer component makes logging footsteps a walk in the park.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F4672364&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fcat-gasping-gasp-breathing-sit-gif-4672364&amp;image=https%3A%2F%2Fc.tenor.com%2FLflkHXEwd0UAAAAC%2Fcat-gasping.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb498e0ae208adfcf2432474440e9356/href">https://medium.com/media/bb498e0ae208adfcf2432474440e9356/href</a></iframe><p>The Pedometer component of App Inventor uses the accelerometer sensor. It wraps code around the output of the sensor to sense footfalls from raw sensor readings. The stride length is used as a configurable parameter to calculate the distance traveled. A timeout interval can be set to detect when motion has stopped.</p><p>With the pedometer component, creating a fitness app is so simple! Use the SimpleStep event and program the callback to display the attribute SimpleSteps. Add buttons to stop, start, reset and labels to display. <em>That is all there is to it</em>.</p><h3>Gyroscope</h3><p>Another very useful smartphone sensor is the gyroscope. This sensor detects the phone’s orientation. This is what helps the phone switch the display between portrait and landscape modes depending on the phone’s orientation. Gyroscopes have become very popular in gimbals to stabilize video recordings by travel vloggers.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F3320283&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fbike-tall-awesome-extreme-gif-3320283&amp;image=https%3A%2F%2Fc.tenor.com%2FcdCIYBnhIWMAAAAC%2Fbike-tall.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/462eb96d97d3aad1c7a9efbcd859b0f0/href">https://medium.com/media/462eb96d97d3aad1c7a9efbcd859b0f0/href</a></iframe><p>The principle of a gyroscope’s operation can be intuitively understood from the low-tech experience of riding a bicycle. A bicycle is inherently unstable and wants to fall off to one side. When a bicycle is in motion, the spinning wheels lend it stability and keep it upright. However, it is not simply the wheels by themselves - if the handlebar were frozen in place, the bike would immediately keel over.</p><p>What keeps the bike upright is the small twists of the handlebar attached to a spinning wheel. The bike is continuously listing to one side or the other. The twisting motion of the handlebar brings in play the gyroscopic effect that pulls the bike out of the fall. But then it starts listing to the other side until it is righted again. It is a series of small adjustments happening continually that keep the bicycle upright while swaying from side to side.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5fwbARwLtQQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5fwbARwLtQQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5fwbARwLtQQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/eea5412bfdbfb534197f80ef7c5214a9/href">https://medium.com/media/eea5412bfdbfb534197f80ef7c5214a9/href</a></iframe><p>In scientific terms, the motion resulting from the application of a twisting torque to a spinning object is called precession. There is a popular demonstration of this effect where the instructor holds a spinning bicycle wheel in her hands while seated on a swivel chair. As she turns the wheel sideways from standing position to sleeping position, (being careful not to hurt herself,) the force of precession causes her chair to rotate. <em>A gyroscope harnesses this precession to detect orientation.</em></p><p>In App Inventor, use gyroscope sensor from the Sensors drawer. This sensor reports the angular velocity in degrees per second in three directions. For orientation, simply use the orientation sensor which reports roll, pitch and azimuth in degrees. <em>Note that not every Android phone has a gyroscope sensor. Check the specifications on your phone.</em></p><h3>GPS Sensor</h3><p>The GPS sensor is yet another amazing feat of engineering in an itty-bitty package on the smartphone. People have looked to the skies to find their way since ancient times. Ancient sailors out of sight of land looked up to constellations in the night sky as navigational aids. With modern technology, a constellation of satellites has replaced the stars to pinpoint location anywhere on earth.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCm9op7DwJwA&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCm9op7DwJwA&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FCm9op7DwJwA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/093cba9330e83ffd7ce64767a1838f6a/href">https://medium.com/media/093cba9330e83ffd7ce64767a1838f6a/href</a></iframe><p>Location services often use some form of triangulation. This means using the fact that a signal from a source arrives at a different time at two or more reference points to determine location. As an experiment, we can close our eyes in a quiet room and ask a friend who is in the room with us to snap her fingers. We can usually follow the sound to point in the direction of the friend, keeping eyes closed. This is possible because the sound of fingers snapping arrives at each ear at slightly different times. It is much harder to do this underwater, where sound travels much faster.</p><p>Now let’s suppose we have two people in the room with eyes closed, some distance apart from each other, each pointing in the direction of the friend who snaps her fingers. We can pinpoint the location of our friend as the intersection point of the lines in the directions pointed out. This illustrates a simple form of triangulation.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F5291661&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fjohn-travolta-well-where-is-it-looking-for-something-gif-5291661&amp;image=https%3A%2F%2Fc.tenor.com%2FWnjJsVOwoJQAAAAC%2Fjohn-travolta-well.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/62e57f657779ab1bd6663b7f0e07bd33/href">https://medium.com/media/62e57f657779ab1bd6663b7f0e07bd33/href</a></iframe><p>With GPS sensing, we use this principle to infer the location of the sensor from known orbital position of a constellation of satellites. The GPS receiver computes the location using the difference in arrival times of the signals of at least four satellites. <em>In App Inventor, use the location sensor from the Sensors drawer. It reports the latitude and longitude.</em></p><h3>Summary</h3><p>App Inventor’s Sensors drawer has the following components:</p><ul><li><strong>Accelerometer</strong>: Sense acceleration in three directions.</li><li><strong>Pedometer</strong>: Detect and count footsteps.</li><li><strong>Gyroscope</strong>: Sense spinning motion along three orthogonal axes.</li><li><strong>Orientation</strong>: Detect roll, pitch and azimuth.</li><li><strong>Location</strong>: Obtain lat-lon coordinates and address at present location.</li></ul><p>Note that not every Android phone has every sensor. Please check the specifications in order to use any component from the Sensors drawer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=217141d74ac6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keeping Time]]></title>
            <link>https://medium.com/@sanjay.bhatikar/keeping-time-f0397aa64bbf?source=rss-74f8647da3a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0397aa64bbf</guid>
            <category><![CDATA[timer]]></category>
            <category><![CDATA[sprite]]></category>
            <category><![CDATA[appinventor]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Sanjay Bhatikar]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 01:51:56 GMT</pubDate>
            <atom:updated>2022-08-26T18:24:03.236Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Carpe diem! “Gather ye rosebuds while ye may, Old Time is still a-flying,” the poet Virgil exhorted the youth of his day. Makers of today know to seize the moment, in our world and the worlds we create with raw code and microprocessors. Like oarsmen moving in synchronicity to drummer’s beat, animated characters rock our digital worlds to a clock’s pulsating rhythm.</em></p><p>“<a href="https://medium.com/@sanjay.bhatikar/build-a-game-of-mole-mash-with-mit-app-inventor-74194f0e5c4f">Mole Mash</a>” is the second app we build in CwC. It exposes concepts around animation using clocks and timers. These concepts are at the heart of iconic games like Super Mario Run or Flappy Bird. Master the time-keeper’s art to build the next iconic game to uplift and educate!</p><h3>Rhyme &amp; Rhythm</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13469431&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fprayuth-oarsman-gif-13469431&amp;image=https%3A%2F%2Fc.tenor.com%2Fj8DXNHRjKtwAAAAC%2Fprayuth-oarsman.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c988c297dccec96060818db19c868761/href">https://medium.com/media/c988c297dccec96060818db19c868761/href</a></iframe><p>All life moves to a rhythm. When rhythm goes missing, we immediately sense discord. In the digital world, clocks provide a rhythm to use for orchestration. In the event-driven paradigm, we set timers on clocks to trigger events at a regular interval. Let’s unpack this, step by step.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtXFBkF0uaMU&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtXFBkF0uaMU&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FtXFBkF0uaMU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ff26246fa8a13a6f47b38779f0b2e16/href">https://medium.com/media/8ff26246fa8a13a6f47b38779f0b2e16/href</a></iframe><p>The washing machine makes a wonderful illustration of the use of a timer to orchestrate multiple electromechanical systems. Imagine a rotisserie-like shaft that turns slowly at a constant speed. On the shaft are cams, circular discs with bumps on the periphery. As the shaft turns, these bumps operate switches that turn different systems on or off — inlet valves, outlet valve, motor. The profile of a cam’s periphery determines when the system it operates comes online and goes offline and the duration in between. The relative positioning of cams on the shaft provides coordination among systems.</p><p>The shaft and cams have given way to code with clocks and timers on a microprocessor. In your home appliances such as dishwasher, washer and dryer, cooking range, you will find microprocessors made by large semiconductor manufacturers such as Texas Instruments or Broadcom and running code written in the C or C++ programming languages. The microprocessor in a smartphone is also made by these semiconductor manufacturers. And we have the opportunity to write code to run on these microprocessors in App Inventor as easily a building with LEGOs.</p><h3>Nick of Time</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13143819&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fhurry-up-youre-late-time-check-gif-13143819&amp;image=https%3A%2F%2Fc.tenor.com%2FcYS07syGIM4AAAAC%2Fhurry-up.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b6e9abc6c90c5ff2a7fd68c0acdd86f/href">https://medium.com/media/2b6e9abc6c90c5ff2a7fd68c0acdd86f/href</a></iframe><p>Use App Inventor’s Clock component from the Sensors drawer. Whereas a sensor signals an event when triggered, the clock component signals events in a steady stream at a set time interval. Set the interval using the clock’s TimerInterval property, say 500 ms. Now, an event is signaled every 500 ms or half-second.</p><p>Now that we have our time-keeper, It is now time to gather the rest of our ensemble. We need a Canvas component to set the stage. And an ImageSprite component for the actor. These are found in the Drawing and Animation drawer of App Inventor.</p><p><em>All the world’s a stage,<br>And all the men and women merely players;<br>They have their exits and their entrances,<br>​And one man in his time plays many parts.</em><br><strong>William Shakespeare</strong></p><h3>Creative Canvas</h3><p>Use a canvas to provide an interesting backdrop for action. The sprites “live” in the canvas and sprites exist only within a canvas perimeter. A canvas may not have any components other than sprites and as many sprites as needed can share a canvas. As the backdrop, the canvas not only provides cool graphics, it provides a frame of reference for sprite location.</p><p>The main canvas properties are background image and size. It is customary to set the canvas dimensions in relation to the screen for consistency of display (within reason) across the diversity of screen sizes and aspect ratios among Android phones or tablets. Sprite location can then be specified in relation to canvas size.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F11136475&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fkrot-mole-krtek-where-are-you-ty-gde-gif-11136475&amp;image=https%3A%2F%2Fc.tenor.com%2FT4M0XcS3XwEAAAAC%2Fkrot-mole.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/30975274d7968da6598eda47168aa9dc/href">https://medium.com/media/30975274d7968da6598eda47168aa9dc/href</a></iframe><p>In “<a href="https://medium.com/@sanjay.bhatikar/build-a-game-of-mole-mash-with-mit-app-inventor-74194f0e5c4f">Mole Mash</a>”, which is a game of whack-a-mole, we have set the canvas to show mole-holes, thus creating an ambience suitable to the game. We have set dimensions to use up the entire available real-estate of the screen. Below the canvas, we have positioned a label to show the score and a button to start the game or reset.</p><h3>Spirited Sprites</h3><p>A sprite has properties for aesthetics as well as animation. The Picture property sets the look and the Height and Width properties set the size. The sprite has location in cartesian coordinates, with the top-left corner of the canvas as the origin (i.e (0, 0)). In “Mole Mash”, the mole moves to a new random location every time the timer fires, e.g. 500 ms. The x-coordinate is calculated as a random fraction of the canvas width and the y-coordinate is calculated as random fraction of the canvas height.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F12905383&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fclock-dance-costume-time-to-rock-gif-12905383&amp;image=https%3A%2F%2Fc.tenor.com%2FToxuZe2Ez80AAAAC%2Fclock-dance.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a4d9fcd75eec707595dc77fb36b326f8/href">https://medium.com/media/a4d9fcd75eec707595dc77fb36b326f8/href</a></iframe><p>What about “shooter” games that have a projectile that is launched at a moving target? A key set of properties for sprite animation is heading, speed and interval. Simply put, heading is the compass direction in which to move, speed is the size of the step and interval is the time (in milliseconds) in which to take the step. Use these properties to animate a sprite without explicitly updating the coordinates every time. ​</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F3607475&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fsnowing-winter-penguins-gif-3607475&amp;image=https%3A%2F%2Fc.tenor.com%2F-ibbi346u7EAAAAC%2Fsnowing-winter.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3a43284d80794dd6148f0dddf128ea2/href">https://medium.com/media/f3a43284d80794dd6148f0dddf128ea2/href</a></iframe><p>You may have guessed that a sprite has own internal clock. In “<a href="https://medium.com/@sanjay.bhatikar/build-a-game-of-mole-mash-with-mit-app-inventor-74194f0e5c4f">Mole Mash</a>”, we provided a clock, set the timer, calculated a location and explicitly set coordinates at each step. To use a sprite’s own clock, set the Enabled property to truth. The sprite will then follow a trajectory according to the animation settings, <em>marching to own tune</em>. We use this method in the “Pong” game which is the third app we build in CwC.</p><h3>Tactile Feedback</h3><p>The challenge that “<a href="https://medium.com/@sanjay.bhatikar/build-a-game-of-mole-mash-with-mit-app-inventor-74194f0e5c4f">Mole Mash</a>” throws up is to hit the canny mole in the fleeting pause between hops and score points. A sprite has a rich set of events for a responsive gaming experience based on tactile feedback from the gamer. These events lend the twist to the plot that makes a game interesting. In a software sense, these are timer interrupts that allow interleaving parcels of code for deviation from the regular timer-driven flow.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F13968294&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Finterrupt-dance-practice-rehearsal-gif-13968294&amp;image=https%3A%2F%2Fc.tenor.com%2FCg9gM9-raG8AAAAM%2Finterrupt-dance-practice.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/4db1182e418a8549e889a44a01b24105/href">https://medium.com/media/4db1182e418a8549e889a44a01b24105/href</a></iframe><p>These events include collisions among sprites and sprite and canvas edge. They are as follows:</p><ul><li><strong>Touched</strong>: The player touches a sprite. This can be further resolved into <strong>TouchUp</strong> and <strong>TouchDown</strong> depending on whether the player puts their finger on the sprite or lifts it off the sprite.</li><li><strong>Dragged</strong>: The player drags the sprite across the screen with the finger.</li><li><strong>EdgeReached</strong>: The sprite touches an edge of the canvas.</li><li><strong>CollidedWith</strong>: The sprite bumps into another sprite.</li><li><strong>Flung</strong>: Think “golf swing”.</li></ul><p>With sprites and characters from Drawing and Animation drawer of App Inventor, you have a complete toolbox for animation. Go ahead and make apps that entertain and educate!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0397aa64bbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why App Inventor?]]></title>
            <link>https://medium.com/@sanjay.bhatikar/why-app-inventor-a15657117e89?source=rss-74f8647da3a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a15657117e89</guid>
            <dc:creator><![CDATA[Sanjay Bhatikar]]></dc:creator>
            <pubDate>Sat, 23 Jul 2022 23:53:04 GMT</pubDate>
            <atom:updated>2022-08-10T19:24:37.534Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Say you want to build an app to share with friends. You have identified an interesting problem to solve. You have the knowledge to solve the problem and are gearing up to write code. How soon will your app be ready? You will quickly find that coding the logic of the app is just some of the code you will need to write. You will be writing a whole bunch of code to package your code into an app you can put on the app-store. Here are some examples of what else you will write code for.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*Ff7GBnpGzSaFJcesrk0R8A.gif" /></figure><p>Database<br><strong>Database technology is a skill in itself from installing a database to using it to administering it.</strong><br>Imagine waking up every morning with no memory of what happened in the past. An app’s code gives it short-term memory that lasts only as long as the app is running. For long-term memory between sessions, an app needs a database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*Y-om8tIdpoMVmkUquOXoOw.gif" /></figure><p>Privacy &amp; Security<br><strong>The code to accept, verify and manage credentials may take as much as 50% of the total coding effort in building an app.</strong><br>Your subscribers want to have privacy as they create and consume data with your app. That means you need to provide a way for subscribers to sign up and sign in. Typically, a subscriber presents credentials like an email and password for authorization. Once authorized, a subscriber may create, access, update or delete data in ways your app allows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*frq0-KG9_GUXnohZdwwZmg.gif" /></figure><p>User Experience<br><strong>HTML, CSS, JS — That’s another three programming languages!</strong><br>Was it an easy experience wearing a seat-belt your first time in an airplane? Chances are your subscribers want to have a smooth experience using your app. That means packaging functionality in aesthetically pleasing and intuitive ways. In the case of web apps, it means HTML to structure content, CSS for styling and Javascript for interactive experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*e0255H5O1FT8yGpo-M62qg.gif" /></figure><p>Shipping It!<br><strong>Coding is the easy part, shipping working software is hard!</strong><br>There are additional administrative tasks related to managing and shipping code. These require no small measure of technical dexterity. We can go on and on. The point is, the effort can quickly multiply.</p><p><em>App Inventor: Putting Invention First</em></p><p>I have enjoyed playing with Lego since I was a wee kid. Creations took shape from imagination with virtually no limit. What makes Lego such a great toy is that ideas in the head rapidly take shape as models in the hand. There is very little overhead that gets in the way of the joy of making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*bq-IDpJ4q3buyfaV0IBZ6A.gif" /></figure><p>What Lego is to making, App Inventor is to coding. You get a box of blocks to play with. You can take your ideas to a prototype easily and naturally.</p><p>In <a href="https://www.craftwithcodewiz.com/">Craft with Code</a> we start with an app that takes under 30 minutes to build. The app is not a toy for demonstration. It is a functioning software product you can share with friends and Android users. How is this possible?</p><p>Because the blocks are designed to be “plug and play”. These blocks have been engineered by highly skilled programmers on the App Inventor team. They have coded the “HOW it works” so the inventor need only concern herself with “WHAT it does”. So building apps with App Inventor is literally standing on the shoulders of giants.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a15657117e89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Maker’s Creed]]></title>
            <link>https://medium.com/@sanjay.bhatikar/makers-creed-1caaa0978ff0?source=rss-74f8647da3a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1caaa0978ff0</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Sanjay Bhatikar]]></dc:creator>
            <pubDate>Wed, 20 Jul 2022 01:01:57 GMT</pubDate>
            <atom:updated>2022-07-26T16:32:41.621Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why we make with digital technologies</h3><p><strong>Money</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*BuQ4uwOYOnxwh2GPILLCWg.gif" /></figure><p>In the time I write this blogpost, a hedge-fund manager on Wall Street will have made a million short-selling stock options. Make Street ain’t Wall Street, baby!</p><p><strong>Fame</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*xoO9gZ_CWerQTJhQTao_Jw.gif" /></figure><p>Let’s not be under any illusions here. App-rah ain’t getting us on Op-rah!</p><p><strong>Fixing Stuff</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*lFKu4FvBwumZAdzc824Kng.gif" /></figure><p>Yeah, about that, we take stuff apart and <em>sometimes</em> stuff works when we put it back together. Just take a look around the bot-shop, littered with projects what might have been!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*pmyjRj7d6CL4VyeLdPo41A.gif" /></figure><p>I have come to the conclusion that there is a primal reason that drives makers. And that is figuring out how to put curious bits and pieces together to make a little magic. We keep at it until the knowledge falls in place all at once in a satisfying “click”. The power supply comes on, code runs, an LED blinks, the motor hums in one wholesome moment of truth. Before we go in search of the next “click”, and the one after that, and the one after. <em>Only a maker will understand.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1caaa0978ff0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>