Scratch Racing.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Create a Simple Game in Scratch
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Create a Simple Game in Scratch
Creating a Basic Pacman game
A Christmas Scratch game
Racing Car Game Using the keys to control a sprite.
LO: Learn how to develop your game further to include interactions with the device.
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Introduction to Programming G50PRO University of Nottingham Unit 3 : Introduction To Scratch 2 Paul Tennent
Using MIT Scratch for Programming and Control Exercise 6 – Creating a Scratch Packman Year 9 ICT Autumn Term 2007.
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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Variables and Random Numbers Computer App Session 4.
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.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
ICT/COMPUTING RULES Only use software allowed by the teacher
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Scratch Programming Cards
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Broadcasting (Adding a new level)
Games Programming in Scratch
Scratch for Interactivity
Ozoblockly Lesson 03 Beginner Programs
Intro CS – Keyboard and mouse input
Unit 2 Getting Started With
Today's Ninja Challenge: Make Better GhostBuster Game
Scratch – Simple Programming
Scratch for Interactivity
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Loopy Motion Control.
Stopwatch Cards Stopwatch Cards
The One Where You Scratch
Scratch – Simple Programming
Lesson 1 Introduction to Scratch Basic blocks
Go to =>
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Objectives To understand how the pen tool works
YEAR 7 PROGRAMMING SCRATCH & E-SAFETY UNIT WRAPPER
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.
Lesson Objectives To understand how to make sprites interact
Go to =>
Stopwatch Cards Stopwatch Cards
Go to =>
Motion in Scratch 1.
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Game development using Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Stopwatch Cards Stopwatch Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Stopwatch Cards Stopwatch Cards
Animate a Sprite. By M, M and C P6
Scratch – Simple Programming
Presentation transcript:

Scratch Racing

Overview We will be creating a racing game in Scratch It will be a top-down style game with a bird’s eye view We can incorporate health, bonuses, traps, etc It will be two player BUT you will make YOUR OWN!

Create a racing track & cars Use different colours for the track and the off-track area We will use colour detection to slow the cars down when they go off-track Add other embellishments if you have time Create two car sprites Remember – top-down view Make the cars different colours Give the sprites names Create a starting line sprite Do not draw the start line on your track Avoid using the same colour as the track or off-track area for this

Movement Add keys to get one car moving – arrow keys are good Left and right are straight-forward

Movement continued Accelerate and brake Create two variables to tell the program how fast the cars move Red-speed Blue-speed We do this using the Make a variable button in the Variables section

Movement continued Add a forever loop Add a move block Use one of the speed variables you created in the move block

Movement continued Now add some code to adjust the speed variable when accelerate and decelerate are pressed Try playing the game now to make sure it works If it doesn’t, troubleshoot your script

Scoring Add a lap counter This will need variables to keep track of laps for each car When the start line is touching a car sprite, increase score

Hazards & Bonuses Can you think of some hazards and bonuses to add to your track?

Peer Review Swap chairs with someone and play their game WWW EBI