ECS 9/7/17.

Slides:



Advertisements
Similar presentations
GAME:IT Junior Learning Game Maker: The Control Tab.
Advertisements

Introduction to Macromedia Director 8.5 – Lingo
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Mission Technology Introduction to Scratch! June 2007.
Mr. Wortzman INTRO. TO COMPUTER SCIENCE. UNIT 1 – CUSTOM BLOCKS.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
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.
Power Point Presentation - Advanced Julia J. Stahl Distributed System Specialist.
Scratch Workshop Thursday, August 26, 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Ms. Deveny Second Semester  Introductions  Interview your table partner  Name  Why taking CPD  Computer experience  Favorite game?
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!
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
ACO 101 Making a program. mb_your_brain_on_improv.html mb_your_brain_on_improv.html.
 Review  Created our own motion block called “draw square”  Used script to create a square with side lengths of 100 steps.
Summer Computing Workshop. Introduction  Boolean Expressions – In programming, a Boolean expression is an expression that is either true or false. In.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
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.
Summer Computing Workshop. Session 3 Conditional Branching  Conditional branching is used to alter the normal flow of execution depending on the value.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
Advanced Powerpoint Features Design Software BTT101 Credit: Mr. Spinelli.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
Computer Programming Modeling a Passive Solar Home.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
Functions / Blocks.
Review for Final June 13, 2016.
August 25 Intro to CS.
Introduction to Scratch
June 17, 2009 Office 2007 Tips & Tricks.
Computer Literacy BASICS
Create a Halloween Computer Game in Scratch
August 31 Intro to CS.
Audacity Presented by Carrie Walter
Scratch for Interactivity
What is it?! •Scratch is a programming language that allows you to create interactive stories, music, animations, art, games, and more!
Intro to CS Oct 18-19, 2015.
August 30 Intro to CS.
Intro to CS Monday, August 29
Unit 2 Getting Started With
Intro to CS Nov 13, 2017.
Intro to CS Monday, August 24
Scratch for Interactivity
Signature: Microsoft Word 2003
Getting Started with Scratch
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Go to =>
Introduction to TouchDevelop
Go to =>
Scratch for Storytelling
Go to =>
Go to =>
Unit 3: Intro to Programming Snap! Introduction
Image #1 Getting Started
Introduction to Snap Programming
Selection Statements Chapter 3.
Scratch Lesson 2.
Creating a Simple Game in Scratch
Windows Operating System
Scratch Dance Routine.
Presentation transcript:

ECS 9/7/17

Agenda Review SNAP Questions Review Guided Questions for Chapter 1 Sound RIP Lab

Boolean Operations What is a BOOLEAN OPERATOR? Conditions that when evaluated result in the answer of “true” or “false.” You can create IF / Then situations using Boolean conditions You can COMBINE operations, and the result still will be either True or False.

“Truth” Tables Battery A B Condition A False / No / 0 / Off True / Yes / 1 / On Condition X Condition Y Condition Z 1 Condition A Condition B False True # combinations == # rows == 2^# conditions (ex. 2^1 = 2. 2^2 = 4. 2^3 = 8)

How do you use truth tables? Start from the Boolean expression and work backwards. Step 1. Start with a Truth Table for the # of conditions (variables) – this truth never changes. 1 variable  2^1 = 2 combinations 2 variables  2^2 = 4 combinations 3 variables  2^3 = 8 combinations 4 variables  2^4 = 16 combinations etc Step 2. Add a column on the right with the expression you are solving. Step 3. Solve the expression for each row in the table.

Test Review SNAP! SNAP! Terminology Sprite, Script, Stage, Scripting Area, Blocks, Tabs Layers Costumes Custom Blocks Loops: If, Else, Repeat SNAP! Broadcast/Message Ask/Answer Variables System Global Local Debugging

The SNAP! Environment Blocks 1 Sprite 3 Comments 6 Stage 4 Script 5 2 3 4 5 6 Script 5 Script area 2

Test Review

Test Review

Test Review

Two “Looks” commands – goto front , go back N layers Front, -2 layers Front, -1 layer Front layer With these 2 commands, you can control where the scenery resides.

Customizing a Costume

Review: Make Block or Right click on empty space in Script Area this dialog box will appear. or Press “Make Block” button in Variables and this dialog box will appear.

“Loops”: If/Else/Repeat Notice how the bottom is flat? This script ends here and does not move on. The contents inside will repeat until the condition is met. Repeat the # of times in the box. Then moves to the next block Executes if evaluation of Boolean expression is True. If not, it moves to the next block. Executes if evaluation of Boolean expression is True. If not, it executes the contents of “else”.

Test Review SNAP! SNAP! Terminology Sprite, Script, Stage, Scripting Area, Blocks, Tabs Layers Costumes Custom Blocks Loops: If, Else, Repeat SNAP! Broadcast/Message Ask/Answer Variables System Global Local Debugging

Hardware and software Hardware: Software: CPU Hard Disk (Memory) RAM Monitor Input/Output Software: Operating System Applications

Review: SNAP! Broadcast What does this do? It puts the scripted value into “message” system variable

Review: SNAP! Ask and Answer What does this do? It puts the value typed by the keyboard into “answer” system variable

Exploring SNAP!’s Variables GLOBAL VARIABLES are shared among all scripts and sprites SPRITE LOCAL variables are only valid in scripts attached to the variable’s sprite.

Exploring SNAP!’s Variables SCRIPT LOCAL variables are only valid in the script where they are created

Exploring SNAP!’s Variables A variable defined by the system (SNAP!)

Variables Debugging SYSTEM, SPRITE LOCAL, and GLOBAL variables all have a checkbox next to them to show the current value on the stage.

Debugging A methodical process of finding and reducing the number of defects (bugs) in a computer program, making it behave as expected. 

Exercise 1: Mary had a Little Lamb TIMING 4 MINUTES (39 TOTAL) ACTUAL – ran out of time Now let’s take what we’ve learned and apply it to making a song Here’s an example with the start of Mary had A Little Lamb How can you execute a single program element? (double click) Individual notes can be played by double clicking on them. How can you execute a set of elements? You can tell what will execute together by them sticking together What white bar to know where you are inserting pull the bottom off to differentiate from ‘move’ You can predict what will fit where by shape. How do you delete an element? How do you reorder elements Notice the “Stop Script” block at the end. It’s always good programming practice to always have a “stop script” block and the end of any script so that you clearly indicate it’s the end. In BYOB, you don’t necessarily need to have it there, but if you learn other language it will be very important to always make sure you clearly indicate the end of scripts

Exercise 1: Advanced Mary Make your own music Choose your Sprite or make your own Choose your instrument Play “Mary had a little lamb” or create your own song Want to do more? Move your Sprite to the approximate note positions Draw the bars on the Stage TIMING 5 MINUTES (44 TOTAL) ACTUAL – ran out of time

To import sound Drag mp3 file to sound tab