We'll make magical stars appear! :sparkles:
We'll create a super fun game! :dart:
We'll learn about clones and scoring! :video_game:
Think of clones like magic copies! :sparkles:
Just like copying your favorite toy! :emoji:
• Clones help us make many stars! ⭐ • We can make enemies too! :emoji: • It's super easy with code! :computer:
Let's make our first clone:
:bulb: Did You Know? :emoji:
In video games, clones save time! One star becomes hundreds! ⭐⭐⭐
The clone startup block is special! :dart:
It tells clones what to do! :memo:
Super Important! :emoji:
Too many clones slow games down! :emoji:
Always delete old clones! :emoji:️
:bulb: Did You Know? :emoji:
Games can have 300 clones max! That's a lot of stars! ⭐
Want stars to surprise you? :tada:
Let's make them pop up randomly! :emoji:
First, grab this special block! :dart:
Now add pick random blocks! :emoji:
One for x, one for y! :emoji:
:bulb: Did You Know? :emoji:
X moves left and right! <->️
Y moves up and down! ↕️
Pick where stars can appear! :star2:
Use numbers like -100 to 100! :emoji:
Magic Screen Blocks: :iphone:
This block watches for changes! :emoji:
Like a magic alarm bell! :bell:
Every game needs points! :dart:
Let's make it count! :100:
Step One: Click Variables button! :package:
Step 2: Click CREATE VARIABLE! :sparkles:
Step 3: Name it "score"! :emoji:️
Step 4: Pick "for all actors"! :emoji:
:bulb: Did You Know? :emoji:
Variables are like magic boxes! They remember numbers for us! :package::emoji:
Your Score Toolbox: :emoji:
• Set score to 0 :emoji:
Start fresh every game! 🆕
• Change score by 1 ⬆️
Yay! You got a point! :tada:
• Change score by -10 ⬇️
Oh no! Enemy touched you! :emoji:
Catch magical stars at night! ⭐
Avoid the sneaky obstacles! :emoji:
Get the highest score ever! :trophy:
Pick a pretty background! :emoji:️
Add Your Game Friends! :emoji:
:bulb: Did You Know? :emoji:
Real stars are super hot! But our game stars are friendly! ⭐:emoji:
Step One: Hide the First Star :emoji:
# Star's Secret Code
on start
hide # Shhh! Hide me!
Step 2: Make Star Copies! :star2:
# Magic Star Maker
on start
forever
create clone of Star
wait 2 secs # Every 2 seconds!
Step 3: Star Clone Dance! :emoji:
# Each Star Clone Does This
clone startup
go to x: pick random -200 to 200
go to y: pick random -150 to 150
show # Tada! I appear!
wait 5 secs
delete this clone # Poof! Bye bye!
Use Arrow Keys! ⬆️⬇️⬅️:emoji:️
# Hero Movement Magic
when up arrow pressed
change y by 10 # Jump up!
when down arrow pressed
change y by -10 # Duck down!
when left arrow pressed
change x by -10 # Run left!
when right arrow pressed
change x by 10 # Run right!
:bulb: Did You Know? :emoji:
The arrow keys control games! Just like a game controller! :video_game:
Step One: Make a "score" variable! :bar_chart:
Step 2: Start at 0 points! 🆕
When You Catch a Star! ⭐
# Star's Happy Code
when occurs touching Player
change score by 10 # Yay! 10 points!
delete this clone # Star collected!
When Enemy Catches You! :emoji:
# Enemy's Sneaky Code
when occurs touching Player
change score by -5 # Ouch! Lose 5!
delete this clone # Enemy disappears!
You Win! :tada:
# Victory Dance!
when occurs score > 100
say "You Win! Amazing!" for 3 secs
stop all # Game ends!
Game Over! :emoji:
# Try Again!
when occurs score < -20
say "Game Over! Try again!" for 3 secs
stop all # Game ends!
:bulb: Did You Know? :emoji:
Most games have 3 lives! But you can change it! :video_game::emoji::emoji::emoji:
Make It Sparkle! :star2:
Add Fun Sounds! :emoji:
Easy Mode (For Beginners!) :emoji:
Medium Mode (Getting Better!) :emoji:
Hard Mode (You're a Pro!) :emoji:
You're now a game maker! :video_game:
You learned amazing things! :star2:
:bulb: Did You Know? :emoji:
Real game developers use these same ideas! You're learning like a pro! :video_game::emoji::computer:
You built a real game! :video_game:
Stars appear like magic! ⭐
Your score goes up and down! :bar_chart:
You made something awesome! :star2:
You're a coding superstar! :star2:
Keep creating amazing games! :rocket:
The sky's the limit! :emoji:
:emoji: CONGRATULATIONS! :emoji: