1.课程回顾 #
1.1 广播消息 #
编程知识:广播消息机制
广播用于角色之间的信息交流
![](https://dashima.net/wp-content/uploads/2021/04/1-4-1024x406.png)
1.2 坐标体系 #
Scratch中X/Y的每一个坐标代表一个单位长度。
如:小猫面向90方向移动10步,即小猫的X坐标增加10个单位。
![](https://dashima.net/wp-content/uploads/2021/04/2-6-edited.png)
1.3 碰撞侦测 #
碰到颜色积木指令用于侦测角色是否碰到某种颜色
![](https://dashima.net/wp-content/uploads/2021/04/4-3-1024x371.png)
1.4 方向控制 #
![](https://dashima.net/wp-content/uploads/2021/04/5-3-1024x486.png)
1.5 比较运算符 #
大于、小于、等于
比较运算符两边空格处可以嵌入哪些积木指令呢?
![](https://dashima.net/wp-content/uploads/2021/04/6-4-1024x296.png)
1.6 示例1 #
作品要求:
1.小猫在操场上跑步
2.小猫不能够走出操场区域
3.用方向键控制移动
4.试着用条件判断控制小猫 移动
![](https://dashima.net/wp-content/uploads/2021/04/7-2.png)
2.学习目标与任务 #
2.1 学习目标 #
![](https://dashima.net/wp-content/uploads/2021/05/image-5.png)
2.2 课堂任务 #
•魔法师只要对帽子施加咒语,就能够从帽子中变出很多漂亮的礼物。
•我们一起来完成这个奇幻的游戏吧!
![](https://dashima.net/wp-content/uploads/2021/04/9-2.gif)
2.3 作品分析 #
1 舞台上有哪些角色呢?
2 老爷爷在做什么?说了什么内容?
3 帽子中藏着什么东西?
4 这个魔术是如何实现的呢?
本节课用到的角色与背景
![](https://dashima.net/wp-content/uploads/2021/04/10-5-1024x332.png)
3.编程思路与步骤 #
3.1 编程思路 #
![](https://dashima.net/wp-content/uploads/2021/04/11-6.png)