1 认识Scratch #
1.1 Scratch简历 #
Scratch由麻省理工学院的媒体实验室终生幼儿园团队设计并制作,是专门为青少年研制的一种可视化编程语言。
编写Scratch代码,实际上就是将多个积木(也叫作功能块或积木指令)组合在一起,实现想要达成的目的。
![](https://dashima.net/wp-content/uploads/2021/05/image-71-1024x177.png)
Scratch可以实现各种有趣的编程作品,如绘画、音乐、故事短片,也可以制作精良的电脑游戏,如太空飞翔、迷宫
游戏、五子棋等。此外还能够解决一些学习中的具体问题,如中英文朗读与翻译、数学运算等等。
![](https://dashima.net/wp-content/uploads/2021/04/image1.gif)
![](https://dashima.net/wp-content/uploads/2021/04/image10.png)
![](https://dashima.net/wp-content/uploads/2021/04/image8.png)
1.2 Scratch编程模式 #
两种使用模式:
1.线上模式:https://scratch.mit.edu/在线编程创建作品;
![](https://dashima.net/wp-content/uploads/2021/05/image-73.png)
2.线下模式:下载离线编辑器
![](https://dashima.net/wp-content/uploads/2021/05/image-72.png)
1.3 基本界面 #
界面与功能
1-菜单栏
2-代码区
3-脚本区
4-舞台区
5-角色区
6-背景选择区
7-扩展区
![](https://dashima.net/wp-content/uploads/2021/04/image12-1024x658.png)
1-菜单栏 2-代码区
![](https://dashima.net/wp-content/uploads/2021/04/image-103.png)
![](https://dashima.net/wp-content/uploads/2021/04/image15.png)
造型编辑区、声音编辑区
![](https://dashima.net/wp-content/uploads/2021/04/image16.png)
![](https://dashima.net/wp-content/uploads/2021/04/image17.png)
3-舞台区 4-角色区
![](https://dashima.net/wp-content/uploads/2021/04/image18.png)
![](https://dashima.net/wp-content/uploads/2021/04/image19.png)
![](https://dashima.net/wp-content/uploads/2021/05/image-75.png)
5-背景区
![](https://dashima.net/wp-content/uploads/2021/05/image-76.png)
2.学习目标与任务 #
2.1 学习目标 #
![](https://dashima.net/wp-content/uploads/2021/05/image-74.png)
2.2 课堂练习 #
新建一个文件夹–Scratch趣味编程
新建并保存作品,命名为(1-认识scratch或者按日期命名。)
在脚本区练习拖拽积木。
2.3 课堂任务 #
1.制作一个小猫的自我介绍动画。小猫从舞台左边走到舞台中间,然后开始自我介绍。
![](https://dashima.net/wp-content/uploads/2021/05/image-77.png)
2.再选择一个角色,等小猫介绍完自己后,该角色进行自我介绍。
![](https://dashima.net/wp-content/uploads/2021/05/image-78.png)
3.编程思路与步骤 #
3.1 积木指令 #
积木指令、发出指令&接收指令 积木指令是以积木的形式展现出来的指令,
积木指令可以作用于接收指令的主体,让接收指令的主体根据积木指令的内容执行。
![此图像的alt属性为空;文件名为image24.png](https://dashima.net/wp-content/uploads/2021/04/image24.png)
![此图像的alt属性为空;文件名为image26.png](https://dashima.net/wp-content/uploads/2021/04/image26.png)
3.2 顺序结构 #
定义–按照一定顺序进行多个任务处理的程序结构。
下边的程序从第一个积木块开始向下发出指令,
第二个积木块接收到指令后运行,再向下发出指令,直至全部结束。
![此图像的alt属性为空;文件名为image27.png](https://dashima.net/wp-content/uploads/2021/04/image27.png)
3.3 编程步骤1 #
任务1:小猫向舞台中间走了几步,然后向大家说“你好,我是……”
![](https://dashima.net/wp-content/uploads/2021/05/image-79.png)
![](https://dashima.net/wp-content/uploads/2021/04/image29.png)
3.4 编程步骤2 #
任务2:小猫说完“你好,我是……”后,大象说“你好,我是……”
![](https://dashima.net/wp-content/uploads/2021/04/image35.png)
4.问答与练习 #
Q1:小鹏发现小猫走的很不真实,找找错误吧!
![此图像的alt属性为空;文件名为image36.png](https://dashima.net/wp-content/uploads/2021/04/image36.png)
Q2:小鹏发现未等小猫介绍,大象就开始说话了,找找错误吧!
![此图像的alt属性为空;文件名为0000.png](https://dashima.net/wp-content/uploads/2021/04/0000.png)
课后练习 #
让小猫在舞台上行走一段距离后,换一个背景吧。