Flappy Parrot Level 2

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

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

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

Ghostbusters. Level. Introduction:

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.

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

Create a Simple Game in Scratch

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

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

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.

Scratch for Beginners Workbook

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

Brain Game. Introduction. Scratch

Creating Computer Games

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

Pong Game. Intermediate. LPo v1

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

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.

G54GAM Lab Session 1

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

Introduction to Turtle Art

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

Lesson 2 Game Basics

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

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

Create Your Own World

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

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.

Programming with Scratch

Module 4 Build a Game

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

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

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

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

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

Game Making Workshop on Scratch

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.

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

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

A. creating clones. Skills Training 5

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

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

Controlling a Sprite with Ultrasound

Pong! The oldest commercially available game in history

2D Platform. Table of Contents

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!

GameMaker. Adrienne Decker School of Interactive Games and Media. RIT Center for Media, Arts, Games, Interaction & Creativity (MAGIC)

Explore and Challenge:

COMPUTING CURRICULUM TOOLKIT

Create Your Own World

Tilt Sensor Maze Game

Where's the Treasure?

CISC 1600, Lab 2.2: More games in Scratch

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

Star Defender. Section 1

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

Defend Hong Kong s Technocore

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

Tutorial: A scrolling shooter

Copyright 2017 MakeUseOf. All Rights Reserved.

How to do automatic horizontal background scrolling in Scratch

a. the costumes tab and costumes panel

Your First Game: Devilishly Easy

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

Parallax Scrolling Tutorial Created in Drogheda by Seamus Minogue and updated for Clonakilty CoderDojo 15/06/2012 PARALLAX SCROLLING

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

Step 1 : Earth and Mars Orbit the Sun

More Actions: A Galaxy of Possibilities

Project 1: Game of Bricks

Pong! The oldest commercially available game in history

Ask Jo: Quilt Designing on the Computer

Space Invadersesque 2D shooter

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

Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

04. Two Player Pong. 04.Two Player Pong

Tutorial: Creating maze games

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

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

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

Defend Hong Kong s Technocore

Fpglappy Bird: A side-scrolling game. Overview

DESIGN A SHOOTING STYLE GAME IN FLASH 8

How to Create Website Banners

1 Shooting Gallery Guide 2 SETUP. Unzip the ShootingGalleryFiles.zip file to a convenient location.

abc 3 def. 4 ghi 5 jkl 6 mno. Computers Rule the World

Overview. The Game Idea

GAME:IT Bouncing Ball

CAD/CAM Lamp Project using 2D Design and the X-660 Laser Cutter

Scrolling Shooter 1945

Stitching Panoramas using the GIMP

Scratch Primary Lesson 5

5.0 Events and Actions

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

Annex IV - Stencyl Tutorial

Now we ve had a look at the basics of using layers, I thought we d have a look at a few ways that we can use them.

Graphing Motion Simulation 8 th Grade PSI Score / 23 points. Learning Goals: Be able to describe movement by looking at a motion graph

KEEPING SCORE: HOW TO USE SCORES, LIVES AND HEALTH

D - Robot break time - make a game!

Using Game Maker. Getting Game Maker for Free. What is Game Maker? Non-event-based Programming: Polling. Getting Game Maker for Free

Using Game Maker. Oregon State University. Oregon State University Computer Graphics

Transcription:

Flappy Parrot Level 2 These projects are for use outside the UK only. More information is available on our website at http://www.codeclub.org.uk/. This coursework is developed in the open on GitHub, https://github.com/codeclub/ come and join us! Languages > English > Beginner Scratch > Flappy Parrot Introduction In this project we ll make our own version of the highly popular mobile game Flappy Bird. This project requires Scratch 2.0. Press the space bar to flap and try to navigate through the gaps in the pipes!

Step 1: Make Flappy fall Start a new Scratch project. Delete the cat by right-clicking it and selecting Delete Replace the background with an outdoor landscape. desert is a good choice. Add the Flappy character. You'll need a sprite with costumes for wings up and wings down. parrot is a good choice. Change the name of your sprite to Flappy. Give Flappy the following script: Click the green flag, does Flappy start in the middle of the screen and then fall to the bottom?

Step 2: Make Flappy fly Next, we want Flappy to flap upwards when you press the space bar. Click on the Costumes tab and name the costumes wings up and wings down. Now switch back to the Scripts tab and add this script: In Looks Section In Motion Section In Looks Section Click the green flag, are you able to control Flappy with the space bar? Do you notice that sometimes you press the space bar but Flappy doesn't move? We'll fix that next...

Step 3: Fix the controls We'd like Flappy to respond every time we press the space bar. But when we push the space bar Flappy begins two loops of movements. If we push the space bar again before these loops have finished, Scratch ignores the second press. To solve this, we'll use a variable to count up how many flaps we need to do. Disconnect the blocks under the when space key pressed and put them to the side (we'll use them in a few moments.) Make a new variable For this sprite only and call it flaps. Add the following script by draging in the blocks you put aside: In Data Section Finally, add to your when space key pressed event: Click the green flag, does Flappy now flap once for each time you press the space bar?

Step 4: Add the pipes Next we'll add some obstacles for Flappy to fly through. Click on the Paint new sprite button. Name your costume pipe. If the costume is in Bitmap Mode click on the Convert to vector button. Click on the Zoom - so that you can see the entire drawing area. Click on the Rectangle, pick a colour, and click on the Filled rectangle button. Click and drag two boxes, one from the top middle and one from the bottom middle as shown: You can shade your pipes by clicking on the Color a shape button and click on the Horizontal gradient button. Choose two shades of the same colour one for the foreground and one for the background. When you click to fill the shapes, the colours will fade between your chosen colours. Name your sprite Pipe.

Step 5: Make the pipes move Next we'll make the pipes move and arrange them randomly to provide an obstacle course for Flappy. Click on your Pipe sprite and select the Scripts tab. Add the following scripts: In Control Section In Control Section In Control Section Click the green flag, do pipes appear with gaps to fly through at different heights? If you find it difficult to navigate Flappy through the pipes without touching them, you can make the gap bigger in the pipe sprite by editing the costume.

Step 6: Detect collision with the pipes To make the game a challenge, the player needs to guide Flappy through the gaps without touching the pipes or the edges of the screen. Now we'll add some blocks to detect if Flappy hits something. Let's add a sound to play when Flappy collides. Click on the Flappy sprite then on the Sounds tab. Click the Choose sound from library button. Pick a collision sound for Flappy. The screech sound is good. Now click back on the Scripts tab. Add the following script: Wait Until is in Control Section and OR is in Operator Section In Control Section In Events Section Click on the Pipe sprite and add a script: Click the green flag, does the game end when Flappy touches a pipe or the edge of the screen?

Step 7: Add scoring The player should score a point every time Flappy makes it though a pipe. Let's add that next. Let's add a sound to play when Flappy scores a point. Click on the Pipe sprite add a score sound. bird is a good choice. Now click back on the Scripts tab. Make a new variable For all sprites and call it score. Add a block to set the score to 0 when the flag is clicked. Add the following block: < is in Operators Section Click the green flag, does the player score points for flying Flappy through the pipes? Things to try 1. How many ways can you make this game easier or harder? 2. Well done you ve finished the basic game. There are more things you can do to your game though. Have a go at these challenges!

Challenge 1: add a high score -30 If Missing Make a new variable for all e FOR Cloud FORand variable tick the (stored on server) box. Call the variable hi-score when the game is over check if you need to set a new high score: Click the green flag, does your score update the hi score?

Challenge 2: add gravity -30 If Missing When something falls under gravity it doesn't usually fall at a fixed rate. For this challenge we will make Flappy fall as if under gravity. Add a new variable For this sprite only to Flappy and call it rise. Change Flappy's falling script: And change Flappy's flapping script: Click the green flag, does Flappy now accelerate when falling and flapping?

Challenge 3: fall off screen -30 If Missing When the player loses make Flappy fall off the bottom of the screen before ending the game. Replace the broadcast GameOver block with broadcast Fall Now add the following scripts: Don't forget to add a show block and reset Flappy's direction when the game restarts. Click the green flag, does Flappy now fall off the screen after hitting a pipe? Does Flappy reappear in the correct orientation when restarting the game.