In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

Similar documents
Clone Wars. Introduction. Scratch. In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Create Your Own World

In this project you ll learn how to create a times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

Add in a new ghost sprite, and a suitable stage backdrop.

In this project you ll learn how to create a platform game, in which you have to dodge the moving balls and reach the end of the level.

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

You are going to learn how to create a game in which a helicopter scores points by watering flowers in the city.

Step 1 : Earth and Mars Orbit the Sun

In this project you ll learn how to create a game in which you have to save the Earth from space monsters.

Memory. Introduction. Scratch. In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Ghostbusters. Level. Introduction:

In this project we ll make our own version of the highly popular mobile game Flappy Bird. This project requires Scratch 2.0.

Brain Game. Introduction. Scratch

Create a game in which you have to guide a parrot through scrolling pipes to score points.

Create Your Own World

Whack-a-Witch. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Fireworks. Level. Introduction: In this project, we ll create a fireworks display over a city. Activity Checklist Follow these INSTRUCTIONS one by one

Scratch for Beginners Workbook

Rock Band. Introduction. Scratch. In this project you ll learn how to code your own musical instruments! Activity Checklist.

Create a Simple Game in Scratch

Defend Hong Kong s Technocore

Introduction to Turtle Art

Pong Game. Intermediate. LPo v1

Lesson 2 Game Basics

CISC 1600, Lab 2.2: More games in Scratch

Flappy Parrot Level 2

Open the Tech Toys Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/toys-go.

Let s start by making a pencil, that can be used to draw on the stage.

In this project you ll learn how to code your own musical instruments!

A. creating clones. Skills Training 5

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

Where's the Treasure?

Fish Chomp. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

1) How do I create a new program? 2) How do I add a new object? 3) How do I start my program?

Pong! The oldest commercially available game in history

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

Defend Hong Kong s Technocore

Let s start by making a pencil that can be used to draw on the stage.

GAME PROGRAMMING & DESIGN LAB 1 Egg Catcher - a simple SCRATCH game

Space Invadersesque 2D shooter

Programming with Scratch

pla<orm-style game which you can later add your own levels, powers and characters to. Feel free to improve on my art

Creating Computer Games

Module 4 Build a Game

Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

Alright! I can feel my limbs again! Magic star web! The Dark Wizard? Who are you again? Nice work! You ve broken the Dark Wizard s spell!

a. the costumes tab and costumes panel

Game Making Workshop on Scratch

SAMPLE CHAPTER

Project 1: Game of Bricks

Before displaying an image, the game should wait for a random amount of time.

INTERACTING SPRITES MODULE 3: INVESTIGATION 1. Anima9ng Sprites

ChatBot. Introduction. Scratch. You are going to learn how to program your own talking robot! Activity Checklist. Test your Project.

Game Design Curriculum Multimedia Fusion 2. Created by Rahul Khurana. Copyright, VisionTech Camps & Classes

5.0 Events and Actions

Your First Game: Devilishly Easy

More Actions: A Galaxy of Possibilities

2D Platform. Table of Contents

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

Introducing Scratch Game development does not have to be difficult or expensive. The Lifelong Kindergarten Lab at Massachusetts Institute

Pong! The oldest commercially available game in history

Lesson 8 Tic-Tac-Toe (Noughts and Crosses)

Starting from LEARNER NOTES edited version. An Introduction to Computing Science by Jeremy Scott

STEP-BY-STEP THINGS TO TRY FINISHED? START HERE NEW TO SCRATCH? CREATE YOUR FIRST SCRATCH PROJECT!

Tutorial: Creating maze games

The Beauty and Joy of Computing Lab Exercise 10: Shall we play a game? Objectives. Background (Pre-Lab Reading)

Creating a Maze Game in Tynker

Star Defender. Section 1

Programming I (mblock)

Explore and Challenge:

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

Controlling a Sprite with Ultrasound

Copyright 2017 MakeUseOf. All Rights Reserved.

1.1 Encounter a Spaceship

Overview. The Game Idea

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

The Games Factory 2 Step-by-step Tutorial

COMPUTING CURRICULUM TOOLKIT

EXTRA PRACTICE CHAPTER

KEEPING SCORE: HOW TO USE SCORES, LIVES AND HEALTH

Write algorithms with variables. Phil Bagge code-it

Tutorial: A scrolling shooter

Creating Generic Wars With Special Thanks to Tommy Gun and CrackedRabbitGaming

Game catalogue Package: FUN I

Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game

Module. Introduction to Scratch

GAME:IT Junior Bouncing Ball

=:::=;;;; : _,, :.. NIGHT STALKER : - COMMAND MODULE. Texas Instruments Home Computer ---;::::::::::::;;;;;;;; (.

Adding in 3D Models and Animations

Math 1310: Intermediate Algebra Computer Enhanced and Self-Paced

Unit 1 - Surveying the Landscape

Pass-Words Help Doc. Note: PowerPoint macros must be enabled before playing for more see help information below

Lesson 1 Getting Started. 1. What are the different ways you interact with computers?

Assessment. Self Assessment. Teacher Assessment. Date Learning Objective(s) Achievement or. NC Level: Game Control Student Booklet P a g e 1

How to create a survey with SurveyMonkey

SPACEYARD SCRAPPERS 2-D GAME DESIGN DOCUMENT

15 TUBE CLEANER: A SIMPLE SHOOTING GAME

Transcription:

Clone Wars Introduction In this project you ll learn how to create a game in which you have to save the Earth from space monsters. Step 1: Making a Spaceship Let s make a spaceship that will defend the Earth! Activity Checklist Start a new Scratch project and delete the cat sprite so that your project is empty. You can find the online Scratch editor at jumpto.cc/scratchnew. Add the stars backdrop and the Spaceship sprite to your project. Shrink the spaceship and move it near the bottom of the screen. 1

Add code to move your spaceship to the left the left arrow key is pressed. You ll need to use these blocks: forever if left key arrow pressed? change x by -4 then Add code to move your spaceship to the right the right arrow key is pressed. Test your project to see whether you can control your spaceship with the arrow keys. Save your project 2

Step 2: Lightning bolts Let s give the spaceship the ability to fire lightning bolts! Activity Checklist Add the Lightning sprite from the Scratch library. When the game is started, the lightning should be hidden until the spaceship fires its laser cannons. The sprite needs to be much smaller and upside down. Add the following code to the Lightning sprite. hide set size to 25 % point in direction -90 Add the following code to the Spaceship to create a new lightning bolt ever the space key is pressed. forever if key space pressed? create of Lightning then Whenever a new is created, it should start in the same place as the spaceship, and then move up the stage until it touches the edge. Add the following code to the Lightning sprite: 3

show I start as a go to Spaceship repeat until touching? change y by 10 edge delete this Note: We move the new to the spaceship while it is still hidden, before then showing it. This just looks nicer. Test your lightning, by pressing the space key. Save your project Challenge: Fixing the lightning What happens if you keep the space key held down? Can you use a wait block to fix this? Save your project Step 3: Flying Space-hippos Let s add lots of flying hippos that are trying to destroy your spaceship. 4

Activity Checklist Create a new sprite from the Hippo1 image in the Scratch library. Set its rotation style to be left-right only, and add the following code to hide the sprite the game starts: hide Create a new variable called speed, that is for the hippo sprite only. 5

You ll know if you ve done this correctly because the variable will have the name of the sprite next to it, like this: The following code will create a new hippo every few seconds. The Stage is a good place for this code to live: forever wait pick random 2 to secs 4 create of Hippo1 When each hippo starts, make it move around the stage (at a random speed) until it gets hit by the lightning. Add this code to the hippo sprite: 6

I start as a set speed to pick random 2 to 4 go to x: pick random -220 to 220 y: 150 show repeat until touching lightning? move speed steps turn pick random -10 to 10 degrees if on edge, bounce delete this Test out your hippo code. You should see a new hippo appear every few seconds, each moving at its own speed. 7

Test your laser cannon. If you hit a hippo, does it vanish? When a hippo touches your spaceship, we need to make the spaceship explode! To do this, first make sure that your spaceship has 2 costumes called normal and hit. The spaceship s hit costume can be made by importing the Sun image from the Scratch library, and using the Color a shape tool to change its colour. Add this code to your spaceship so that it switches costume ever it collides with a flying hippo: 8

forever switch costume to normal wait until? touching Hippo1 switch costume to hit broadcast hit wait 1 secs Did you notice that you have broadcast a hit message in the code above? You can use this message to make all of the hippos disappear the spaceship is hit. Add this code to your hippo: I receive hit delete this Test out this code by starting a new game and colliding with a hippo. Save your project 9

Save your project Challenge: Lives and Score Can you add a lives, score or even a highscore to your game? You can use the Catch the Dots project to help you. Save your project Step 4: Fruit Bats! Let s make a fruit bat that throws oranges at your spaceship. Activity Checklist Firstly, make a new bat sprite that will move across the top of the stage forever. Remember to test out your code. If you look at the bat s costumes, you ll see that it already has 2: 10

Use the next costume block to make the bat flap its wings as it moves. Create a new Orange sprite from the Scratch library Add code to your bat, so that it creates a new orange every few seconds. forever wait pick random 5 to secs 10 create of Orange Click on your orange sprite and add this code to make each orange drop down the stage from the bat towards the spaceship: 11

hide show I start as a go to Bat1 repeat until touching? change y by -4 delete this edge I receive hit delete this In your spaceship sprite, you ll need to modify your code so that you are hit if you touch a hippo or an orange: wait until touching Hippo1? or touching Orange? Test your game. What happens if you get hit by a falling orange? Save your project Step 5: Game over Let s add a game over message at the end of the game. Activity Checklist If you haven t already, create a new variable called lives. Your spaceship should start with 3 lives and lose a life ever it collides 12

with an enemy. Your game should also stop you run out of lives. If you need help, you can use the Catch the Dots project to help you. Draw a new sprite called Game Over, using the text tool. On your stage, broadcast a game over message just before the game ends. broadcast game over wait and Add this code to your Game Over sprite, so that the message shows at the end of the game: I receive game over hide show Because you ve used a broadcast [game over] and wait block on your stage, it will wait for the Game Over sprite to be displayed before ending the game. Test your game. How many points can you score? Can you think of ways to improve your game if it is too easy or too hard? 13

Save your project Challenge: Improve your game What improvements can you make to your game? Here are some ideas: Add health packs that you can collect to gain extra lives; Add floating rocks that your spaceship must avoid; Make more enemies appear your score gets to 100. wait until score = 100 14

Save your project 15