Summer Computing Workshop.  This workshop is designed to introduce basic programming concepts through the use of the highly intuitive programming environments.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Create a Simple Game in Scratch
30 min Scratch July min intro to Scratch A Quick-and-Dirty approach Leaving lots of exploration for the future. (5 hour lesson plan available)
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
1 An introduction to programming concepts with Scratch.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
(An Introduction for Programmers)
Scratch Workshop Thursday, August 26, 2010.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Summer Computing Workshop. Session 4 Loops  At the heart of their functionality, loops enable blocks of code to be executed more than once  Loops represent.
Introduction to.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Introduction to Scratch!
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
Partners Comp# Partner APartner B 1 Ancona, SamanthaManternach, Hailey 2 Black, RyanMcNeil, Maddie 3 Conger, KevinOhland, Rebecca 4 Day, MerciOtterbein,
Introduction to Scratch Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Summer Computing Workshop. Introduction  Boolean Expressions – In programming, a Boolean expression is an expression that is either true or false. In.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Section 1 Introduction National 4/5 Scratch Course.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
Summer Computing Workshop. Session 3 Conditional Branching  Conditional branching is used to alter the normal flow of execution depending on the value.
Scratch Another computer programming language Developed by MIT in 2003
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Unit 1 Introduction to Evangel College S.2 ICT.
Scratch Creative Computing. INTRODUCTION TO SCRATCH Section 1.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
From last time… Explore the blue commands from the motion menu Find at least three ways to get the sprite to move to the UPPER LEFT corner.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Introduction to Computer Programming - Project 1 Intro to Digital Technology.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Today's Ninja Challenge: Write Your First Computer Game!
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
Scratch Lesson 1. Creating an account Open the internet browser : Safari or Internet Explorer Type in the URL scratch.mit.edu Using your school computer.
Computer Programming Modeling a Passive Solar Home.
Teaching Kids Programming with Chromebook Digital Convergence Lab, NIU.
Introducing Scratch Learning resources for the implementation of the scenario
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Using MIT Scratch for Programming and Control Programming 9.
Review for Final June 13, 2016.
Create a Halloween Computer Game in Scratch
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Introduction to Object-Oriented Programming
Introduction to.
Learn… Create… Program
Getting Started with Scratch
Learn… Create… Program
Introduction to Object-Oriented Programming in Alice
Getting Started with Scratch
Getting Started with Scratch
Learn… Create… Program
Learn… Create… Program
Creating a Simple Game in Scratch
Introducing Scratch and Creating Sprite
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

Summer Computing Workshop

 This workshop is designed to introduce basic programming concepts through the use of the highly intuitive programming environments of Scratch and Alice.  Each of the six Scratch sessions will focus on one of these concepts.  At the end of the workshop, there will be a chance for you to use your newfound skills to create programs which would be useful for teaching in a classroom setting.

Scratch Overview  Created by MIT in 2007  Written in Squeak  100% GUI based programming environment  Object-oriented  Interpreted  Multi-threaded  Runs on Windows, Mac, and Linux  Free!

Session 1

Scratch Interface  The Scratch interface is divided into four major sections:  The section on the far left is called the blocks palette. This is where the blocks used to create all your programs will be found. It is divided into eight color-coded subcategories  The center section contains information about the currently selected sprite  The top right corner is known as the stage. This is where you will see the results of your program  The remaining section contains a list of all the sprites associated with the current project

First Program  Enough talk, let’s start programming!  Select the only sprite in the lower right corner and make sure the scripts area is being displayed  Click the “Control” blocks category and drag a to the script area. This block is used in most programs and serves as a starting point for the other blocks and/or scripts  Click the “Motion” category and place the block directly underneath the other block already in the scripts area. The two blocks will join which means they will be executed one right after the other. Connected blocks such as these are called scripts. Blocks are the most basic element of a Scratch script  Click the green flag near the stage and watch the sprite!  That’s it! You have written your first scratch program!

Digging a little deeper  Let’s take a closer look at what’s going on in the program we just made  There are actually two objects that exist in the project, the cat named “Sprite1” and the stage  The small script we created was placed in the scripts area of sprite1 which means that the move block in the script will affect sprite1 and only sprite1. This behavior is the foundation of object-oriented programming  Sprites/objects in scratch are made up of two main elements: state (position, size, variables, current costume, etc.) and scripts. These two elements closely resemble the makeup of an object in other languages such as Java, C++ and even Alice

Double the excitement  Multi-threaded programs are easy to write in Scratch  We moved one sprite in the last example. Now let’s try to move two sprites at the same time  Copy the sprite by right clicking on it in the sprite list and selecting “duplicate.” You will notice that not only is the sprite copied, the scripts associated with that sprite are as well  Reposition the sprites by dragging them until they are no longer touching (this is so we can see the movement more clearly)  Click the green flag to test the program. If the sprites don’t appear to move, try increasing the number of steps in the move blocks

A few things to consider  You might have noticed that each sprite had to have its own script in order to move. This may seem unnecessary at first, but this behavior is crucial if objects are to remain isolated from each other. If sprites need to communicate, Scratch has certain provisions, but it is left up to the programmer to determine when and where they should be used. We will cover this in greater depth in session 6.  The two main elements of a Sprite/Object is it’s state such as costume, color, etc. and it’s scripts.  Object creation and deletion in Scratch and Alice is slightly different than in other languages. In Scratch, the programmer has to manually create or delete a sprite before the program is executed, but in other languages those tasks can be accomplished by the program while the program is running.

Session 1 Questions 1.What is the most basic element of a scratch script? 2.What are the two main elements of a(n) Sprite/Object? 3.Can an object affect another object without you, the programmer, specifically allowing it? 4. In a script, in what order are blocks executed? 5.Can multiple scripts/methods run at the same time? 6.In Scratch, can objects/sprites be created, destroyed, or deleted once the program has started?