Presentation is loading. Please wait.

Presentation is loading. Please wait.

Intro to Programming with Scratch

Similar presentations


Presentation on theme: "Intro to Programming with Scratch"— Presentation transcript:

1 Intro to Programming with Scratch
Halloween Edition

2 Problem Solving Programming is just solving problems and challenges:
Read and understand the problem: What are you making? Design a solution: What will your program do? What will it look like? Implement the solution: Coding time!! Test solution: Does your program work the way you want it to? Revise as needed: If it doesn’t work the way you want, fix and test as much as you need Use get ready to school as an example

3 Computer Programming Writing programs is like solving any problems
We give the computer a sequence of instructions, and the computer does exactly what you tell it to do You can think of these instructions as steps to solve a problem Example: How do you make a cake? Step 1: Preheat the oven Step 2: Mix all the ingredients together Step 3: Put the mixture in a pan Step 4: Put the pan in the oven for 45 minutes Step 5: Let the pan cool, transfer to a plate and enjoy!!

4 Scratch Go to scratch.mit.edu
Scratch creates stories, games, animations: Sprites: main characters(objects) in your story Task1: Draw a Character Visual coding is great for beginners at any age. Ask if the kids are interested in making andriod applicaitons

5 Scripts in Scratch Scripts = Code Events
Execute code when certain things happen Task 2: Write Script so that when you click on green flag, your character ask “Hello World!” Go through example online Events: When something happens….. (do something) Control/Sensing: Use sensing to fill in if-statements. Used for collisions, and movement Motion: Move sprites… das about it Looks: Shows and hides things and makes sprites talk Operators: usually used with if statements MSEN Maze: THIS IS FOR INSTRUCTOR AS A “CHEAT SHEET” please create the maze game on the projector and help the kids along with the game. Have one person do one step at a time at the projector, and at least two people walking around helping out kids that may lag behind.

6 Scripts in Scratch Scripts = Code
Control Flow: forever; if, then; if, else; repeat until Sensing & Motion When you character sense a situation, do sth. Task 3: a) Write script so if you click up arrow on keyboard, your character move up; b) write similar script for down, left and right c) make your character able to do this forever. Go through example online Events: When something happens….. (do something) Control/Sensing: Use sensing to fill in if-statements. Used for collisions, and movement Motion: Move sprites… das about it Looks: Shows and hides things and makes sprites talk Operators: usually used with if statements MSEN Maze: THIS IS FOR INSTRUCTOR AS A “CHEAT SHEET” please create the maze game on the projector and help the kids along with the game. Have one person do one step at a time at the projector, and at least two people walking around helping out kids that may lag behind.

7 Lets start a Maze project
Task 4: Let’s make a puzzle Game: Create a new Sprite: draw a maze Create a new Sprite: your prize, put it at the end of the maze Use the script in Task 1-3, does it work? how to make your character doesn’t go through walls

8 Let's start a Maze project
Task 5: Have time and score in your game In Data, Create a variable score, a variable time set score and time equals 0. where should you set it? how to make time change 1 every second?

9 Let's start a Maze project
Task 6: Make your game more fine Add traps in the maze your character should be able to move around the trap, so make it small when touch a trap, minus point Add an enemy the enemy move by itself (use glide) if your character touched the enemy, go back to the start Add a sphinx, you can only pass if you correctly answer a math question hint: use ask, answer, and if control to test the answer’s correctness

10 Save & Play Each other’s Game
Hurah!!!


Download ppt "Intro to Programming with Scratch"

Similar presentations


Ads by Google