Create Your Own World

Similar documents
Create Your Own World

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.

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 game, in which you have to match up coloured dots with the correct part of the controller.

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.

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 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.

Brain Game. Introduction. Scratch

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

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

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

Ghostbusters. Level. Introduction:

Scratch for Beginners Workbook

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

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

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

Game Making Workshop on Scratch

Step 1 : Earth and Mars Orbit the Sun

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

Introduction to Turtle Art

Programming I (mblock)

Where's the Treasure?

Create a Simple Game in Scratch

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

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

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

Pong Game. Intermediate. LPo v1

Explore and Challenge:

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

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

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.

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

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!

Lesson 2 Game Basics

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

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

Copyright 2017 MakeUseOf. All Rights Reserved.

Flappy Parrot Level 2

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

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

SAMPLE CHAPTER

Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

Project 1: Game of Bricks

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

How to use Photo Story 3

A. creating clones. Skills Training 5

Programming with Scratch

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

2D Platform. Table of Contents

How to do automatic horizontal background scrolling in Scratch

Pong! The oldest commercially available game in history

Cato s Hike Quick Start

a. the costumes tab and costumes panel

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

CISC 1600, Lab 2.2: More games in Scratch

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

Teaching Kids to Program. Lesson Plan: Interactive Holiday Card

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

More Actions: A Galaxy of Possibilities

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program.

INTERACTING SPRITES MODULE 3: INVESTIGATION 1. Anima9ng Sprites

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

Overview. The Game Idea

Further Mathematics Support Programme

GAME:IT Junior Bouncing Ball

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

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

The Joy of SVGs CUT ABOVE. pre training series 3. svg design Course. Jennifer Maker. CUT ABOVE SVG Design Course by Jennifer Maker

Some code for this game has been provided for you. Open this trinket: This is a very basic RPG game that only has 2 rooms. Here s a map of the game:

G54GAM Lab Session 1

04. Two Player Pong. 04.Two Player Pong

Scratch Primary Lesson 5

An Introduction to Programming using the NXT Robot:

Pong! The oldest commercially available game in history

user guide for windows creative learning tools

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

Maze Puzzler Beta. 7. Somewhere else in the room place locks to impede the player s movement.

Tutorial: Creating maze games

Getting Started with Osmo Coding Jam. Updated

The purpose of this document is to help users create their own TimeSplitters Future Perfect maps. It is designed as a brief overview for beginners.

DESIGN A SHOOTING STYLE GAME IN FLASH 8

Kaltura CaptureSpace Lite Desktop Recorder: Editing, Saving, and Uploading a Recording

Write algorithms with variables. Phil Bagge code-it

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

MIRROR IMAGING. Author: San Jewry LET S GET STARTED. Level: Beginner+ Download: None Version: 1.5

5.0 Events and Actions

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

Chapter 14. using data wires

Unit 5: What s in a List

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Robot Programming Manual

Vectrex Dark Tower. The games are as follows: Skill Level Keys Provided. Vectrex Dark Tower

1hr ACTIVITY GUIDE FOR FAMILIES. Hour of Code

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

Learn about the RoboMind programming environment

ADD A REALISTIC WATER REFLECTION

Adding in 3D Models and Animations

Transcription:

Create Your Own World Introduction In this project you ll learn how to create your own open world adventure game. Step 1: Coding your player Let s start by creating a player that can move around your world. Activity Checklist Open the Create Your Own World Scratch project online at jumpto.cc/world-go or download from jumpto.cc/world-get and then open if you are using the offline editor. 1

Let s use the arrow keys to move the player around. When the player presses the up arrow, you want the player to move up, by changing its y coordinate. Add this code to the player sprite: when forever clicked if key up arrow pressed? then change y by 2 Test out your player by clicking the flag and then holding down the up arrow. Does your player move up? 2

To move the player to the left, you need to add another if block to your player, which changes the x coordinate: when forever clicked if key up arrow pressed? then change y by 2 if key left arrow pressed? then change x by -2 Challenge: Moving in all four directions Can you add more code to your player, so that they can move up, down, left and right. Use the code you already have to help you! Save your project 3

Test out your player again, and you ll see they have the ability to walk through the light grey walls. To fix this, you need to move the player, but then move them back if they re touching a light grey wall. Here s the code you ll need: when forever clicked if key up arrow pressed? then change y by 2 if touching color? then change y by -2 Notice that the new if touching color block is inside the if key [up arrow] block. Test this new code by moving below the wall - you shouldn t be able to move up into it. 4

Let s do the same for the left arrow, moving back if the player is touching a wall. This is how your player code should look so far: Challenge: Fixing your player s movement Add code to your player so that you can t walk through walls in any direction. Use the code you already have to help you! Save your project Step 2: Coding your world Let s allow the player to walk through doors into other rooms! Activity Checklist 5

Your project contains backdrops for additional rooms: You ll need a new for all sprites variable called room, to keep track of what room the player is in. When the player touches the orange door in the first room, the next backdrop should be displayed, and the player should move back to the left side of the stage. Here s the code you ll need - it should go inside the player s forever loop: if touching color then switch backdrop to next backdrop go to x: -200 y: 0 change room by 1 Add this code to the start of your player code (before the forever loop) to make sure that everything is reset when the flag is clicked: 6

set room to 1 go to x: -200 y: 0 switch backdrop to room1 Click the flag and move your player over the orange door. Does your player move to the next screen? Does the room variable change to 2? Challenge: Moving to the previous room Can you make your player move to the previous room when they touch a yellow door? Remember that this code will be very similar to the code you ve already added for moving to the next room. Save your project 7

Step 3: Signs Let s add signs to your world, to guide your player on their journey. Activity Checklist Your project includes a welcome sign sprite: This sign will only be visible in room 1, so let s add some code to the sign to make sure that this happens: when forever clicked if room = 1 show else hide then Test your sign by moving between rooms. Your sign should only be visible in room 1. 8

A sign isn t much good if it doesn t say anything! Let s add some more code (in another separate block) to display a message if the sign is touching the player: when forever clicked if touching player? then say Welcome! Can you get to the treasure? else say Test out your sign, and you should see a message when the player touches it. Save your project 9

Challenge: Treasure! Right-click on the treasure chest sprite and choose show. Can you make the treasure chest sprite appear only in room 3 and say Well done! when the player touches it. Save your project Step 4: People Let s add other people to your world that your player can interact with. Activity Checklist Add this code to the person sprite, so that the person talks to your player. This code is very similar to the code you added to your sign: 10

when clicked go to x: 0 y: -150 forever if touching player? then say Did you know that you can go through orange and yellow doors? else say You could also allow your person to move, by using these two blocks: move 1 steps if on edge, bounce Your person will act differently, depending on whether you place this code inside the forever loop or the if block. Try both and see which you prefer. Have you noticed that your person flips upside-down. To stop this, click the sprite s information icon ( i ), and click the dot to fix to rotation style. 11

Challenge: Improving your person Can you add code to your new person, so that they only appear in room 1? Make sure you test out your new code! Save your project You can also add in patrolling enemies, who end the game if the player touches them. Add in a new enemy sprite, and change the rotation style, just like you did with the person sprite. Add code to your enemy, so that they only appear in room 2. You ll also need to add code to move the enemy, and to end the game if the enemy touches the player. It s easier to do this in separate code blocks. Here s how your enemy code should look: 12

Test out your enemy, to make sure that: It s only visible in room 2; It patrols the room; The game ends if the player touches it. Save your project Challenge: More enemies Can you create another enemy in room 3, that patrols up and down through the gap in the wall? 13

Save your project Step 5: Collecting coins Activity Checklist Add a new variable valled coins to your project. Right-click on the coin sprite and choose show. Add code to your coin, so that it only appears in room 1. Add code to your coin sprite, to add 1 to your coins once they ve been picked up: when clicked wait until touching player? change coins by 1 stop other scripts in sprite hide The code stop other scripts in sprite is needed so that the coin stops being displayed in room 1 once it s been collected. You ll also need to add code to set your coins variable to 0 at the start of your game. Test your project - collecting your coins should change your score to 1. 14

Challenge: More coins Can you add more coins to your game? They can be in different rooms, and some coins could even be guarded by patroling enemies. Step 6: Doors and keys Activity Checklist Edit the key sprite s costume so that it s blue. Right-click the key sprite and choose show so that it appears on the stage. Switch your stage to backdrop 3, and place the key somewhere difficult to reach! Make sure that your key is only visible in room 3. Create a new list variable called inventory. This will be where you store all of the items your player collects. The code for collecting the key is very similar to the code for collecting coins. The difference is that you add the key to your inventory. 15

when clicked wait until touching player? add blue key to inventory stop other scripts in sprite hide Test out your key, to see if you can collect it, and add it to your inventory. Remember to add code to your stage to empty your inventory at the start. delete all of inventory Place your blue door sprite across the gap in the two walls. Add code to your door, so that it is only visible in room 3. You ll need to hide your blue door to allow your player to pass once you have the blue key in your inventory. when clicked wait until inventory contains blue key stop other scripts in sprite hide 16

Test out your project, and see if you can collect the blue key to open the door! Save your project Challenge: Create your own world You can now continue creating your own world. Here are some ideas: Change the setting of your game, and your game graphics; Add sound and music to your game; Add more people, enemies, signs and coins; Add red and yellow doors, that need their own keys to open them; Add more rooms to your world; Add other useful items to your game; Use coins to get information from other people; You could even add north and south doors, so that the player can move between rooms in all 4 directions. For example, if you had 9 rooms, you could think of them as being in a 3x3 grid. You can then add 3 to the room number to move down 1 level. 17

Save your project 18