🐱 Welcome Back! — 欢迎回来!
🇨🇳 中文
第一课里,你让小猫 说话、走路,还做了一个 接苹果 🍎 的游戏。太棒了!
今天我们做一个全世界小朋友都爱玩的游戏:点点点饼干 🍪 — 英语叫
🇬🇧 English
In Lesson 1, you made the cat talk, move, and built a Catch the Apple 🍎 game. Awesome!
Today we make a game kids everywhere love: a Cookie Clicker 🍪 — a clicker game. Click the cookie as many times as you can in 15 seconds to get a high score!
🌟 New things you'll learn — 你会学到的新东西
- 📦
Variables (变量)— 怎么记住分数和时间 / how to remember score and time - 👆 when this sprite clicked(当角色被点击)— 一个全新的开始积木 / a brand-new start block
- ⏱ A
countdown timer — 倒计时!/ a countdown timer! - 🏆 Win & lose — 游戏怎么结束 / how a game ends
🎮 Play It First! — 先玩一玩!
🇨🇳 中文
这就是我们今天要做的游戏!先玩一玩,看它怎么工作。然后我们一步一步在 Scratch 里做出来。
👆 点绿色按钮开始,然后 使劲点饼干!金色饼干 ✨ 值 5 分!
🇬🇧 English
This is the game we'll make today! Play it first to see how it works. Then we'll build it step by step in Scratch.
👆 Click the green button to start, then click the cookie fast! A golden cookie ✨ is worth 5 points!
💡 How does it work? — 它是怎么动的?
每次你点饼干,
Each click adds +1 to the score. The time goes −1 every second. At 0, the game ends. Those changing numbers are called variables.
📦 What is a Variable? — 什么是变量?
🇨🇳 中文
一个 变量(variable)就像一个 小盒子 📦,里面放一个数字。盒子上写着名字,比如 score(分数)。
你可以随时打开盒子,把里面的数字 变大 或 变小。游戏里的分数、生命、时间,全都是变量!
🇬🇧 English
A variable is like a little box 📦 that holds a number. The box has a name, like score.
You can open the box any time and make the number bigger or smaller. Score, lives, and time in a game are all variables!
Make a variable — 做一个变量
在 橙色 的 score。
In the orange Variables category, click Make a Variable and name it score.
These are the variable blocks — 这些是变量积木
set ... to 0 = 把盒子里的数字 设成 0(清零)。
change ... by 1 = 把数字 加 1。change by -1 就是 减 1。
🍪 Build the Cookie Clicker — 动手做点饼干游戏
🇨🇳 中文
打开 scratch.mit.edu,点 Create。我们开始做游戏!
🇬🇧 English
Open scratch.mit.edu and click Create. Let's build the game!
Add a Cookie sprite — 加一个饼干角色
删掉小猫(或者留着当帮手)。点右下角 Choose a Sprite,找一个 食物 🍪 当饼干。再选一个漂亮的
Click Choose a Sprite and pick a food like a cookie 🍪. Then choose a fun backdrop.
Start the game: set score to 0 — 开始时分数清零
点 饼干,加这些积木:
点绿旗的时候,分数从 0 开始。/ When the flag is clicked, score starts at 0.
The magic block: when this sprite clicked — 神奇的积木:当角色被点击
这是 全新的 黄色
意思:每次
Each time you click the cookie → score +1, and play a "pop" sound.
Make the cookie squish — 让饼干"压一下"
好玩的小动画!在上面那串积木后面再加 紫色 的
饼干变小一点点,等 0.1 秒,再变回来 — 看起来像被你"压"了一下!/ The cookie shrinks, waits, then grows back — it looks like you squished it!
🎉 你的游戏可以点了!— Your game can be clicked!
点绿旗 🚩,再点饼干。看分数往上加!现在加一个倒计时让它更刺激 👇
Click the flag, then the cookie. Watch the score go up! Now add a timer below 👇
⏱ Add a Countdown Timer — 加一个倒计时
🇨🇳 中文
没有时间限制的游戏不刺激!我们再做一个变量叫 time(时间),从 15 开始,每秒减 1。到 0 就
🇬🇧 English
A game with no time limit isn't exciting! We'll make a variable called time, start it at 15, and take away 1 each second. At 0, it's game over.
Make a "time" variable — 做一个 time 变量
和刚才一样,Make a Variable,名字叫 time。
Count down with repeat — 用 repeat 倒数
点 背景(Stage)或饼干,加这串积木。橙色 的 repeat 15 会 重复 15 次:
wait seconds
change by
意思:时间设成 15,然后重复 15 次:等 1 秒,时间 −1。/ Set time to 15, then 15 times: wait 1 second, time −1.
Game over! — 游戏结束!
倒数完了(repeat 结束后),加这两块说出最后的分数,然后停下所有积木:
stop all = 停下整个游戏,不能再点了。/ stop all freezes the whole game so you can't click anymore.
🧪 Try it! — 试一试!
点绿旗 🚩 → 时间从 15 开始倒数 → 你拼命点饼干 → 时间到 0 → 看你的最后分数!
Click the flag → the timer counts down from 15 → click like crazy → at 0, see your final score!
👆 上面那个游戏就是这样做的 — 回去玩玩看!/ The game at the top works exactly like this — scroll up and play it!
✨ Make it Even Better — 让游戏更好玩
🇨🇳 中文
真正的程序员会一直让游戏更好玩。试试这些点子,每一个都很简单!
🇬🇧 English
Real programmers keep making their game better. Try these ideas — each one is easy!
金色饼干
pick random 1 to 10。如果 = 1,change score by 5 并变金色!Use
pick random. If it's 1, score +5 and turn gold!好吃的声音
Chomp 或 Pop 声音。Play a
Chomp or Pop sound on each click.加油的小猫
Add the cat back; have it say "Wow!" at game over.
最高分
best 变量。if score > best 就 set best to score。Make a
best variable and save your top score.更难的模式
time 改成 10 秒,更刺激!Change
time to 10 seconds for a challenge!坏饼干
change score by -3 的坏饼干,别点到它!Add a bad cookie that takes away points — don't click it!
🌟 这就是真正的编程!— This is real programming!
开始很简单,然后一点一点加新东西。每加一个,你的游戏都更厉害!
Start simple, then add one new thing at a time. Each one makes your game cooler!
🎬 Bonus: A Cartoon Story — 加映:一个卡通小故事
🇨🇳 中文
Scratch 还能讲故事!这个卡通的套路和 《喜羊羊与灰太狼》、《熊出没》 一样 —— 一只饿坏了的大坏蛋想吃掉聪明的小动物,结果被耍得团团转,最后举着拳头喊那句经典台词:"我一定会回来的!"
故事在清迈的河边:老虎想吃掉小
🇬🇧 English
Scratch can tell stories too! This cartoon borrows the framework of China's favourite cartoons (Pleasant Goat & Big Big Wolf, Boonie Bears): a hungry villain schemes to eat clever little prey, gets outwitted, and shakes his fist — "I'll be back!"
The story: by a Chiang Mai river, a tiger wants to eat Kati the mouse-deer. Kati points at the moon's reflection — "Look, a giant rice cake!" The greedy tiger leaps in… SPLASH! Soaked. Kati waves goodbye. Small but clever!
Kati the Clever Mouse-deer — 聪明的小鼷鹿卡迪
A hungry tiger meets a clever mouse-deer by a Chiang Mai river. Who wins? Watch and see!
清迈河边,饿老虎遇上聪明的小鼷鹿。谁赢?看了就知道!
🎵🔊 With music & spoken Chinese! 有音乐,还会念中文!
The story trick: broadcast and wait — 讲故事的秘密:broadcast and wait
一个故事有很多场景,要一个接一个地演。"broadcast … and wait"(广播并等待)就像
每个角色用 when I receive … 接住自己的场景。老虎落水时还换造型(next costume:干 → 湿),角色用 glide 滑进滑出 —— 一个真正的小故事!
Each sprite catches its scene with when I receive …. The tiger changes costume (dry → wet) when he falls in, and characters glide on and off — a real little story!
The music: play note … for … beats — 音乐:play note … for … beats
音乐是用 Music(音乐)积木做的 —— 不是录音!一段
play note for beats
play note for beats
这些绿色积木在 Music 扩展里 —— 点左下角 Add Extension(添加扩展)→ Music 就能用。旋律在背景(Stage)上循环,所以整个故事都有配乐。
The green blocks are the Music extension — add it from the Add Extension button (bottom-left). The melody loops on the Stage, so it plays under the whole story.
🔊 角色还会用 Text to Speech(文字转语音)扩展念出中文:先 set language to 中文 (Chinese),再用 speak [中文] 积木。老虎是低沉的 giant 嗓音,卡迪是尖尖的 squeak 嗓音!
The characters also speak the Chinese aloud with the Text to Speech extension: set language to Chinese, then use speak [中文]. The tiger gets a deep giant voice, Kati a high squeak voice — so each line is read out for listening practice!
📂 How to open it — 怎么打开
1️⃣ 打开 scratch.mit.edu → Create。2️⃣ File 文件 → Load from your computer 从电脑上传。3️⃣ 选 cartoon_clever_mousedeer.sb3。4️⃣ 点绿旗 🚩 看故事!
Open scratch.mit.edu → Create → File → Load from your computer → pick the file → click the green flag 🚩 to watch the story!
📚 New English Words — 新的英语单词
🇨🇳 中文
做点饼干游戏时常用的英语词。点单词听发音!🔊
🇬🇧 English
English words you use when making a clicker game. Click any word to hear it!
装数字的小盒子,数字会变。
玩游戏得到的分。
用鼠标按一下。
还剩多少秒。
倒着数:3、2、1,开始!
做几次同样的事。
把数字变大或变小。
把盒子里的数字定成某个值。
让所有东西停下来。
猜不到的、随便的数字。
角色后面的图片。
游戏玩完了。