Www.computerscienceuk.com Programming Computer Games Game Design.

Slides:



Advertisements
Similar presentations
Section 1 Introduction National 4/5 VB Course. What you should know after this lesson What is a program Who writes programs Why is sequence important.
Advertisements

Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Flappy bird guide for Scratch
Helicopter Game Tutorial
A Christmas Scratch game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
1 An introduction to programming concepts with Scratch.
HTML, Formatting Text and Images Lesson 2.
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.
The Scratch Calculator You are all going to be real computer programmers!!!
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
SKILLS AND TECHNIQUES HOMEWORK DUE IN TODAY Higher/Intermediate 2 Physical Education.
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.
Alan Turing and Code Breaking
Activity 1 5 minutes to discuss and feedback on the following:
Getting started.
Introducing Scratch the Cat
Level D 9-Oct-15Created by Mr. Lafferty Maths Dept. Coordinates Reading and Plotting Coordinates Proper Names Grids Fun Grids.
Activity 1 Input Device Output Device CPU RAM Hard Drive (Hard Disk)
Objects and Methods in Scratch 1. 2 Scratch environment Stage is at upper right (where actors act and information is displayed) Sprite is another name.
Learning the skills for programming Advanced Visual Programming.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Section 1 Introduction National 4/5 Scratch Course.
Image #1 Getting Started
1 Use different costumes in Scratch to make an animation effect Synchronise interaction between 2 or more sprites Lesson 3: Learning Objectives.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner and choose a new.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner of the stage and.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
By Susan Fuentes Media Specialist Smiley Elementary.
Programming a Shooter Game Design.
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.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Scratch Year 8 – Lesson 1. Starter What Can You Remember? Load the file What Can You Remember? from the shared area See how many features of Scratch you.
Making a Flappy Birds Game PART 2 – MAKING THE BIRD FLAP AND FALL – AND DEVELOPING THE GAME FURTHER (ADDING ADDITIONAL CHARACTERS, GOODIES, ENEMIES AND.
ICT/COMPUTING RULES Only use software allowed by the teacher
Learning Outcome 01 : Be able to prepare for the production of dynamic products Unit R007: Creating dynamic products using sound and vision Cambridge Nationals.
Investigate Plan Design Create Evaluate (Test it to objective evaluation at each stage of the design cycle) state – describe - explain the problem some.
Creating your own Handheld Games Console
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.
Scratch Helicopter Game
SketchUp Toy Boat Level of Difficulty Time Approximately 15–20 minutes
Customise & Explain your game
Broadcasting (Adding a new level)
Co-ordinates And Geometry Module 6: Investigation 2
Scratch 7B IT1.
Scratch Unit Overview 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.
Randomising the behaviour of Sprites
Games Programming in Scratch
Scratch – Simple Programming
Areas of the SCRATCH 2 Screen
Recap the basics Lesson 1.
Maze Race. Maze Race Race The first thing you need to do is change the background so click on stage. Then click on background. Now click paint Select.
Hour of Code.
Moving Sprites in Scratch
Go to =>
Labelling Features on Photographs BOTTOM LEFT HAND CORNER
Computational Thinking
Image #1 Getting Started
Recap the basics Lesson 1.
Thinking Abstractly
Introducing Scratch and Creating Sprite
Lesson Two Sprites.
Lesson Eleven Moving Backgrounds.
Lesson Nine Variables.
Position in Scratch.
Scratch 7B IT 1.
Presentation transcript:

Programming Computer Games Game Design

Starter Y-axis X-axis (0, 0) (x,y) What is the position of the: 1)Star 2)Square 3)Triangle 4)Rectangle 5)Cat -180

Learning Objectives – Remember the coordinates system in Scratch. – Learn how to program a scrolling background. – Understand how Scrolling Backgrounds work. Success Criteria Level4/5 – To code a scrolling background with support. – To briefly describe how the scrolling background code works. Level6/7 – To code a scrolling background mostly from own knowledge. – To explain fully and in detail how the scrolling background code works. Literacy – Key Words Sprite A programmable object Scrolling Background The illusion that the screen is panning / moving across the ground Coordinates Two numbers to identify the position of an object

Learning Habits / Skills Required Independence - Working effectively alone Avoid Distractions - and sustain concentration Capitalising - Using resources purposefully Perseverance - Overcoming frustration and difficulty Reasoning – Thinking rigorously, methodically and giving explanations.

Hands up if you remember what the coordinates system is in Scratch?

Starter Y-axis X-axis (0, 0) (x,y) What is the position of the: 1)Star (-240,180) 2)Square (240, -180) 3)Triangle (-240, 0) 4)Rectangle (0, -180) 5)Cat (0,0) -180

Hands up if you remember what the coordinates system is in Scratch?

Project Aim You will design and create a computer game… …but unlike previously we will learn how to program a scrolling background. …and here is one I made earlier!

Programming Scrolling Backgrounds

Hands up if you know how to program “Scrolling Backgrounds”?

Scrolling Backgrounds… The Theory

A scrolling background is simply two sprites which move to the left. They are positioned next to each other. As soon as a sprite goes too far to the left, it is repositioned to the right of the screen. This gives the illusion of a moving background!

Sprite 1Sprite 2

E.T.C!

Y-axis X-axis Remember the Invisible Coordinates Grid? (0, 0) (x,y) How can we move a sprite to the left along the x axis in scratch?

Which is going to help us move along the x axis?

Scrolling Backgrounds… Programming!

Create a new sprite. Zoom out as far as you can. Paint your ‘ground’ at the bottom of the canvas So, now go back and edit the same sprite. At this point scratch will annoyingly centre the sprite… Choose the ‘Select Tool’ and ‘Zoom Out’ again. Finally, drag the sprite down to the bottom of the canvas.

Now repeat the process to create the second sprite.

Place first sprite so that it is centred at the bottom of the screen. Then forever move the sprite to the left (change x by -5). But, if the position of the sprite goes too far to the left (x pos < -450), move back to the right of the screen (x=450) Programming The Scrolling Background Sprites Understanding the Scripts Block

Place first sprite so that it is to the right of the screen. Then forever move the sprite to the left (change x by -5). But, if the position of the sprite goes too far to the left (x pos < -450), move back to the right of the screen (x=450) Understanding the Scripts Block Programming The Scrolling Background Sprites

Hands up if you know how to program “Scrolling Backgrounds”?

Demonstration

Programming Task 1 ’12 Minutes’ Open a new scratch file Use this presentation to program your own scrolling background

Programming Task 2 ’12 Minutes’ Complete the worksheet explaining the code you have created and how the scrolling works.

Assessment Criteria LevelProgramming Skills 7 I can produce the code from my own understanding. I can explain what the code does in detail and in my own words. 6 I can produce the code mostly from my own understanding but use the lesson resources for support. I can explain what the code does in detail and in my own words 5 I can use the resources to help me code the scrolling background I can describe what the code does in my own words 4 I can copy the code to produce the scrolling background I struggle to describe how it works in my own words

Learning Habits / Skills Required Independence - Working effectively alone Avoid Distractions - and sustain concentration Capitalising - Using resources purposefully Perseverance - Overcoming frustration and difficulty Reasoning – Thinking rigorously, methodically and giving explanations.

Programming Task 3 ’12 Minutes’ Design / Paint a flying object which you will control in your game (we will program this next lesson) Design / Paint the ‘stationary’ background to make your game look more interesting.