Scratch: Animation and game programming

Slides:



Advertisements
Similar presentations
Harry Potter Scratch Game
Advertisements

A Christmas Scratch game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
1 An introduction to programming concepts with Scratch.
Racing Car Game Using the keys to control a sprite.
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.
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.
Spiral Rider PAGE 1. Set Up Scene 1.Add Stage-underwater scene 2.Add crab sprite 3.Add two fish sprites PAGE 2.
Using MIT Scratch for Programming and Control Exercise 6 – Creating a Scratch Packman Year 9 ICT Autumn Term 2007.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
 There are times when you will want blocks to repeat. Instead of duplicating blocks and ending up with a long script that might be confusing, there.
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.
Image #1 Getting Started
Scratch Another computer programming language Developed by MIT in 2003
1 Use different costumes in Scratch to make an animation effect Synchronise interaction between 2 or more sprites Lesson 3: Learning Objectives.
By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point.
Marble Racer. 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.
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.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
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.
University Learning in Schools Computing Games Programming Lesson 5.
Today's Ninja Challenge: Write Your First Computer Game!
Getting Started With Scratch Brendan Routledge
Scratch : Animation and game programming Task 2: A cat and a dog.
Scratch : Animation and game programming Task 6: Space travel.
LEARNING SCRATCH: PRESENTATION 4 PRESENTATION 1: GETTING STARTED 1 Broadcast Messages Today, we'll learn how to get our sprites to act together, and build.
Introduction to Scratch
Scratch Helicopter Game
Broadcasting (Adding a new level)
Games Programming in Scratch
What is it?! •Scratch is a programming language that allows you to create interactive stories, music, animations, art, games, and more!
How to work with your sprite
Creating a Tank Game in Scratch
Diamond Hunt Mock Programming Project.
Scratch – Simple Programming
Scratch I - Overview.
Scratch Programming Intro
Stopwatch Cards Stopwatch Cards
Creating Variables Output Logic flow Operators (More) Basic blocks
Module 5 Lesson 3 Extreme Scratch Cards
Scratch – Simple Programming
Sensing and Variables.
Lesson 1 Introduction to Scratch Basic blocks
Areas of the SCRATCH 2 Screen
Lesson Objectives To understand how to make sprites interact
Stopwatch Cards Stopwatch Cards
Intro to Programming Mod 5 Lesson 2 10/19/2010.
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Stopwatch Cards Stopwatch Cards
Image #1 Getting Started
Exploring Computer Science Lesson 4-12
Scratch: Animation and game programming
Scratch: Animation and game programming
Scratch: Animation and game programming
Stopwatch Cards Stopwatch Cards
Sensing and Variables.
Scratch Racing.
Stopwatch Cards Stopwatch Cards
Primary School Computing
Exploring Computer Science Lesson 4-12
Scratch 7B IT 1.
Stopwatch Cards Stopwatch Cards
Scratch: Animation and game programming
Animate a Sprite. By M, M and C P6
Scratch – Simple Programming
Presentation transcript:

Scratch: Animation and game programming Task 7: A fish and a shark

Observation and discussion What can we observe from the demo? How to make it?

1. Basic setting How many sprite do we need? Give it/them name(s) and set rotation. Prepare costumes.

2. Let the Shark chase the Fish. In the script area of shark Let the Shark swim at a random speed and chase the Fish. Remember to change costumes to make the Shark look like chasing.

3. Let the player control moving direction of the Fish. In the script area of fish The player uses direction keys to control the Fish's moving directions. But the Fish will swim by itself. Remember to change costumes to make the Fish look like swimming.

4. Add a timing function. In the script area of the Fish. Set a “variable” to store the time. Variable name: timer

4. Add a timing function. Which block can we use to set 20 seconds at the beginning?

4. Add a timing function. Then countdown repetitively until down to 0. Which block can we use to repeat actions until the condition is satisfied?

4. Add a timing function. Then countdown repetitively until down to 0. What can we add in the condition? Timer = 0 ?

4. Add a timing function. Then countdown repetitively until down to 0. Which block can we use to count down?

5. Scoring In the script area of the Fish. Set a “variable” to store scores. Variable name: score Set 10 points at the beginning. Minus 1 point when the Fish is chased by the Shark until score is down to 0. Then stop all actions.

6. Problem when scoring! What's wrong? How to solve? Score deduction is too fast. How to solve? Add waiting time / Appear at another position after touch the Shark.

Scripts

Scripts

Scripts

Conclusion: What do we learn? 1. Basic setting How to add sprites, set costumes and edit costumes. 2. Let the Shark chase the Fish. 3. Let the player control moving direction of the Fish. How to set commands.

Conclusion: What do we learn? 4. Add a timing function. 5. Scoring Use variable Use repeat-until 1. Initial value 2. Set condition 3. Change value

Conclusion: What do we learn? 6. Problem when scoring! How to set commands logically.

P.S.1:Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu. P.S.2:Materials are provided by Mr. CHENG Che Hung of NLSI Lui Kwok Pat Fong College.