Download presentation
Presentation is loading. Please wait.
Published bySydney Harmon Modified over 8 years ago
1
Every week: Sign in at the door Have Fun Ask Share Email: megan.depinna@foroige.iemegan.depinna@foroige.ie Twitter: @coderdojoRos CoderDojo Roscommon "Above all, be cool" Wifi password: C754DF988E
2
Introductory Scratch Jerh. O'Connor 2013 Thanks to Michael Madden, CoderDojo Athenry Roscommon
3
Today's Coding Challenge: Write Your First Computer Game!
4
Today's Big Ideas What is Coding? Who Writes Code? How Can We Write Code? What is Scratch?
5
Programming Languages
6
Scratch http://scratch.mit.edu http://scratch.mit.edu Free & Open Source Windows, Linux, Mac Palette of Commands Games & Animation Encourages Sharing Install it now!
7
Scratch's Interface STAGE SPRITES SCRIPTS for Sprites Palette of COMMANDS START & STOP Main Menu Toolbar Scripts/Costumes/Sounds
8
What Can You Do With Scratch? Let's look at some examples …
9
Our First Game: Patrick v. Krabby
10
How to Get Started
11
How to Make Progress
12
Steps To Make Our Game
13
Interactive demo of these steps in Scratch … Final version: http://scratch.mit.edu/projects/cdathenry/2485560http://scratch.mit.edu/projects/cdathenry/2485560
14
Create a Sprite New Sprite: Select from existing designs Tip: Default size is big relative to stage: this shrinks it Name him:
15
Cartesian Coordinates
16
Make it Move Under Your Control Now figure out how to make it respond to the other arrow keys … x y
17
Change the Background Choose one to suit your own game's theme
18
More Movement
19
Create Another Sprite that Moves at Random
20
Make Things Happen When They Touch
21
Keep Track of Lives
22
More Things to Try … 1.Make a second bad guy that you have to keep away from, and that moves in a different way. 1.Add some treasure that will give you extra lives. 2.Make it a 2 player game
23
More Things to Try … 1.Make a second bad guy that you have to keep away from, and that moves in a different way. Hint: Duplicate first bad guy, then import a different costume for it, and change its script so that it moves in a different way. For example, you could make him point in a random direction (in range 1-360) when the flag is clicked, and after that just keep moving some steps, and bounce if on the edge. You might have to update the code for lives, too. 1.Add some treasure that will give you extra lives. Hint: Add a sprite that looks like treasure. Don't add code to make it move, but do add code so that if the good guy touches it, it changes LIFE by 1 and plays a happy noise. After you have tested it and made sure it works, duplicate it.
24
At the End … Upload your project to the Scratch Website Access it from home Improve it Show your friends!
25
Keep In Touch! @coderdojoRos megan.depinna@foroige.ie http://coderdojoroscommon.com
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.