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 is called Scratch it is completely free and available to download from ID: 558845
Download Presentation The PPT/PDF document "Unit Overview" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Unit Overview
We are going to look at computer programming and how to create your very own computer gameThe piece of software we will be using is called Scratch, it is completely free and available to download from:http://scratch.mit.edu/You’ll complete week by week tutorials before finally designing, creating and evaluating your own game
ScratchSlide2
Scratching The Surface
Lesson 1Simple SpritesSlide3
Objectives
ObjectivesLearn how to write simple scripts to make Sprites move in ScratchSlide4
Scratch
In computer graphics, a sprite is a two-dimensional image or animation that is used in a Computer GameEach sprite has a set of rules that define how it moves and how it
behavesSlide5
Scripts
Games are made by giving sprites a sequence of rules to follow. These are called scriptsThese scripts are often dependent upon other variables or events taking place first
Scripts
often need to be told to
repeat
or
loop
over and over again, until something instructs it to stop!Slide6Slide7
Open ScratchSlide8
This is
sprite1
, it comes already loaded in the
SPRITE LIST
and has already been placed on the
STAGE
Task:
Right Click and delete
sprite1
from the
SPRITE LISTSlide9
Task:
Click on the insert new sprite button.Slide10
Task:
Select the sprite called
cat2
from the
animals
folder.Slide11
Task:
Rename the sprite and call it
cat
. Remember to always call new sprites sensible names!Slide12
Task:
From the
control menu
, drag and drop this rule into the
SCRIPTS AREASlide13
Task:
From the
motion menu
, drag and drop the
point towards
rule into the
SCRIPTS AREA
and join it inside the forever rule
Task:
choose
mouse pointer
from the drop down list.Slide14
Task:
From the
control menu
, drag and drop the
forever
rule into the
SCRIPTS AREA
and join it together.
Compatible rules can be joined together in the
SCRIPTS AREASlide15
Task:
change
number of steps
to 3.
Task:
From the
motion menu
, drag and drop the
move 10 steps
rule into the
SCRIPTS AREA
and join it underneath the point towards rule.Slide16
Task:
run your program by pressing the
green flag
.Slide17
Notice how the
co-ordinates
change as you move the mouse and sprite. Slide18
Save
your work as
cat and mouse
in your new
Scratching The Surface Folder
and open up a new blank Scratch screenSlide19
Task:
Click on the insert new sprite button.Slide20
Task:
Select the sprite called
crab1-a
from the
animals
folder.Slide21
Task:
Rename the sprite and call it
crab
Task:
click the
only face left-right
button.Slide22
Task:
Build and test the following script for the crab sprite.
Task:
Add a further 3 scripts to make the crab move in all four directions.Slide23
Task:
click the
can rotate
button.
Task:
What happens now when your crab moves?
Can you explain why?Slide24
Directions – Up; Down; Left; RightSlide25
Task:
Save
your work as in your
Scratch FolderSlide26
Plenary
You should be familiar with most of this code
Find and fix the deliberate faults
Can you explain how it all works?