动手玩转Scratch2.0编程pdf

下载地址:网盘下载

内容简介

编辑

Scratch 是可视化的编程语言,其丰富的学习环境适合所有年龄阶段的人。利用它可以制作交互式程序、富媒体项目,包括动画故事、读书报告、科学实验、游戏和模拟程序等。《动手玩转Scratch2.0编程—STEAM创新教育指南》的目标是将Scratch 作为工具,教会读者最基本的编程概念,同时揭示Scratch 在教学上的强大能力。

《动手玩转Scratch2.0编程—STEAM创新教育指南》共分9 章,前三章讲解如何使用Scratch 绘制几何图形,并创建富媒体应用程序,其余章节使用Scratch 讲解各个编程概念。每一章都有许多完整的案例,读者可以模仿它们制作许多类似的程序。当读完整《动手玩转Scratch2.0编程—STEAM创新教育指南》后,相信你一定可以亲自完成各种编程项目。

《动手玩转Scratch2.0编程—STEAM创新教育指南》假定读者没有任何编程基础。《动手玩转Scratch2.0编程—STEAM创新教育指南》内容的难度基本不会超过高中数学,个别有难度的模拟程序可以先行跳过[1]

目录

编辑

致谢....................................................................................................V

本书介绍...........................................................................................VII

第1章 准备开始.................................................................................1

什么是 Scratch ..................................................................................2

Scratch 编程环境 ..............................................................................3

试一试 1-1 ......................................................................................3

舞台 .........................................................................................................4

角色列表 .................................................................................................5

试一试 1-2 ......................................................................................5

试一试 1-3 ......................................................................................6

积木区 .....................................................................................................7

试一试 1-4 ......................................................................................8

脚本区 .....................................................................................................8

试一试 1-5 ......................................................................................9

试一试 1-6 ....................................................................................10

造型标签页 ...........................................................................................10

声音标签页 ...........................................................................................11

试一试 1-7 ....................................................................................11

试一试1-8 ....................................................................................12

背景标签页 ...........................................................................................12

角色信息 ...............................................................................................13

试一试 1-9 ....................................................................................13

工具栏 ...................................................................................................14

绘图编辑器 ......................................................................................15

设置图像的中心 ...................................................................................15

试一试 1-10 ..................................................................................16

设置透明色 ...........................................................................................16

制作第一个 Scratch 游戏 .................................................................17

第一步:准备背景 ...............................................................................18

第二步:加入反弹板和小球 ...............................................................18

第三步:让角色动起来 .......................................................................19

试一试 1-11 ..................................................................................20

第四步:添加声音更有趣 ...................................................................21

Scratch 积木一览 ............................................................................22

算术运算符和函数 ...........................................................................23

算术运算符 ...........................................................................................23

随机数 ...................................................................................................24

数学函数 ...............................................................................................25

本章小结 ..........................................................................................25

练习题 .............................................................................................25

第2章 动作和绘图...........................................................................29

使用动作模块的积木 ........................................................................29

绝对动作 ...............................................................................................30

试一试 2-1 ....................................................................................31

相对动作 ...............................................................................................32

试一试 2-2 ....................................................................................34

其他动作积木 .......................................................................................34

画笔模块和一个简单的画图程序 ......................................................35

试一试 2-3 ....................................................................................36

神奇的重复执行 ...............................................................................37

试一试 2-4 ....................................................................................37

旋转的正方形 .......................................................................................39

试一试 2-5 ....................................................................................39

试一试 2-6 ....................................................................................40

图章积木 ...............................................................................................40

Scratch 项目 ....................................................................................41

猫咪收集钱袋 .......................................................................................41

试一试 2-7 ....................................................................................41

接苹果游戏 ...........................................................................................45

关于被克隆的角色 ...........................................................................48

本章小结 ..........................................................................................49

练习题 .............................................................................................50

第3章 外观和声音...........................................................................53

外观模块 ..........................................................................................54

切换造型创建动画 ...............................................................................54

试一试 3-1 ....................................................................................55

试一试 3-2 ....................................................................................56

让角色思考并说话 ...............................................................................56

图形特效 ...............................................................................................57

角色大小和可视状态 ...........................................................................57

试一试 3-3 ....................................................................................58

角色间的图层 .......................................................................................58

声音模块 ..........................................................................................59

播放音频文件 .......................................................................................59

试一试 3-4 ....................................................................................59

弹奏鼓声和其他声音 ...........................................................................60

创作音乐 ...............................................................................................61

试一试 3-5 ....................................................................................62

试一试 3-6 ....................................................................................62

控制音量 ...............................................................................................62

设计 .......................................................................................................62

Scratch 项目 ....................................................................................63

在舞台上跳舞 .......................................................................................63

烟花效果 ...............................................................................................67

本章小结 ..........................................................................................69

练习题 .............................................................................................69

第4章 过程......................................................................................73

消息的广播和接收 ...........................................................................74

发送消息和接收消息 ...........................................................................75

使用广播机制协调多个角色 ...............................................................76

将大型程序分而治之 ........................................................................78

使用广播模拟过程 ...............................................................................80

创建自己的积木块 ...............................................................................81

给积木块添加参数 ...............................................................................83

试一试 4-1 ....................................................................................87

过程的嵌套 ...........................................................................................88

试一试 4-2 ....................................................................................90

分析问题的思维方式 ........................................................................90

自顶向下分析 .......................................................................................91

试一试 4-3 ....................................................................................93

自底向上分析 .......................................................................................94

本章小结 ..........................................................................................96

练习题 .............................................................................................96

第5章 变量......................................................................................99

Scratch 的数据类型 .......................................................................100

参数凹槽与积木形状 .........................................................................100

数据类型的自动转换 .........................................................................101

变量详解 ........................................................................................102

什么是变量? .....................................................................................102

创建并使用变量 .................................................................................105

试一试 5-1 ..................................................................................108

变量的作用范围 .................................................................................108

修改变量的值 ......................................................................................111

绘制蜘蛛网 .........................................................................................112

绘制风车 .............................................................................................112

克隆体中的变量 .................................................................................113

试一试 5-2 ..................................................................................113

变量值显示器 .................................................................................116

在程序中使用变量值显示器 ............................................................117

欧姆定律模拟实验 .............................................................................117

串联电路模拟实验 .............................................................................119

试一试 5-3 ..................................................................................119

计算球体体积和表面积 ....................................................................121

试一试 5-4 ..................................................................................121

绘制玫瑰花瓣 .....................................................................................123

试一试 5-5 ..................................................................................123

葵花籽分布模型 .................................................................................125

试一试 5-6 ..................................................................................125

获得用户输入 ................................................................................127

读取数字 .............................................................................................127

试一试 5-7 ..................................................................................127

读取字符 .............................................................................................128

执行算术运算 .....................................................................................128

本章小结 ........................................................................................129

练习题 ...........................................................................................129

第6章 用逻辑做决定......................................................................133

比较操作符 ....................................................................................134

布尔表达式的求值 .............................................................................136

比较字符和字符串 .............................................................................136

分支结构 ........................................................................................138

如果…那么积木块 .............................................................................138

将变量作为标志 .................................................................................139

如果…那么否则积木 .........................................................................141

嵌套分支结构 .....................................................................................142

菜单驱动程序 .....................................................................................143

逻辑运算符 ....................................................................................144

且操作符(and) .................................................................................145

或操作符(or) ...................................................................................146

不成立操作符(not) ..........................................................................147

使用逻辑运算符检查数值范围 .........................................................148

Scratch 项目 ..................................................................................150

坐标猜测游戏 .....................................................................................150

试一试 6-1 ..................................................................................152

三角形分类游戏 .................................................................................152

试一试 6-2 ..................................................................................156

猫咪巡线 .............................................................................................156

试一试 6-3 ..................................................................................157

求解直线方程 .....................................................................................158

试一试 6-4 ..................................................................................162

其他应用程序 .....................................................................................162

本章小结 ........................................................................................162

练习题 ...........................................................................................162

第7章 深入循环.............................................................................165

循环结构 ........................................................................................166

重复执行直到积木 .............................................................................166

试一试 7-1 ..................................................................................168

将重复执行和如果…那么结合 .........................................................168

试一试 7-2 ..................................................................................169

停止积木 ........................................................................................170

试一试 7-3 ..................................................................................171

结束过程调用 .....................................................................................172

验证用户输入 .....................................................................................173

循环计数器 ....................................................................................174

密码验证 .............................................................................................174

灵活的循环计数 .................................................................................175

试一试 7-4 ..................................................................................175

循环的嵌套 ....................................................................................177

递归:调用自身的过程 ..................................................................179

试一试 7-5 ..................................................................................179

Scratch 项目 ..................................................................................181

模拟时钟 .............................................................................................181

试一试 7-6 ..................................................................................181

小鸟射击游戏 .....................................................................................183

试一试 7-7 ..................................................................................183

自由落体实验 .....................................................................................187

试一试 7-8 ..................................................................................187

试一试 7-9 ..................................................................................190

抛体运动模拟器 .................................................................................190

其他应用程序 .....................................................................................193

本章小结 ........................................................................................193

试一试 7-10 ................................................................................193

练习题 ...........................................................................................194

第8章 字符串处理.........................................................................197

字符串数据类型 .............................................................................198

特殊字符统计 .....................................................................................198

字符比较 .............................................................................................199

字符串操作示例 .............................................................................201

Igpay Atinlay .......................................................................................201

试一试 8-1 ..................................................................................201

单词修正 .............................................................................................203

试一试 8-2 ..................................................................................203

解密游戏 .............................................................................................205

试一试 8-3 ..................................................................................205

Scratch 项目 ..................................................................................208

射击游戏 .............................................................................................208

二进制数到十进制数转换 .................................................................211

试一试 8-4 ..................................................................................211

试一试 8-5 ..................................................................................212

试一试 8-6 ..................................................................................214

刽子手游戏 .........................................................................................214

试一试 8-7 ..................................................................................219

分数运算教学工具 .............................................................................220

试一试 8-8 ..................................................................................224

本章小结 ........................................................................................225

练习题 ...........................................................................................225

第9章 链表....................................................................................227

Scratch 的链表 ..............................................................................228

创建链表 .............................................................................................228

试一试 9-1 ..................................................................................230

链表的积木 .........................................................................................231

添加和删除 .........................................................................................231

插入和替换 .........................................................................................231

获得链表中的变量 .............................................................................232

包含积木 .............................................................................................233

边界检查 .............................................................................................233

试一试 9-2 ..................................................................................233

动态链表 ........................................................................................234

向链表填充用户输入 .........................................................................234

绘制柱状图 .........................................................................................236

数字链表 ........................................................................................239

寻找最值 .............................................................................................239

试一试 9-3 ..................................................................................239

试一试 9-4 ..................................................................................240

计算平均数 .........................................................................................240

搜索和排序 ....................................................................................241

线性搜索 .............................................................................................241

试一试 9-5 ..................................................................................241

频数统计 .............................................................................................242

试一试 9-6 ..................................................................................244

冒泡排序 .............................................................................................244

试一试 9-7 ..................................................................................246

寻找中位数 .........................................................................................247

Scratch 项目 ..................................................................................248

我是诗人 .............................................................................................248

四边形分类游戏 .................................................................................249

试一试 9-8 ..................................................................................249

试一试 9-9 ..................................................................................251

数学魔法师 .........................................................................................252

花的结构测验 .....................................................................................255

试一试 9-10 ................................................................................255

其他应用程序 .....................................................................................257

试一试 9-11 ................................................................................257

本章小结 ........................................................................................258

练习题 ...........................................................................................258

附录A 分享与合作..........................................................................261

创建 Scratch 账号 .........................................................................261

使用书包功能 ................................................................................264

创建项目 ........................................................................................266

创建新的项目 .....................................................................................266

项目再创作 .........................................................................................267

项目页 .................................................................................................268

分享项目 .............................................................................................268[1]

下载地址:网盘下载

原文地址:https://www.cnblogs.com/longgg/p/8419289.html

时间: 2024-10-06 11:10:59

动手玩转Scratch2.0编程pdf的相关文章

Django学习《玩转Django 2.0》PDF+代码分析

Python是当前热门的开发语言之一,它有着广泛的应用领域,在网络爬虫.Web开发.数据分析和人工智能等领域都受到开 发者的热爱和追捧.现在很多企业开始使用Python作为网站服务器的开发语言,因此掌握Web开发是Python开发者必不可少 的技能之一. Django是Python开发网站的首选Web框架,这归功于Django较强的规范性,规范了开发人员的编码要求,以符合企业的规范化 管理.正因如此,Django成为开发人员必学的Web框架之一. 学习Python Web技术,以Python 3

Scratch2.0入门介绍

Scratch2.0入门介绍 [教学目标] 1. 演示Scratch2.0作品,激发学习兴趣. 2. 认识Scratch2.0界面及分享平台 3. 了解创作作品的步骤 [教学课时]      15分钟 [对象]      零基础中小学生及父母 [教学重点.难点]      教学重点:Scratch2.0编辑器的下载与安装.在线注册用户 [教学方法与手段]      演示法.自主探究学习法 [教学准备] 教学课件 [教学过程] 一. 创设情境,激发兴趣 演讲者:看见电视里的动画.或者别人制作的游戏

Playground动手玩 (在OSx 10.9.3 、Xcode 6 beta环境下测试playground,只能用Swift语言)

0 本文的程序例子 先说说代码例子,文章最后面有个程序,直接将代码拷贝到新建的playground文件中,就可以这样展示和调试了 普通的代码编写过程中直接就在右栏中显示执行结果,点击执行结果右边有两个小图标,一个眼睛的图标,可以直观看到图形或数值(当前状态),另外一个是+号,可以回溯历史数据和变量之间的相关性. 点击+号就可以看到上面的跷跷板和变量执行图,还有右下角的时间轴,可以手动拖放回滚. 1.什么是playground?playground是Xcode的新的调试程序的一个工具,它提供灵活的

从零单排之玩转Python安全编程(II)

转自:http://www.secpulse.com/archives/35893.html 都说Python大法好,作为一名合格的安全从业人员,不会几门脚本语言都不好意思说自己是从事安全行业的. 而Python是最容易入门且使用最顺手的脚本语言,为了不引起程序员世界大战,我们不说Python是世界上最好的语言,没有之一. 这是<从零单排之玩转Python安全编程>的第二篇.第一篇参见安全脉搏<从零单排之玩转Python安全编程(I)> 本教程继续展示一些基本的Python脚本概念

iOS开发——图形编程OC篇&amp;OpenGL ES2.0编程步骤

OpenGL ES2.0编程步骤 OpenGL ES (OpenGL for Embedded Systems) 是 OpenGL 三维图形 API 的子集,针对手机.PDA和游戏主机等嵌入式设备而设计.该API由Khronos集团定义推广,Khronos是一个图形软硬件行业协会,该协会主要关注图形和多媒体方面的开放标准. 1. 保存全局变量的数据结构 以下例子程序均基于Linux平台. 1 typedef struct _escontext 2 { 3 void* userData; // P

[从玩游戏来理解编程]关于面向对象编程的浅解(1)

我最近在玩星际争霸2,感觉到面向对象真是太重要了.有三个种族,每个种族有自己的兵种,一个兵种就是一个类,而且他们的父类都是一个类. 每个单位都有自己的属性和技能,之前学习的c语言是面向过程的,慢慢的也理解到了面向对象在某些地方的重要性. 之前都是在学习算法,实现上用的c语言,看不出来到底有什么区别,反而在用c来的更简洁和更快,最近慢慢的接触到小项目之类的什么的就慢慢感觉到面向对象的重要性. 最近在看一本书叫<making games with python and pygame>,这本书很好,

Scratch2.0例—接苹果

Scratch2.0例—接苹果 [教学目标] 1. 学习例子,能用和构造条件 ,并把此条件插入到 中:能理解和应用,当条件成立时,不执行积木内的脚本. 2. 对比和 两个积木:前者用于无条件的重复执行:后者用于重复执行积木内脚本,直到条件成立时不执行积木内脚本. 3. 学习例子,能把 侦测条件插入到积木中:控制角色当按下左键时,执行积木内的脚本:能理解 ,当条件成立时,执行积木内的脚本. 4. 学会用和控制角色的移动. 5.学习例子,会新建变量并使用. [教学课时]          1 [对象

Scratch2.0例-妈妈跳舞

Scratch2.0例-妈妈跳舞 [教学目标] 1. 模仿制作妈妈跳舞作品.并分享到网上. 2. 通过制作作品过程,认识scratch2.0界面. 3. 着重理解角色.造型二者联系,脚本执行. [教学课时]      1 [对象]      零基础中小学生及父母 [教学重点.难点]      教学重点是演示妈妈跳舞的制作过程:难点是对脚本的理解.        [教学方法与手段]      演示法.练习法 [教学准备] 教学课件 [教学过程] 一. 创设情境,引出主题 演讲者:今天咱来创作一个作

Scratch2.0在线注册用户并使用帮助

[教学目标] 1.在Scratch2.0中注册一个账号 2.登录后,进行再线学习 3.利用帮助进行自主学习,了解Scratch作品的创作过程. [教学过程] 一.注册用户 第一步:https://scratch.mit.edu/,打开官网,点“加入Scratch社区”. 注意:默认官网是英文的,你只需在网站底部选择为简体中文,就可以变成中文版的了. 第二步:输入用户名.密码进行注册. 第三步:注册成功后,点登录后,显示的界面. 二.登录后,在线创作作品 2-1:登录后,选择 我的项目中心,如下图