Movement - Learn Coombe Dean

Movement
Game Design (Scratch)
Game Design
L1 Movement
Learning Objectives:
o Understand what is meant by an algorithm
o Create a sprite and write code to make it move and bounce
o Plan a design idea for a Scratch project
Excellence
I can extend Scripts in a Scratch project using my knowledge and plan
an idea of my own in clear detail
Developing
I can produce scripts in Scratch and explain how they work, as well as
planning my own clear idea for a project
Secure
I can following instructions to produce working scripts in Scratch and
plan my own basic idea for a project
Foundation
I can produce a simple Scratch script with support and understand what
a Sprite is
Game Design
L1 Movement
Following a recipe
What you’ll need (Variables)
60g unsalted butter
3 table spoons golden syrup
1 x 100g bar milk or dark chocolate
90g Rice Krispies
How to make them (Instructions)
1. Melt the chocolate
2. Add the butter, and stir in until melted
3. Add the syrup, stir
4. Add the Rice Krispies and gently stir in to the chocolate mix
5. Spoon in to a mould
6. Leave to cool
Game Design
L1 Movement
Sequencing Instructions
o Open ‘Worksheet 1 Sequencing Instructions’ from
LearnCoombeDean and Save As into your own area.
o Look at the flowchart and decide in what order the
instructions below should go in order for them to
make sense:
Add strawberries and bananas
Turn on blender for 30 Seconds
Add milk and ice cream
End
Start
Is blender full?
Put on lid
No
Yes
Game Design
L1 Movement
Sequencing Instructions
Does it
matter what
order the
instructions
are in?
Would it still
‘work’ if some
statements
were in a
different
position?
Game Design
L1 Movement
In this unit…
Using a program called ‘Scratch’ to
create computer programs (games!)
Scratch lets you program (control)
‘Sprites’ using ‘blocks’ to do different
things like; move, speak, touch objects,
make sound, etc
But… what are ‘Sprites’?
Game Design
L1 Movement
Sprites
• Animated characters or objects that are
separate from the background in a game
• To create a sprite, you can:
– Use the Sprite Library
– Create one using the Sprite Editor
– Import a sprite from a file
Game Design
L1 Movement
Writing a block of code
• What instructions would you use if you
wanted a sprite to move on the screen when
you press a button on the keyboard?
• How would you implement this in Scratch?
Game Design
L1 Movement
Movement
• Open ‘Scratch’ and use the Cat sprite given to you
• Add the following ‘blocks’ of code…
• Now, add the blocks of code necessary to make the
sprite move in any given direction using the arrow
keys (up, down, left, right)
Extension: How do you make the sprite move faster or slower?
Game Design
L1 Movement
Adding another sprite
• Add a new sprite from the library
Use these blocks to make your sprite…
• Make the new sprite move
continuously by itself when the
green arrow is clicked.
• Make it bounce if it hits the
edge of the screen.
Game Design
L1 Movement
Making your own game
In this unit, you are going to make your own
scratch game with…
• Moving ‘Main character’
• Enemies that chase you
• Items to pick-up
• Health / Lives / Score
• Different Levels
• and more of your ‘own’ ideas too!
Game Design
L1 Movement
Plan your own game!
• It’s time to start thinking about your own project!
• Open ‘Worksheet 2 Games Design’ from
LearnCoombeDean + Save As into your own area
• Read through the instructions and write out your
ideas for a new game
• You may wish to discuss ideas in pairs
Game Design
L1 Movement
Get some ideas! Reverse-engineering!
• Go to website: scratch.mit.edu
• Click on ‘Explore’ and then ‘Games’
• Look at some of the games available for ideas
• Find a good game? Click ‘See inside’ button to
explore how it works