Understanding the Geometric Shape Code

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
Harry Potter Scratch Game
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Ms. Deveny Second Semester  Introductions  Interview your table partner  Name  Why taking CPD  Computer experience  Favorite game?
Programming & Scratch. Programming Learning to program is ultimately about learning to think logically and to approach problems methodically. The building.
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
Introducing Scratch the Cat
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Algorithms Writing instructions in the order they should execute.
CONTROL FLOW The order in which blocks are executed is called the “control flow” of the script So far all our scripts have just executed blocks in the.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Scratch Another computer programming language Developed by MIT in 2003
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
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.
Unit 6 Motion – Air Hockey Evangel College S.2 ICT.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Digital Art in Scratch part 2 Barb Ericson Georgia Tech Nov 2010.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Drawing in Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Functions / Blocks.
Review for Final June 13, 2016.
Create a Halloween Computer Game in Scratch
Programming & Scratch.
Scratch for Interactivity
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.
Scratch Creative Computing
Scratch: iteration / repetition / loops
Intro to CS Monday, August 29
Intro to CS Monday, August 24
Scratch – Simple Programming
Scratch I - Overview.
Lab 2 : Structures Muhammad Zaigham Abbas Shah DIGITAL INSTRUMENTATION SYSTEMS.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
The One Where You Scratch
Intro to Programming With Snap PII.
Getting Started with Scratch
Scratch – Simple Programming
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Moving Sprites in Scratch
Motion in Scratch 1.
Mod 2 Lesson 2 Repeating Debugging
Mod 2 Lesson 2 Repeating with loops
ICT Gaming Lesson 3.
Unit 5 Basic Motion Skills
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Getting Started with Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
2 Making Blocks.
Scratch – Simple Programming
Presentation transcript:

Understanding the Geometric Shape Code Intro to scratch Understanding the Geometric Shape Code

The interface

Stage/Canvas Script Area Block Palette Sprites Pane

Block types What types of blocks exist in Scratch? There are a 145 blocks total in Scratch 2.0.

Hat blocks Used to start a script Found on the Control or Event palette Most commonly used ‘Hat Blocks’ are the When Flag Clicked and When Key Pressed. When I start as a Clone is the only ‘Hat Block’ in the Control palette. There are eleven ‘Hat Blocks’ in Scratch 2.0.

Stack blocks Used to create the script Found in most palettes except Operator palette There are 77 Stack blocks.

Boolean Block Reports true or false Found in Sensing, Operator, or Variable palettes There are 13 Boolean Blocks in Scratch 2.0.

Reporter Blocks Contains a value (ie string, integer) Found in most palettes There are 37 reporter blocks.

‘C’ block Perform conditions or loops All are found within the Control palette There are five C blocks.

Cap Block Stops the script Found within the Control palette There are two Cap blocks.

Blocks What blocks did we use?

Motion blocks

Motion and Stack block Moves the sprite forward one pixel, in the direction the sprite is facing Motion and Stack block Turns the sprite the specified amount of degrees, clockwise or counter- clockwise Motion and Stack block Sets the sprite’s X and Y position to the specified amounts

Pen blocks

Pen and Stack block Clears the screen of everything on the canvas except the sprite Pen and Stack block The sprite leaves a continuous pen trail wherever it moves Pen and Stack block The sprite stops leaving a pen trail when it moves

Increments or decrements a pen’s color by the specified amount Pen and Stack block Sets the pen’s color to a specified color with the color- picker or a numeric value Pen and Stack block Increments or decrements a pen’s color by the specified amount There are 199 color values.

Pen and Stack block Sets the pen’s shade to a specified amount Pen and Stack block Changes the pen’s shade by a specified amount

Data Blocks Variable Blocks

Variable and Stack block The variable is set to a specified value Variable and Stack block The variable is incremented or decremented by a specified amount

Variable and Stack block Shows the specified variable’s Stage Monitor Variable and Stack block Hides the specified variable’s Stage Monitor

Event Blocks

Events and Hat block Scripts that have this Hat will activate when the Green Flag is clicked Events and Hat block Scripts that have this Hat will activate when the specified key is pressed

Control Blocks

Control and C block Blocks within this block will repeat a given amount of times before continuing with the rest of the script Control and C block Blocks within this block will repeat until the condition is met before continuing with the rest of the script

Operator Blocks

Operators and Boolean block Checks to see if the first value is equal to the other value(s) Operators and Boolean block Joins two Boolean blocks so either one can be evaluated Operators and Boolean block Checks if the first value is greater than the other value(s)

Geometric code

Challenge

Challenge

Challenge

Challenge