Defend Hong Kong s Technocore

Similar documents
Defend Hong Kong s Technocore

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!

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

Ghostbusters. Level. Introduction:

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

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 platform game, in which you have to dodge the moving balls and reach the end of the level.

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 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 code your own musical instruments!

Introduction to Turtle Art

CISC 1600, Lab 2.2: More games in Scratch

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

Pong Game. Intermediate. LPo v1

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

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

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.

Creating Computer Games

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

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

Scratch for Beginners Workbook

Pong! The oldest commercially available game in history

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

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.

Step 1 : Earth and Mars Orbit the Sun

Flappy Parrot Level 2

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

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

Create a Simple Game in Scratch

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

Brain Game. Introduction. Scratch

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! 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

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

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.

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

Create Your Own World

SAMPLE CHAPTER

Project 1: Game of Bricks

COMPUTING CURRICULUM TOOLKIT

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

Lesson 2 Game Basics

More Actions: A Galaxy of Possibilities

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

Programming with Scratch

04. Two Player Pong. 04.Two Player Pong

2D Platform. Table of Contents

Copyright 2017 MakeUseOf. All Rights Reserved.

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

Where's the Treasure?

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

Pong! The oldest commercially available game in history

Star Defender. Section 1

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

SAVING, LOADING AND REUSING LAYER STYLES

This is an excerpt of

Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

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

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

Scrolling Shooter 1945

Create Your Own World

Your First Game: Devilishly Easy

THE BACKGROUND ERASER TOOL

Controlling a Sprite with Ultrasound

G54GAM Lab Session 1

Space Invadersesque 2D shooter

a. the costumes tab and costumes panel

INTERACTING SPRITES MODULE 3: INVESTIGATION 1. Anima9ng Sprites

GAME:IT Bouncing Ball

Explore and Challenge:

GAME:IT Junior Bouncing Ball

This Photoshop Tutorial 2012 Steve Patterson, Photoshop Essentials.com. Not To Be Reproduced Or Redistributed Without Permission.

Kodu Game Programming

Scratching the Surface of Pong: Enriching Linear Equations with Computer Programming

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

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Module 4 Build a Game

A. creating clones. Skills Training 5

Module. Introduction to Scratch

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

KEEPING SCORE: HOW TO USE SCORES, LIVES AND HEALTH

Adding Fireworks To A Photo With Photoshop

ADDING A RAINBOW TO A PHOTOGRAPH

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

I ROBOT. The Alan Parsons Project. All lyrics by Eric Woolfson & Alan Parsons Woolfsongs Ltd / Careers Music, Inc. I ROBOT (Instrumental)

Game Making Workshop on Scratch

VACUUM MARAUDERS V1.0

DIGITAL ECLIPSE. Eclipse photos courtesy of Fred Espanak 1998

Introduction Installation Switch Skills 1 Windows Auto-run CDs My Computer Setup.exe Apple Macintosh Switch Skills 1

ADDING FIREWORKS TO A PHOTO

UNDERSTANDING LAYER MASKS IN PHOTOSHOP

Survive Blood Island Interactive Game

The Future. of History

TABLE OF CONTENTS WHAT IS SUPER ZOMBIE STRIKERS? QUICK GUIDE HOW TO PLAY TOURNAMENT STRUCTURE ELIGIBILITY & PRIZING

Programming I (mblock)

Before you start, you must go into Advanced Mode. Go to: File > Advanced Mode. You know you are in Advanced Mode when the checkmark appears.

InfoSphere goes Android Angry Blob

Rock, Paper, Scissors

Hack Attack. Rules by Jeffrey Wang

Instructional Document

Transcription:

Defend Hong Kong s Technocore

Mission completed! Fabu s free again! *sniff* foiled again Aww don t be upset! I just think that art s meant to be shared! Do you think the Cosmic Defenders would take me back... or just forgive me... if I apologized? Fabu s right! We have to destroy the virus right away! Probably! But be careful now. News has it that the Dark Wizard is planning to launch a virus attack on Hong Kong! Oh no! But if that happens, the whole digital world could be destroyed! Stand back. I know kung Fu! Hong kong Here it comes! 54

Hack Attack Chapter Focus The Game Learn to control sprites with the mouse, program objects to bounce back, and start a game by pressing the spacebar. Help Scratchy attack flying viruses and stop them from touching the server at the bottom of the screen. If you successfully block 30 viruses, you win the game! First, go to the Stage and import a sparkly nighttime picture of Hong Kong! Did you know you can add programs to the Stage, too? We can add this program to make our city glow! 55

We can then add a new sprite called Instructions, which tells the player how the game works. We ll write two programs for the sprite. ❶ Program ❶ makes the sprite show up at the start of the game and disappear when the player presses space, the spacebar on their keyboard. Program ❷ makes the Instructions sprite broadcast start when it receives the space broadcast from program ❶. This will start the game! ❷ 56

Then we ll write some programs for Scratchy. Import the sprite Neo-Cat from the Super Scratch folder into your project. Notice how he already has two costumes: one where he s just standing and another where he s jumping. So let s add some programs to control how Scratchy looks. In program ❶, we hide him before the start broadcast is received. In program ❷, we control how Scratchy switches costumes. Whenever the player s mouse is clicked that is, whenever mouse down? Scratchy looks like he s jumping. ❶ ❷ 57

❸ But how does the player control Scratchy? Program ❸ lets you control Scratchy with the mouse, showing him only when the start broadcast is received. Program ❹ makes a speech bubble saying OH NO!! appear whenever the Scratchy sprite receives the Oh signal. We ll broadcast Oh whenever a virus manages to hit the server. ❹ Tip: By using the mouse instead of the keyboard, the player has a lot of control over Scratchy, who will move very quickly for this game. But remember every game is different! Sometimes the keyboard works well, too. Then we ll draw or import a new sprite called Server. The Server has one simple program so that it appears in the right place: centered and at the bottom of the screen. 58

Next, import a new sprite called Virus from the Super Scratch folder. It has a set of costumes of letters spelling V-I-R-U-S. Program ❶ hides the Virus until the game starts. Program ❷ makes the Virus switch costumes as it flies around. ❶ ❷ Program ❸ for the Virus makes it fly around. It bounces whenever it bumps into Scratchy or the edges of the screen. ❸ 59

❹ Now we ll add more programs to the Virus to keep score. These programs use blocks from the Control and Variables palettes to record and signal the conditions for winning and losing. Program ❹ creates a new variable called score and the conditions we need to meet for the script to broadcast win. Your score will now appear on the Stage. ❺ Program ❺ creates a variable called chance, which keeps track of how many times the Virus is allowed to touch the Server sprite before the player loses. We ll give Scratchy five chances to start. When you re out of chances, the program broadcasts lose. Just like the player s score, the number of tries the player has left is displayed on the Stage as chance. Tip: When setting the rules for winning and losing in your games, use the greater-than symbol (>) or the less-than symbol (<) instead of the equal sign (=), as we do in programs ❹ and ❺. This will prevent the game from breaking when a variable changes too quickly! Why might the variable change too fast in this game? Scratchy might touch the Virus a few times in quick succession, and the program won t realize that you ve won the game. 60

Now let s add a sprite for the winning screen. Programs ❶ and ❷ keep it hidden. Then program ❸ makes it appear when the win broadcast is received from the Virus sprite. ❶ ❷ ❸ The losing screen is pretty similar to the winning screen. To save time, we can select the Duplicate tool and click the winning screen to copy both the image and the programming! All we need to do now is change the costume and the last program a bit. 61

We re finished! After you save the file, hurry and help Scratchy the hacker defend the network from the virus attack! Scratchy s Challenge!! How would you make this game harder for the player? How about adding different kinds of viruses? What about turning this game into a two-player Ping-Pong match? Give it a try! 62