But it turns out though simple, though, some of these puzzle pieces actually are, we can actually start to do very interesting things very quickly.
虽然这些,拼图确实简单,但是我们可以很,迅速地利用它们。
On the left hand side is my palette of puzzle pieces or building blocks and those are the things.
在左边是拼图的调色板,或者建筑模块之类的东西。
And this puzzle piece here colored in blue because it's a Boolean expression is just something that--whose answer is either a yes or no, 0 true or false, one or zero.
这个拼图染成蓝色,因为它是布尔表达式,它的结果只可能是肯定或否定,对或错,1或者。
Anything where you're actually keeping track of something like a score that's having a variable that you increment -- plus, plus, or decrement, minus, minus, using the appropriate puzzle piece could certainly be compelling.
你需要保存像分数这样的事物时,你就需要一个变量,它可以自加,++,或者自减,要使用正确的拼图。
You can say if this is true, then go and do the following pieces of code or puzzle pieces that are inside this part of the block, else go ahead and do these that are down here.
你可以说如果条件成立,执行下面的代码段,或板块中的拼图,否则跳过去执行这下面的语句。
We'll shape like a puzzle piece that will allow me to go to the looks palette at top left and it's pretty self-explanatory.
我们将制作出一个拼图,让我去寻找左上角的调色板,它非常明显。
And if I want to detach it, I just click and drag, and now I can go back and put different puzzle pieces there altogether.
另外,假如我想分离它,我只需要单击并拖动,然后就可以回到过去那个状态,再继续把不同的拼图放到一起。
So on the left hand side of this particular languages environment I have some puzzle pieces and they are shaped and colored ; in a manner that hints out their functionality; any blocks that tell the Cat as we'll see in a moment, what to do something happen to be orange.
在这个程序语言界面的左手边有一些拼图,他们的形状和颜色代表他们的功能,我们马上就能看到;,任何一个给计算机发出指令的图块,都是橙色的。
We'll notice, it's just a few puzzle pieces.
注意,这里只有一些拼图。
And so when you start to poke around the puzzle pieces, you see that it can say things, we'll see movement in just a moment and sound and so forth, but at the end of the day, this is just like the program we used a moment ago for the sock exercise where we just hold Philip a step after step after step, do this, do this, do that, and yet, here too, we already see an opportunity for that thing we called the loop.
如果你认真看下这些拼图,你会发现它都是一些移动,并发出声音的功能块,就像我刚才的,练习程序一样,我们让飞利浦做这个动作,做那个动作,跟这里的情况一样,我们已经看到了称为循环的东西。
And odds are if a week hence, two weeks hence just for fun you decide to reimplement your Scratch project -- or some tiny piece of it, it wouldn't be surprising -- or shouldn't be -- if you end of implementing the same game or animation or whatever using a completely different set of puzzle pieces Same deal we'd see here.
可能一周之后,两周之后,为了好玩,你决定重新实现你的Scrtch工程,或者其中一小部分,它将不会是令人惊讶的-,本来也不应该是--如果你运行相同的游戏,或者是动画,亦或是用完全不同的设置,来运行拼图游戏,我们将看到相同的处理。
应用推荐