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:

Similar documents
Where's the Treasure?

Create Your Own World

In this project, you ll design and code improvements to a 2D version of Minecraft.

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.

Create Your Own World

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

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

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.

MathScore EduFighter. How to Play

Level 21: Creating the Boss Battle 2

Rock, Paper, Scissors

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 learn how to write a Python program telling people all about you. Type the following into the window that appears:

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.

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.

. PLACES OF INTEREST.

Math Snacks: Monster School Bus

Be the first player to reach the Castle by landing on the yellow space at the end of the path.

Unique uses for Lattice Foundations. Unique uses for Lattice Foundations. by Cerulean Talon, 13 December Step 1.

Tutorial: Creating maze games

The Murders in the Rue Morgue

Girls Programming Network. Scissors Paper Rock!

STATION 1: ROULETTE. Name of Guesser Tally of Wins Tally of Losses # of Wins #1 #2

Mortal Guide (Levels 1-400)

SCENERY WARSCROLLS AZYRITE RUINS

THE TWO COMPONENTS OF A GOOD WRITING CONFERENCE

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

EVENT ESSENTIALS. Date: 25th November System: Warhammer 40,000 Matched Play. Army Size: 1,000 points.

Roommate & Room Selection Process

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

701 OCEAN STREET, 4 TH FLOOR, SANTA CRUZ, CA (831) FAX: (831) TDD: (831)

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

POOL THE. A role-playing game by James V. West

CHAMPIONSHIP CHESS GAME WORLD. Log On: When you log into the World of Chess, you will enter the Hall of Kings.

MINECRAFT CHALLENGES. By Lessons for Middle School

Video 8: 2 Point Perspective

1. Door tokens should have an open side instead of being the same on both sides.

..\/...\.\../... \/... \ / / C Sc 335 Fall 2010 Final Project

Escape the Nightmare

FOR THE CROWN Sample Play

Midnight Malady" COPYRIGHT 1981 AVANT GARDE CREATIONS AUTHOR: STEVEN SACKS. A Product of. 'I're Software Guild SYSTEM REQUIREMENTS

PLANNING DEPARTMENT. Measuring Your Vacation Rental and Drawing Scaled Plans

Probability Paradoxes

Create Or Conquer Game Development Guide

Dungeon Crawl Classics #9 Dungeon Geomorphs

LCN New Player Guide

Dungeon Cards. The Catacombs by Jamie Woodhead

WELCOME TO THE WORLD OF

Bonus: Map Drawing Tips

NWN ScriptEase Tutorial

Speaking Notes for Grades 4 to 6 Presentation

Outline. IMGD 1001: Level Design. Project 6 - Selecting Features. Project 6 - Types of Features. Project 6 - Tips on Vetting.

Programming Assignment 4

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.

Defend Hong Kong s Technocore

CISC 1600, Lab 2.2: More games in Scratch

Subtraction Fact Four-in-a-Row Games

Alan Shafran - San Diego, California

2 Textual Input Language. 1.1 Notation. Project #2 2

Defend Hong Kong s Technocore

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

Creating a Blog at Blogger.com

Lineage2 Revolution s Gameplay Tips for Beginners

Pony Primer. Getting Started

Welcome to the Early Beta and Thank You for Your Continued Support!

Lab 1. Due: Friday, September 16th at 9:00 AM

Pony Primer. Getting Started

OUTSIDE WHY ARE FLOOR PLANS GOOD?

DESIGN A SHOOTING STYLE GAME IN FLASH 8

The little BIG book of badness

Coding Camp. Coding Camp A Reading A Z Level N Leveled Book Word Count: 640 LEVELED BOOK N.

Frugal Real Food Meal Plans

HEY! DON T READ THESE RULES!

Cylinder of Zion. Design by Bart Vossen (100932) LD1 3D Level Design, Documentation version 1.0

Welcome to Weebly. Setting up Your Website. Write your username here:

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Only and are worth points. The point value of and is printed at the bottom of the card.

IMGD 1001: Level Design

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

Top Stories of Enterprise America. Dance Contest. Today s Weather. Mayor s Announcements. And Much More! Are you a news enthusiast?

Lesson 3. Takeout Doubles and Advances

NWN Toolset Module Construction Tutorial

Jarl 3 Freeman 3 Spearman Chieftain Vala Berserker

Key Abstractions in Game Maker

Grade 6 Math. Numeracy: Text Chapter 2

HAND 1. Auction (South dealer): 1NT Pass 2C Pass 2S Pass 4S Pass Pass Pass

THE B2B SALES MINI GUIDE

Window and Door Home Safety Workbook for Kids

>> Watch This Video On The Next Potential EMP Strike <<

You ve found a new place Your guide to moving in

Lesson 2. Overcalls and Advances

AT HOME FIRE SAFETY IN THEATERS JULY 18

On the GED essay, you ll need to write a short essay, about four

Junior Circle Meeting 5 Probability. May 2, ii. In an actual experiment, can one get a different number of heads when flipping a coin 100 times?

2: Turning the Tables

Diversifying or Specializing to Grow Your Business

Game A. Auction Block

EG1003 Help and How To s: Revit Tutorial

BOLT ACTION COMBAT PATROL

Transcription:

RPG Introduction: In this project, you ll design and code your own RPG maze game. The aim of the game will be to collect objects and escape from a house, making sure to avoid all the monsters! Step 1: Adding new rooms Activity Checklist Some code for this game has been provided for you. Open this trinket: jumpto.cc/rpg-go. This is a very basic RPG game that only has 2 rooms. Here s a map of the game: 1

You can type go south to move from the hall to the kitchen, and then go north to go back to the hall again! What happens when you type in a direction that you cannot go? Type go west in the hall and you ll get a friendly error message. 2

If you find the rooms variable, you can see that the map is coded as a dictionary of rooms: Each room is a dictionary and rooms are linked together using directions. Let s add a dining room to your map, to the east of the hall. 3

You need to add a 3rd room, called the dining room. You also need to link it to the hall to the west. You also need to add data to the hall, so that you can move to the dining room to the east. Try out the game with your new dining room: 4

If you can t move in and out of the dining room, just check that you added all of the code above (including the extra commas to the lines above). Save Your Project Challenge: Add new rooms Can you add more rooms to your game? For example, you could create a living room to the south of the dining room. Remember to add a door to/from one of the other rooms! Save Your Project 5

Step 2: Adding items to collect Let s leave items in the rooms for the player to collect as they move through the maze. Activity Checklist Adding an item into a room is easy, you can just add it to a room s dictionary. Let s put a key in the hall. Remember to put a comma after the line above the new item, or your program won t run! If you run your game after adding the code above, you can now see a key in the hall, and you can even pick it up (by typing get key ) which adds it to your inventory! 6

Save Your Project Challenge: Add new items Add an item to some of the rooms in your game. You can add anything that you think would be helpful in trying to escape the house! For example, a shield or a magic potion. Save Your Project Step 3: Adding enemies This game is too easy! Let s add enemies to some rooms that the player must avoid. Activity Checklist 7

Activity Checklist Adding an enemy to a room is as easy as adding any other item. Let s add a hungry monster to the kitchen: You also want to make sure that the game ends if the player enters a room with a monster in. You can do this with the following code, which you should add to the end of the game: This code checks whether there is an item in the room, and if so, whether that item is a monster. Notice that this code is indented, putting it in line with the code above it. This means that the game will check for a monster every time the player moves into a new room. Test out your code by going into the kitchen, which now contains a monster. 8

Save Your Project Challenge: Adding more monsters Add more monsters to your game, to make it harder to escape the house! Save Your Project Step 4: Winning the game Let s give your player a mission, which needs to completed to win the game. Activity Checklist In this game, the player wins by getting to the garden and escaping the house. They also need to have the key with them, and the magic potion. Here s a map of the game. 9

First, you need to add a garden to the south of the dining room. Remember to add doors, to link to other rooms in the house. 10

Add a potion to the dining room (or another room in your house). Add this code to allow the player to win the game when they get to the garden with the key and the potion: 11

Make sure this code is indented, in line with the code above it. This code means that the message You escaped the house...you WIN! is displayed if the player is in room 4 (the garden) and if the key and the potion are in the inventory. If you have more than 4 rooms, you may have to use a different room number for your garden in the code above. Test your game to make sure the player can win! Finally, let s add some instructions to your game, so that the player knows what they have to do. Edit the showinstructions() function to include more information. 12

You will need to add instructions to tell the user what items they need to collect, and what they need to avoid! Test your game and you should see your new instructions. Save Your Project Challenge: Develop your own game Use what you ve learnt to create your own game. Add lots of rooms, monsters to avoid and items to collect. Remember to modify the code so that the player wins when they get to a certain room with some of the objects in their inventory. It may help you to sketch a map before you start coding! 13

You could even add stairs to your map and have more than one level of rooms, by typing go up and go down. Save Your Project 14