• Scratch with the tagline 'Imagine,Program,Share' is a general purpose programming language targeted at beginners of programming to program with fun.
  • It was developed by the MIT Media labs and its first stable release was released in the year 2009
  • It allows the beginners to create  their own interactive stories,games following the programming logic so that the beginners will think creatively and systematically.
  • Here everything is considered as a 'Sprite' referring to thread in Programming

 

'

  • The extension of the file is '.sb'
  • An example Program of a bird and a cat moving randomly screen and the program stops when the cat meets the bird is given below in two sections

BIRD SCRIPT:

  • When the green flag is clicked the program starts.
  • The Bird is made to move to a direction in X and Y to a Co-ordinate
  • The loop used here is forever and the condition is 'if not touching the cat' carry on the process.
  • Inside the loop the bird moves 3 steps.
  • If it hits the edge of the screen,it is made to bounce.

CAT SCRIPT:

  • When the green flag is clicked the program starts.
  • The Cat is also  made to move to a direction in X and Y to a Co-ordinate
  • It is made to point a random direction from 91 to 179.
  • In the Forever loop we put in a condition if 'touching bird' then play a lion sound ! and then stop the script.
  • Otherwise point toward bird moving a step each
  • Repeat the loop until the bird is hit.

  • The game ends when the cat catches the bird ! ๐Ÿ™ ๐Ÿ˜€

 

DOWNLOAD LINK:

  • The Scratch is available in Windows,MAC,Linux Operating System
  • It can be downloaded from the site scratch.mit.edu

 

      The above Script can be downloaded from here:

 

 

About Sathesh Bm

Sathesh Bm has written 26 post in this website.

Engineer, Web Lover, Thinker, Blogger

Related Posts Plugin for WordPress, Blogger...