文件名称:
Coding for Kids. Scratch.pdf
开发工具:
文件大小: 67mb
下载次数: 0
上传时间: 2019-07-21
详细说明:Coding for Kids. ScratchCoding for Kids. ScratchCoding for Kids. ScratchCoding for Kids
Scratch
Welcome
●·4··················4·······4···························.·····4···4···44·····4·····
A
nyone can code. Certainly, writing the next Minecraft or programming
complex simulations from scratch will require a deeper knowledge, but
anyone and everyone has the potential to learn some basic coding skills
then take those skills and write a simple program. This book can help
you and your kids take that potential further. Read it, follow the projects and get to
grips with the fundamentals of programming, and you and they can learn to code.
We live in a world where technology and everyday life have never been more
tightly interwoven, and that technology-the hardware websites and services we use
all the time -is dependent on software. An understanding of how that software is
made is as valuable in the 21st century as an understanding of engineering was in the
1oth and 2oth, and it's only going to grow more important.
Forget all that stuff of grave importance, though or you may miss the fact that
coding can be fun. You can make something in less than an hour, watch it work, then
go back and make it better. As long as you have a computer-and almost any laptop
or pc will do- you can build something brilliant bizarre or even useful, and the tools
Stuart Andrews is a technology journalist
specialising in PCs, games and business
wont cost you a penny. Coding is creative. It pushes your imagination, your ability to
and educational IT. He writes for a range
improvise and your ability to plan
of computing and technology magazines
Most of all, it doesn't have to be difficult. In this book, we' ll show you how you
and websites, including ICTRe
PC Pro, Cloud Pro. CcmputerActive
can use visual tools such as Scratch to build programs object by object or block by
TrusteaReviews and The Sunday Times
i block, so that kids as young as seven or eight can make their own funny animations
His first computer was a sinc air/X
or playable arcade games. While they're doing it, they 'll absorb fundamental concepts
Spectrum, but he now uses a range of
that will help them develop their skills later on. We also introduce SmallBASIC-a
tablets Chromebooks and windows 8 PCs
none of which have rubber keys. You can
simplified version of the classic coding language, which is free to use and surprisingly
follow him on twitter at osatAndrews
easy to learn. By the time this book is over, we'll have started using Visual Basic, a tool
that many professional programmers use every day.
Andrew Dixon has been
teaching IC for eight
The projects in this book are fun, so that kids and adults will enjoy making them,
years. A Computer Science
and playing them once they're done. Theyre also easy to customise, so that novice
graduate, he's always
programmers can take what we' ve put together, change it and make their own mark
had a passion for the
unlikely combination of
That's important, because programming isnt about using technology, but about taking
rogramming and playing rock guitar. He
it apart, seeing how it works and making it better. We hope that you and your kids will
is currently head of ict and Computing at
take these projects, improve them and make them your own. There's no better start on
Summerhill school in the west midland
and was nominated for teacher of the
Year in 2009. A self-confessed coding
pursuing lew and er merging technologies
甲→中4中+t
i a programmers journey.
geek and gadget junkie, Andrew is always: Stuart andrews
in education and writes regularly for /CT
Editor
Reviews and Pc Pro. You can follow him ol
Twitter at (ADXeventide
Many of the projects in this book use
Scratch. Scratch is developed by the
ng Kindergarten Group at the MiT
Media lab. See scratch.mit. edu
Coding for Kids
Scratch
Contents
口 Animal Band2
Scripts Costume
SuperStu (unshared)
Motran
16四15
LOOkS
sensing
Data
More blocks
hinkFmm. for 0
think Hmma
圃
mitc costus to costa
ext costume
witch backdrop to stagel
x3y:-132
32
sprites
New sprite./+ o change color effect by 29
set color effect to o
tox:60n)
dear graphic effects
inge stze by 10
mouse pointer 2 the
/白
go to fron
set size to100q
t instrument to 117
go to fron
67f05
k(I Layer
play note o5 for0. beats
pLay note (64 for 0.5 beal
n(costume
629for 0.5 b
Backpack
SECTION 1
20 Animate a Scratch cartoon
46 Paint with Scratch
Start coding
Make yaur own spooky cartoon
Make your own painting app
8 Why learn to code?
24 Shark ys food
52 My Scratch racing game
See why coding is a vital skill
Learn to use c ones to save you time
Take this top-cown racer for a spin
10 Introducing Scratch
28 Your first Scratch game
60 My Scratch quiz
The perfect way to start coding
Build an addictive shoot-em-up
Build your own brilliant quiz
12 Scratch basics
32 Remix the game
68 My incredible Scratch app
Taking a tour around Scratch
The game is good. Let's make it perfect
This monkey-themed timer is great fun
14 My first Scratch program
SECTION 2
72 Put yourself in the program
Say Hello World "with a magic cat
uld your sKills
Webcam graphics and motion controls
16 The animal band
40 Fun with Scratch graphics
78 Share your projects
Get interactive with this musical show
Generate amazing patterns
Showcase your work to the world
72它
甲-104
起
1 Textwindow. WrlteLine(.*ws.s.s. Hath Quiz
startLoc
3千1 ristnuDetath, GetRandoraumoer《100)
4 secondnumBath, GatRandomNunber( lee)
6 Textwindow, writeline( lhat is+ firstnum+++
Came awei
B TextHindow write( Anser:")
1. Textwindow Reack)
10
n1 If totals firstnu t secondum Then
12 Textwindow, writeLine(wellstone, correct answerI)
13E1s
a4 Textwindow, writeLine("Sorry, that is incorrect.")
E Endl
10:140
今8
AP
EARN TO CODE AS
YOU PLAYI
80 Remix your projects
98 My first SmallBASIC program
ooking for more power?
Turn Scratch projects into somethirg new Coding doesn't get any easier than this
ime to get serious about coding
82 My awesome Scratch game
100 Sentence generator
122 Building your first Basic game
Harness even more advanced techniques Make crazy sentences from scratch
Have some fun coding your first
blockbuster game
90 Your next steps in coding
04 Create your own quiz
Where next on your coding adventure?
Code your own maths quiz game
132 Building a Visual Basic app
Create a working slideshow app
SECTION 3
110 SmallBASIC graphics
BaSIC basics
Learn about SmalIBASIC's graphics
140 Where do you go next?
functions
More projects, more languages, more code
94 Introducing SmallBASIC
Take your first steps into BASIC
SECTION 4
144 GLOSSARY
The next level
All those vital coding terms defined
96 Preparing to program
stalling and using SmallBASIC
116 Introducing Visual Basic
146 RESOURCES
Chapter
Coding for Kids
Scratch
Section 1
Start
coding
●鲁●·鲁·鲁。●●鲁。●●●●费●●●鲁看··●鲁●中鲁●。●●●●●费
鲁●●●·●●·。●●●鲁●
The ability to program has never been as
you get a job Right now, this knowledge might
mportant as it is right now. In a digital age, an
seem out of reach, but with the aid of the projects
understanding of code and how it works is an
on the next few pages and an easy, graphical
incredibly useful skill. It can transform you from programming tool called scratch, were going to
someone who uses other people's software into help you through the fundamental concepts, and
someone who can make it. It can help you get to steadily teach you how to code Before you even
grips with real computing, and it can be a fun and know it, you'lI have taken your first steps into a
interesting pastime. It might even one day help world of programming and be hungry for more
N THIS SECT|oN…
Page 8 Page 10 Page 12 Page 14Page 16
Why learn
Introducing
Scratch
My first
The animal
to code?
Scratch
basics
Scratch
program
Create something i Scratch's simple Find your way
Make your sprites
brilliant with jus
arag-and-drop
around the differert i Build your first
interact with a click
a PC, screen and approach is perfect i parts of Scratch's simple Scratch
of the mouse and a
some free software for novices
ple interfa
script
i touch of the pointer
Page 20 Page 24 Page 28 Page 32
Animate a
Battle
Your first
Remix the
Scratch
Shark vs Food Scratch game game
cortoon
In this tale of
Put together
Transform your
Scratch is perfect sharkS, food and your first arcade Igame with some
for creating
vereating, we
shoot-em-up game Imusic or exciting
animations
make use of clones i in Scratch
I new graphics
Coding for Kids
Scratch
Why learn
to code?
1ee。鲁D静。。鲁电曹。。q9。。。鲁。e。。。。。鲁申鲁。自。●0e。
e。要。9鲁。鲁。鲁
In a digital age, being able to code has become a vital skill. Discover how to
create something brilliant using just a PC, a screen and free software
ode is everywhere, and not
st where you might think
When you're running apps on
a smartphone or playing games
on a console, it seems obvious that the app
you're using or the game you're playing has
been put together by programmers, using
lines of code to stitch together every last
feature, every button you tap and everything
you see on the screen, so that it all does the
ob it's meant to d
This is why learning to code is important.
It can take you from someone who can use
technology to someone who can create
technology or make amazing things with it. A Computer-generated movies exist because programmers developed
It could also be the passport to an incredible
he software to produce them and work with artists to code more lifelike
future. You could one day be helping to build or advanced effects. blender is a free 3D graphics package, developed by
the next iPhone, create a blockbuster film or hundreds of programmers working together.
help a Formula One racing team make faster
i Most importantly, coding can be fun. Often, you're any mistakes that you won't be able to fix. colle o
cars, all by using your coding skills
the result on the screen, and it's pretty hard to make
creating something brilliant froIn nothing, using
an be like solving a puzzle. You know what you want
st a computer, a screen and some free software.
to do, or that something isn't working properly, and
Change something in your program and you can see it's exciting to find a way to make it better. Whatever
you're doing, you can do something brilliant, and
make it your own
WHAT IS CODING?
What can this book do to help?
When it comes to computing, code means -is the art of writing those instructions so
This isn,'t one of those books that tells you all about
a set of written instructions for a computer, that the computer can understand them
programming but not how to do it. Nor is it one of
usually arranged in a structure called a
and the program functions as it should
those books that gives you lots of code to type in
rogram. When a user runs the program, It's also the art of arranging those
but doesnt tell you how it works or what it's doing
the code tells the computer what to show instructions so that the program works
Instcad, wcre going to take you through a scrics
on the screen how to process any data
as smoothly and as quickly as it can
of projects that will introduce the most important
that the program uses, and what to do if and doing all this in a way that other
concepts, help you use the key building blocks of
certain things happen; for example if a
programmers can follow if they need to
code, and enable you to create fun programs that
button is pressed. Programming-or coding look at or change your code
rou can then go back and change. We're going to start
off easy and slowly add the more complex
8
Start coding
programmer
e wouldn 't have
g games
目 like minecraft
earn to code, an
you might help
create the next big
g
G You might start as
千#H
the young apprentice, I
but youll finish
feeling like a coding
Jedi master
m/古西
tuff, so that you're never left drowning in a sea of
jargon, or having your mind boggled by big chunks
of code that make your eyes and brain hurt. You
can start the book knowing almost nothing, but b
the end youll feel confident enough to explore the
world of coding further. You might start as the young
apprentice, but you'll finish feeling like a coding
Jedi Master
The projects are designed so that they can be
completed by younger children with a little parental A Coding doesn' t have to be with a proper text-based programming environment.
elp, or by older children working on their own
difficult. Use easy tools like
Finally, we'll look at projects that use Visual basic
MITs Scratch and almost
Express-a free version of the same tool being used
How does it work?
anyone can
by millions of professional programmers around
Our projects kick off with Scratch-a highly visual
the world
casy-to-usc programming tool that was dcsigned to
long the way, wc'll tcll you what you'rc going to
introduce the main concepts of programming, and
learn, take each project apart, and pick out all the vital
help young novice coders build something good with
bits of code that make the program work as it should
minimum fuss. We'l then move onto smalIBASIC
or that you might want to come back to and change
a refined version of the classic coding language,
later on. After all, these aren't our fully finished
designed to get young programmers used to working
projects- they're starting points for your own. e
Coding for Kids
Scratch
ntroducing
Scratch
1ee。鲁D静。。鲁电曹。。q9。。。鲁。e。。。。。鲁申鲁。自。●0e。
e。●鲁0。。。
With a drag-and-drop approach, Scratch is the perfect way to start coding
WHAT YOULL
riginally devcloped by computer scicntists
LEARN
0山
at Americas massachusetts institute of
Technology (Mit), Scratch is a simple,
What scratch
visual programming language that you can
is and what it use to create cartoon animations. interactive stories
does
and simple games. It's designed for kids aged eight to
Hes teana bae
16, but it's a good way for someone of any age to learn
How to join in the basics of programming. While a Scratch program
and start
might not look like what youd think of as a program,
4(8)-y
using it
with its chunky blocks you drag and click together, it
till works like one and uses the basic parts that you'd
What a sprite find in a real program
is, and how
The great thing about scratch is that it takes
you usc it
away a lot of the complexity of programming and
leaves you free to think about how the program
Scratch projects are de
d for sh
othe
needs to work and what it needs to do. You dont need people s and transform them with your own'remix'projects
to worry about writing your code in the right
that your computer can undcrstand it. You just drag
It's hard to imagine a morc intuitive way to codc
blocks into the Scripts space and click them together
Scratch doesnt just give you all the building
a bit like blocks of Lego. Make a mistake and put
blocks for a program, but also a whole grab-bag of
the blocks, change, delete or move them around Fate great stuff that you can use in them. Youll find a wide
of cartoon characters to star in your program
everything from dogs and dinosaurs to ghosts, aliens
and penguins. You'll find a selection of background
ABOUT SPRITES
scenery, and a library of musical instruments, drums
and sound effects. and if Scratch doesnt have what
The most important things in any Scratch instance, when it hits another sprite
you're looking for, it's easy to import your own stuff
project are the sprites. Sprites are the
The default sprite- the one that
from your computer or use the simple, built-in tools to
characters or objects that move around
automatically appears in any new project
make new characters. scenes and sounds
or do things in your program. They're the -is the Scratch cat, but he doesn't have to
The other great thing about scratch is that you
heroes and the villains, the actors in your be the star of your program. You can use
dont have to learn on your own. The Scratch website
cartoons, the cars and spaceships that you any sprite from the large library, or make
(scratch. mit. edu/)is the centre of a huge community
might set racing around. You program
your own. The great thing about sprites is
where you can try other users' programs or get help,
the sprites do and when they do
that once you ve added one and built a
hints and tips on making your own It's also where
it by giving them instructions in scripts
script, you can duplicate it, change it and
you can eventually sharc your own programs, so
These tell your sprites what to do and
use it again in the same project, or even
that when you've made something that you're
where to go, what to say or what noise
export it- make a copy and send it out of
proud of you can let your friends and family try it
to make. They also tell your sprite what your project- so that you can use it in a
out. Plus, with millions of scratch users out there
to do when something happens -for
completely different project
ould make a name for yourself as a Scratch
ng superstar!
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.