Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

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

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

Programming with Scratch

Create Your Own World

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

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

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

Ghostbusters. Level. Introduction:

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

Scratch for Beginners Workbook

Whack-a-Witch. 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

CISC 1600, Lab 2.2: More games in Scratch

Creating a Maze Game in Tynker

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.

Create a Simple Game in Scratch

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 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 times table quiz, in which you have to get as many answers correct as you can in 30 seconds.

Project 1: Game of Bricks

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

Introduction to Turtle Art

Where's the Treasure?

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

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

Create Your Own World

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Kinect2Scratch Workbook

Flappy Parrot Level 2

A. creating clones. Skills Training 5

Brain Game. Introduction. Scratch

Explore and Challenge:

Module 4 Build a Game

Module. Introduction to Scratch

Pong! The oldest commercially available game in history

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

Write algorithms with variables. Phil Bagge code-it

Defend Hong Kong s Technocore

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

Programming I (mblock)

Lesson 2 Game Basics

Unit 1 - Surveying the Landscape

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

The Kapman Handbook. Thomas Gallinari

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

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

ADVANCED TOOLS AND TECHNIQUES: PAC-MAN GAME

Defend Hong Kong s Technocore

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

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

Creating Generic Wars With Special Thanks to Tommy Gun and CrackedRabbitGaming

Space Cadet Grades K-2 Scope and Sequence

Scratch Programming Lesson 13. Mini Mario Game Part 4 Platforms

INTERACTING SPRITES MODULE 3: INVESTIGATION 1. Anima9ng Sprites

Fantastic Tetris. Design Report

Module 1 Introducing Kodu Basics

More Actions: A Galaxy of Possibilities

Creating Computer Games

KS3 Levels 3-8. Unit 3 Probability. Homework Booklet. Complete this table indicating the homework you have been set and when it is due by.

BASTARD ICE CREAM PROJECT DESIGN EMBEDDED SYSTEM (CSEE 4840) PROF: STEPHEN A. EDWARDS HAODAN HUANG LEI MAO DEPARTMENT OF ELECTRICAL ENGINEERING

Creating PacMan With AgentCubes Online

SAMPLE CHAPTER

Creating PacMan With AgentCubes Online

Robot Programming Manual

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

Game Making Workshop on Scratch

Scrolling Shooter 1945

04. Two Player Pong. 04.Two Player Pong

5.0 Events and Actions

Tutorial: Creating maze games

Mobile and web games Development

Name. Is the game fair or not? Prove your answer with math. If the game is fair, play it 36 times and record the results.

1) If P(E) is the probability that an event will occur, then which of the following is true? (1) 0 P(E) 1 (3) 0 P(E) 1 (2) 0 P(E) 1 (4) 0 P(E) 1

LESSON ACTIVITY TOOLKIT 2.0

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

Lesson Activity Toolkit

Step 1 : Earth and Mars Orbit the Sun

Kings! Card Swiping Decision Game Asset

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

Racing Game. Course Project for COMP406

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

Game Maker Tutorial Creating Maze Games Written by Mark Overmars

Lesson 11.3 Independent Events

All-Stars Dungeons And Diamonds Fundamental. Secrets, Details And Facts (v1.0r3)

SolidWorks Tutorial 1. Axis

Overall approach, including resources required. Session Goals

Instructional Document

Sketch Nation Create Lesson Ideas: Creating Multi Level Games

Development Outcome 2

Your First Game: Devilishly Easy

Emoji Planet Video Slot Game Rules

Design task: Pacman. Software engineering Szoftvertechnológia. Dr. Balázs Simon BME, IIT

Scheme of Work Overview

GALAXIAN: CSEE 4840 EMBEDDED SYSTEM DESIGN. Galaxian. CSEE 4840 Embedded System Design

Project: Copter VH-ZGA Flight Test Difficulty: Level 2

Getting Started with Osmo Coding. Updated

2D Platform. Table of Contents

1. Make the robots exercise:

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

Transcription:

Ada Lovelace Computing Level 3 Scratch Project ROAD RACER

ANALYSIS (what will your program do) For my project I will create a game in Scratch called Road Racer. The object of the game is to control a car up, down, left and right and gather as many points as you can by collecting coins, which randomly appear on screen. Every time the player collects a coin it will add 1 to their score. There will also be two other cars which move down the screen. If the player s car touches them they will lose 1 life. A dog will also randomly move around the screen. If the player s car touches the dog then they will lose a life. Once the lives reach 0 the game will stop and a Game Over screen will appear. I will need a score variable to hold the current score of the player. The score variable will start at 0. I will need a lives variable to hold the current lives of the player. The lives variable will start at 3. I will include the following objects to create my game: stage redcar bluecar yellowcar dog coin Variable score lives Purpose This will store the current score and will start at 0. This will store the current number of lives and start at 3.

DESIGN (how will your solution work) Algorithm Object redcar Operations FOREVER IF press up arrow move up IF press down arrow move down IF press left arrow move left IF press right arrow move right IF touching the grass bounce off IF touching the edge bounce off IF touching the bluecar go to start position take 1 away from lives IF touching the yellowcar take 1 away from lives IF touching the dog take 1 away from lives IF lives = 0 display GAME OVER hide the redcar go to start position SET lives TO 3 SET score TO 0 hide the redcar

bluecar hide the bluecar show the blue car FOREVER move 3 steps IF touching the edge hide the bluecar wait for 3 seconds show the bluecar yellowcar hide the bluecar hide the yellowcar show the yellowcar car FOREVER move 3 steps IF touching the edge hide the yellowcar wait for 3 seconds show the yellowcar dog hide the yellowcar show the dog FOREVER move the dog to a random X and Y coordinate every 2 seconds hide the dog wait for 2 seconds show the dog hide the dog

coin show the coin move the coin to a random X and Y coordinate FOREVER IF touching the redcar add 1 to the score hide the coin wait for 2 seconds move the coin to a random X and Y coordinate show the coin hide the coin stage WHEN game starts show level 1 stage show game over stage User Interface See my attached user interface design sketches.

IMPLEMENTATION (build your solution) Object redcar Code

bluecar yellowcar

dog coin stage

User Interface

TESTING (testing your solution to ensure the correct outputs) TEST MY EXPECTED OUTPUT When I press the arrow keys the redcar will move up, down, left and right. COMPUTER OUTPUT The redcar moved up, down, and left but not right when I move the arrow keys. Yellow and blue cars both move down the screen then reappeared at the top. Dog moved randomly around the screen every 2 seconds. COMMENT Redcar moves up, down left and right I had accidently set the right arrow key to point left before moving, so I changed the line of code to point right. Yellow and Blue cars move down the screen Yellow and blue cars move down the screen hide, then re-appear at the top of the screen. Dog will randomly move around the screen every 2 seconds. Coin will randomly appear. If touched by the redcar the score goes up by 1 then will disappear.. When the red car touches the blue car, yellow car or dog the lives goes down by 1. Dog moves around the screen. Coin appears randomly on screen and score increases when touched Coin appeared randomly. Whan the redcar touched it the score increased by 1. A life was lost when the redcar touched the bluecar or dog, but not when it touched the yellowcar. The game ended when lives reached 0 and the game over screen appeared. But the cars and the dog still appeared on screen. Life lost if touching the blue car or yellow car or dog. I changed my code so that IF the redcar touches the yellowcar then it will go back to its start position and a life is lost. Game ends When lives reaches 0, the Game Over screen appears and the game stops. I changed my code so that when all the cars and the dog received gameover they were set to hide.

EVALUATION (reporting on your solution) Did my program meet the requirements? The game met all the requirements because the main character (the red car), had the objective of gaining as many points as possible before losing all its lives. The red car was controlled by the keyboard. The blue car and yellow car appeared randomly and moved down the screen. If the red car touched the other cars a life was lost. The game used two variables to hold the score and lives. The game ended when lives reached zero. The program used IF commands to make decisions and FOREVER commands to repeat code. It also used random numbers to move objects around the screen. During the development of the program the dog was added to move randomly around the screen and if touched the player lost a life. I added this to my analysis and changed my design to include this function in the game before adding it to the program. How I could improve my program? I could improve the game: By adding a timer so that to object of the game is to get as many point as possible in 30 seconds or before all 3 lives are lost. To do this I would need to add another variable called timer By including scrolling trees which move down the screen, to look like realistic driving movement. By adding a Level 2, I could make the next level much more difficult by getting the player to drive around a maze, collecting more coins and avoiding more enemy objects. Problems I had and how I solved them I discovered a number of problems when testing my game: First of all when I pressed the right arrow the red car moved left. This was correct in my design, so I changed this line of code to point right before moving five steps. Secondly, a life was not lost when the yellow car touched the red car. I changed the red car code so that IF it touched the yellow car, it went back to the start position and lost a lift. Finally, I made sure each sprite was set to hide when game over was broadcast and they didn t appear on screen when the game over screen was displayed.