Get it here. Page 1 of 7 Date:Jan 8, 2014

Similar documents
Step 1. CoderDojo Milltown Exercise 1 Pong Page 1 of 13

Table Football. Introduction. Scratch. Let s make a world cup football game in Scratch! Activity Checklist. Test your Project.

SCRATCH CHALLENGE #3

1. First start a new scratch project and remove the default sprite.

Start a new Scratch project. Delete the cat by right-clicking it and selecting Delete.

3. Select a colour and then use the Rectangle drawing tool to draw a rectangle like the one below.

Start - All Programs - Class Software - Scratch - Scratch move move move Sound play drum move move move play drum Control forever forever forever

You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Scratch Hands-on Assignments CS4HS - Summer 2017

Boat Race. Introduction. Scratch. You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Felix and Herbert. Level

Boat Race. Introduction. Scratch

Felix and Herbert. Level. Introduction:

In this project you ll learn how to create a football game in which you have to score as many goals as you can in 30 seconds.

Penalty Kick in Ipanema

The Final Fight STAGE. * Download file Scratch Stage 9. Chapter Objective. The Game

Lets Play Catch! Keeping Score in Alice. Overview. Set Up. Position the ball 20 feet away: Orienting the ball 7/19/2010

First Edition. Teaching Scratch. at primary school. Thomas Arts

TECHNICAL NOTE HOW TO USE LOOPERS. Kalipso_TechDocs_Loopers. Revision: 1.0. Kalipso version: Date: 16/02/2017.

Circuit Lap Timer. The app has an Apple Watch interface for ios9+ and Watch OS2.0+. QuickStart Guide

Creating Your Events on the Lightseekers Website

Full-Time People and Registrations Version 5.0

Darts CHAPTER 6. Next are seven sounds: snd_double_points snd_triple_points snd_take_cover snd_perfect snd_thud_1 snd_thud_2 snd_thud_3

Activity 8: Cave Surfing Game

This is the second part of the installation and set-up guide for this latest version of the NRS, covering:

Horse Farm Management s Report Writer. User Guide Version 1.1.xx

WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

Assignment #3 Breakout! Due: 12pm on Wednesday, February 6th This assignment should be done individually (not in pairs)

Walk-O-Meter User Manual

Lab 4 VGA Display Snake Game

Shearwater Cloud Desktop Release Notes

Parametric Ball Toss TEACHER NOTES MATH NSPIRED. Math Objectives. Vocabulary. About the Lesson. TI-Nspire Navigator System

Repetition. Add in objects. The world should look like this: Bunny Eat Broccoli Repetition Simple loops and Conditional loops

GOLT! RED LIGHT DISTRICT

NAUI RGBM Dive Planner Windows Version Rev 9/2016

TESLAGON. ShotHelper Manual. How to install and use the Program. Version /30/2014

1. Functional description. Application program usage. 1.1 General. 1.2 Behavior on bus voltage loss and bus voltage. 1.

Encountering Condi.ons

uemis CONNECT: Synchronisation of the SDA with myuemis

BVIS Beach Volleyball Information System

ClubHub. User s Guide

User Guide. Version Mindjet

WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

Golden Spiral. A Chaparral grafix tutorial

BBoard PONG game. Creative Computing #1

LEGO Engineering Conferences ROBOLAB and MINDSTORMS Education Version 4.5 March 2008

CS Problem Solving and Object-Oriented Programming Lab 2 - Methods, Variables and Functions in Alice Due: September 23/24

Assignment #3 Breakout!

INSTRUCTIONS FOR USING HMS 2016 Scoring (v1)

Background Summary Kaibab Plateau: Source: Kormondy, E. J. (1996). Concepts of Ecology. Englewood Cliffs, NJ: Prentice-Hall. p.96.

Assignment 3: Breakout!

Full-Time Cup Competitions Version 5.0

Prerequisites: Layout:

SwimNumber App. Build Custom Smart Workouts Control the Wave Propulsion TM System Achieve Health and Fitness Goals INSTRUCTION MANUAL

Laybotpro Automated Betfair Bot. LayBotPro User Manual

RUNNING MEET MANAGER IN SUPPORT OF MEETS (2016) Greg Wright(6/3/16) First, YOU DO NOT NEED TO DO THIS UNLESS YOU ARE THE HOME TEAM

HOW TO CREATE PHOTO TWIRLS

Play Cricket Scoring App V 3.0 Four Ways of Scoring on the App 1) Both Innings Ball by Ball

MM3D C-MAP by Jeppesen FAQ

Air Ball! Evaluation copy

Based on a handout by Eric Roberts

ROTAX GLOBAL APP GUIDE. (revised ) GRAND FINALS EDITION

APBA Baseball for Windows 5.75 Update 22

Fastball Baseball Manager 2.5 for Joomla 2.5x

Soft Systems. Log Flume - 1. Enter Specification. Activity One ACTIVITIES. Help. for Logicator

Air Ball! LabQuest Vernier Gas Pressure Sensor Vernier Motion Detector basketball stopper with needle, stopper stem and tubing attached meter stick

DUTCH5 USER GUIDE February 2013

User Guide. Two-Wheeled Add-on. Created By: A-Lab Software Limited. Date Created: Feb Date Modified: Feb Revision: 1.

AP Physics 1 Summer Packet Review of Trigonometry used in Physics

Laser Tag Pro: Battle Rifle

This addendum describes the back pressure control implementation if FuelCell Version 4.1a and later.

Quintic Automatic Putting Report

szen Eighteen Full Manual 2010 szen Corp

Race Screen: Figure 2: Race Screen. Figure 3: Race Screen with Top Bulb Lock

Runners map. List of runners. The runners you added in Step 3 will be displayed in ranking by location. Displayed in the above lines.

Quick Start Guide. For Gold and Silver Editions

INT. DINING ROOM MORNING We see two kids, KID #1 and KID #2 sitting at the breakfast table. In front of them lies a bowl full of cereal.

Assignment 2 Task 2: Application Design. By Dr Derek Peacock

1 Document history Version Date Comments

GETTING STARTED. Main MENu SCREEN: When starting E6, the Main Menu screen displays the following buttons:

This document contains recommendations that may help teams be more successful in preparing for and participating in the FTC World Championship Event.

ELIMINATOR COMPETITION DRAG RACE Program Manual Firm Ver 4.11

PROGRAMMING LINX LEARNING GAME

FRDS GEN II SIMULATOR WORKBOOK

Chapter 4: Google Earth Exercise

CAM Final Report John Scheele Advisor: Paul Ohmann I. Introduction

The Test Canvas allows you to add and edit questions, add Question Sets or Random Blocks, reorder questions, and review the test.

JONES' DICTIONARY OF OLD TESTAMENT PROPER NAMES BY ALFRED JONES ( ) BY ALFRED JONES

Wicket Cards & Tags For Cashless Stored Value Payment Systems Rev: 10/2008

I See Animals Hiding

2600T Series Pressure Transmitters Plugged Impulse Line Detection Diagnostic. Pressure Measurement Engineered solutions for all applications

OZCHASE ONLINE NOMINATIONS USER MANUAL (FOR ALL STATES)

What does FORCE do? FP 6: 2 ways to submit Forms C Excel sheets (as before) Highly recommended to use as from now FORCE

Fast ForWord Home Learner Success Manual for Parents

FireHawk M7 Interface Module Software Instructions OPERATION AND INSTRUCTIONS

Colour Control in Lithography (Pira Guide) Click here if your download doesn"t start automatically

Midas Method Betting Software 3.0 Instruction Manual

Standard League WRO Football Simple Simon EV3 Training Curriculum

Full-Time. Other Fixtures. Version 2.1

How It Works! Make more profit from your betting at Betting Speed Evolution and the Race Advisor

Transcription:

Step 1 We are going to use Scratch 2.0 from now on so everyone should download Scracth 2.0 before starting this exercise. Get it here http://scratch.mit.edu/scratch2download/ Create a new project, delete the cat and save the project as Snake Step 2 We will create the snake sprite. There are only 2 simple costumes so its quite easy First create the body costume, a simple green square 14x14 pixels. Name this costume body. To get the pixel size correct create the costume in vector mode. Then duplicate this costume and add 2 black eyes and a red tongue as in the picture. Save as head. Zoom in to get the sizes correct and make sure to centre the 2 costumes on the screen Click on the I of the sprite now and rename the sprite to snake Also create a simple red spot sprite and save as point. It needs to be exactly 14x14 pixels also to match the snake. This will be the snake food! Page 1 of 7 Date:Jan 8, 2014

Step 3 Lets write some script for the snake game now. Create variables in Data called length, score, direction and delay. Only score is visible. Direction is local to the snake. The other variables are global Now in the snake sprite add the script on the right. This will setup the snake and make the first part of the snake the head. Then it loops around noting the score (everytime the snake eats a point he gets 1 bigger and this equates to the score) It points the snake in the direction being set in Step 4a/4b based on key presses. In the loop then it makes the snake move 15 pixels (this is important is its one more than the size of body). Then it waits the specified delay amount creating that stutter effect. Then using a new Scratch 2.0 feature it creates a clone of the sprite. This is how the snake grows and moves. The cloned version is left in the spot that the original has just moved from. More on the clone in a later step. Then it checks to see if its touching the side and if so the game is over. If noi the loop continues and the snake continues to move. The other script on the right simply handles the audio and some more costume switching. It runs the step noise just out of synch (- 0.1) with the actual movement for effect. Page 2 of 7 Date:Jan 8, 2014

Step 4a Now we are going to add some motion for snake using the script to the right First it sets the direction on green flag start The it checks for key presses and sets the direction based on key press. The last bit of code does a check to see if the key press was trying to turn the snake around 180 degrees which is impossible. The snake can only turn 90 degrees or -90 degrees from where he is going. If this is the case then it just leaves the direction going as it is and ignores the key press Page 3 of 7 Date:Jan 8, 2014

Step 4b The second part of this movement script is on the right and should be added below the last set direction if loop code above This bit just stops the loop constantly going around if a key is still being pressed after it has turned. It wont affect the snake movement as this happens in the other script in Step 3 Page 4 of 7 Date:Jan 8, 2014

Step 5 The final bits of code for the snake are on the right This tells the new cloned version of the sprite thats left behind to become a body costume (a cloned element is always a body) It then simply says to just wait (no movement) for the delay value by the length of the snake. This creates the effect of movement when really only the front part of the snake is moving. The other cloned parts are stationary. When the wait is finshed it removes itself and disappears thereby helping the motion effect. The other clone script just checks if the snake has crossed over on himself and if so finishes the game in the same way touching the edge does. The final bit of script tells the sprite to stop everything its doing if it receives a game over message and hide the sprite. Page 5 of 7 Date:Jan 8, 2014

Step 6 We are now going to add the script for the point (snake food) This script creates a point at random place on the background. The loop checks if the snake is touching the point and if it is then moves it to another location When the snake is touching the point (but not with his tongue as he needs to swallow :) ) then it plays an eating sound and increases the length by 1 which also increases the score as we saw in the snake script It also checks to see if the score is now a multiple of 5 and it increases the speed by decreasing the delay time. Finally we check for a game over message and if we get one we stop everything. Page 6 of 7 Date:Jan 8, 2014

Step 7 Very finally, we will add some simple script to the background to indicate when the game is over and by changing the background costumer and to restart by clicking the green flag The game should now be complete!! Page 7 of 7 Date:Jan 8, 2014