內容簡介
本書第1章介紹Scratch,以及它能夠實現的內容;然後引出第2章Scratch 3.0的界面知識與操作方法,介紹Scratch 3.0的一些基本操作;接著在第3~6章以案例形式介紹了Scratch 3.0在動畫製作、遊戲設計、數學編程、硬體編程4個方面的實現方法和步驟;第7章介紹Scratch官方社區的相關內容。
本書適合國小到高中階段初次接觸編程的少年兒童學習,既可以作為他們自學編程的入門教材,也可以作為一般培訓機構的少兒編程入門教材。讀者可以從Scratch圖形化編程入手,首先了解計算機編程的一些基本概念,以便後續學習與理解高級程式語言。
作者簡介
艾達,畢業於浙江大學,在國內知名網際網路公司從事人工智慧領域工作多年,對少兒編程有著自己獨特的教學方法和框架體系,希望通過本書啟蒙對人工智慧感興趣的青少年兒童。
圖書目錄
第 1 章 一起進入 Scratch 的世界
1.1 Scratch 是什麼2
1.2 Scratch 能做什麼3
1.3 Scratch 怎樣用 3
1.4 本章小結 7
第 2 章 認識 Scratch 3.0 界面
2.1 固定顯示區域:選單欄、舞台區、角色區 ··································· 11
2.1.1 選單欄 ·········································································· 11
2.1.2 舞台區 ·········································································· 12
2.1.3 角色區 ·········································································· 15
擴展知識點 平面直角坐標系 ···················································· 19
2.2 切換顯示區域:代碼區、背景區、造型區、聲音區 ······················· 19
2.2.1 代碼區 ·········································································· 20
2.2.2 背景區 ·········································································· 25
擴展知識點 矢量圖和點陣圖 ······················································· 29
2.2.3 造型區 ·········································································· 30
2.2.4 聲音區 ·········································································· 33
2.3 本章小結 ············································································ 37
第 3 章 Scratch 3.0 動畫製作
3.1 什麼是動畫··········································································· 40
3.2 動畫製作的基本步驟······························································· 40
擴展知識點 程式流程圖 ······················································· 41
3.3 案例 1 :小豬佩奇的故事 ····················································· 43
課前小練習: 旋轉的小星星···················································· 43
3.4 案例 2 :超級火柴人 ··························································· 50
課前小練習: 繪製一個角色多個造型········································ 50
課後思考題: 超級火柴人編程新思路········································ 58
3.5 案例 3 :煙花雨 ································································· 59
課前小練習: 克隆小蘋果······················································· 59
3.6 本章小結 ············································································ 65
第 4 章 Scratch 3.0 遊戲設計
4.1 遊戲設計的基本步驟······························································· 68
4.2 案例 1 :貓抓老鼠遊戲 ························································ 68
4.3 案例 2 :托板球遊戲 ··························································· 75
課後思考題: 托板球遊戲難度升級 ········································· 82
4.4 案例 3 :空戰 ···································································· 82
課後思考題: 空戰遊戲難度升級 ············································ 94
4.5 本章小結 ············································································ 95
第 5 章 Scratch 3.0 數學編程
5.1 數學編程基本步驟 ································································· 98
5.2 案例 1 :幾何圖形面積計算 ·················································· 99
擴展知識點 計算機變數 ····················································· 103
課後思考題: 擴展其他幾何圖形計算 ···································· 111
5.3 案例 2 :求解方程····························································· 113
課後思考題: 求解二元一次方程組 ······································· 119
5.4 案例 3 :製作計算器 ··························································120
擴展知識點 自製積木代碼 ···················································123
課後思考題: 更改計算器的顯示方式 ···································· 131
5.5 本章小結 ·········································································· 131
第 6 章 Scratch 3.0 硬體編程
6.1 什麼是硬體編程··································································· 134
6.2 Scratch 3.0 配套硬體介紹···················································· 134
6.2.1 樂高 EV3 套件 ····························································· 134
6.2.2 WeDo 2.0 套件 ····························································135
6.3 本章小結 ···········································································135
第 7 章 Scratch 線上學習網站
7.1 Scratch 官方社區 ······························································· 138
7.2 其他編程學習網站································································ 139