Download presentation
Presentation is loading. Please wait.
Published by离画 庄 Modified over 7 years ago
1
Today, we'll learn how to remember numbers and make better games.
PRESENTATION 1: GETTING STARTED Variables Today, we'll learn how to remember numbers and make better games.
2
PRESENTATION 1: GETTING STARTED
Click to Eat Each cupcake sprite when clicked: Changes to a “Crumbs” costume (or hides) Broadcasts a “Cupcake Eaten” message Baker listens and responds to the message
3
Variable “Boxes” Each sprite can have their own variables.
Some variables can be shared between sprites Each variables has a name. Each variables holds one number.
4
Variable “Boxes” Variable can replace any number.
The number in a variable can change: Positive numbers makes number larger Negative numbers makes number smaller
5
Using Variables
6
Conditions
7
The Little Thinker Project
What pet should I get? How about a dog? A cat would be fun. Maybe some mice...
8
The Little Thinker Scripts
9
Using a List of Pets
10
Making a List of Pets
11
Putting Pets in a List
12
Choosing a Pet from the List
13
Choosing a Random Pet
14
Making a Rock, Paper, Scissors Game
15
Foe You
16
Three “Button” Sprites
The game has 3 sprites that look like buttons. Clicking a sprite selects your “object”. Broadcasts a message to the “You” sprite.
17
The “You” Sprite Listens:
18
See if we win...
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.