Intro to Programming With Snap PII.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Create a Simple Game in Scratch
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Create a Simple Game in Scratch
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 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.
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.
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.
Spiral Rider PAGE 1. Set Up Scene 1.Add Stage-underwater scene 2.Add crab sprite 3.Add two fish sprites PAGE 2.
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.
Introduction to Scratch Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
1 Building Your Own Turtle Functions For making really cool pictures!
Section 1 Introduction National 4/5 Scratch Course.
Geometry. 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 are.
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.
Motion 3. Motion Block Motion blocks allow you to program the Sprite’s movement. You can move it to different location, rotate, move towards the mouse.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
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.
1 Project designed and created by M. Shajith Kumar.
Programming a Shooter Game Design.
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.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Modular Arithmetic Created by previous Honors Pre- Calculus students.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
© it’sLearning 365 Limited | Screen 1 FLASH enabled How to use me : Teachers Notes Useful Web Link Ne xt Pa ge Ne xt Pa ge Navigate.
Moving to First Person Scalable Game Design Susan Miller University of Colorado - Boulder.
Functions / Blocks.
Scratch Programming Cards
Introduction to Scratch
Movement Game Design (Scratch).
Create a Halloween Computer Game in Scratch
Module 1: Investigation 2 Repeating and Alternating Patterns
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
Co-ordinates And Geometry Module 6: Investigation 2
Understanding the Geometric Shape Code
Interacting Sprites Module 3: Investigation 4
Intro to Programming with Scratch
Scratch – Simple Programming
Computing Year 7 - Unit 2 Programming Basics Scratch Basics.
Introduction to.
Creating Variables Output Logic flow Operators (More) Basic blocks
Learn… Create… Program
Getting Started with Scratch
Scratch – Simple Programming
Lesson 1 Introduction to Scratch Basic blocks
Go to =>
Learn… Create… Program
Introduction to scratch animation
Scratch for Storytelling
Go to =>
Motion in Scratch 1.
ICT Gaming Lesson 3.
Enable an activity in The Control Tower
Code to Enhance Learning
Getting Started with Scratch
Learn… Create… Program
Learn… Create… Program
Creating a Simple Game in Scratch
Scratch – Simple Programming
Presentation transcript:

Intro to Programming With Snap PII

Warm Up: What is the difference between these 3? count from 11 to 99 skips 20, 30, 40 ..etc count from 0 to 99 Counts from 1 to 99 skips 0, 10, 20, etc

Can you make one that counts from 100 down by 10s? counts down from 100 to 0 by 10s (first number it assesses is 109 but 109 is NOT divisible by 10)

Make a page of Notes: What is modular arithmetic “Clock Math”?

The remainders start at 0 and increases by 1 each time, until the number reaches one less than the number we are dividing by. After that, the sequence repeats. By noticing this, we can visualize the modulo operator by using circles. We write 0 at the top of a circle and continuing clockwise writing integers 1, 2, ... up to one less than the modulus.

15 mod 12 = ___ 24 mod 12 = ____ 57 mod 12 = ____ 60 mod 12 = ____ 9 15 mod 12 = ___ 24 mod 12 = ____ 57 mod 12 = ____ 60 mod 12 = ____ 3

3 3 2 2 18 18

Game on Kahn Academy https://www.khanacademy. org/computing/computer- science/cryptography/moda rithmetic/p/modulo- challenge

Practice Questions (just do top 4 today) Sprite is in the middle of the scripting area. Points to the right (90°). Screen is cleared When the green flag is clicked, the sprite will follow the mouse. Spiraling triangle thing… If sprite is NOT facing 90 degrees, it will turn until it faces 90 degrees, 1 degree and 1 step at a time.

Assignment 2: Maze Projects with a Partner Big Idea: Abstractions and Creativity

EXs of a Basic Maze

CSP Maze Partner Project 

OR http://tinyurl.com/APCPSrubric http://tinyurl.com/mazeprojectpalosaari OR

Maze Game Maze resources and these following slides (PPT, PDF) are available at: http://tinyurl.com/sample- mazeGame

Help Getting Started Use blocks to begin your game and accomplish the following: enable your game to start with pressing of green flag move sprite to starting point move sprite back if he touches a wall set use of arrow keys accomplish the red square for winning maze “red box” target (if your target is different; make adjustments)

Maze Resources maze-resources.zip (http://tinyurl.com/sample-mazeGame)

Step 1 Set up the sprite (use your own), stage costumes (make your own) and sound

Step 2 Write the the program script for the Sprite enable your game to start with pressing of green flag move sprite to starting point move sprite back if he touches a wall set use of arrow keys accomplish the red square for winning maze “red box” target (if your target is different; make adjustments)

Step 3 Write the the program script for the Stage

SNAP! Assigns direction as follows: ***Locations on the stage (the white rectangle where sprites perform their scripts) are specified by (x,y) coordinates. The center of the stage is (0, 0). The left edge is x = -240; the right edge is x = 240. The bottom is y = -180 The top is y = 180

Debugging Advice

Debugging Cont.

Paired Programing At the keyboard Driver Navigator At the keyboard Implements the next task provided by the navigator. Gives future tasks to the navigator to track. Answers navigators questions. Keeps track of the big picture. Responsible for directing the flow of work to a specific conclusion. Reviews code. Keeps track of tasks identified by the driver so they can focus on coding. Ensures that best practices are followed. Track potential code improvements. Asks questions about the driver’s implementation