Scratch- Quick Start tutorial minimalism

Scratch download learning materials - extraction code: rnqf
Scratch is a Massachusetts Institute of Technology (MIT) design and development of children's programming tools. The user can not know the English word, you can not use the keyboard. As the building blocks of a building block shape together command can be used to drag the mouse. Super simple, 5-6 children can learn the programming, SO AMAZING!

But simply can not be underestimated, training of logical thinking, planning ability, problem-solving skills, teamwork, patience, perseverance and so a careful will not be less. But also free software, it is really no justice! Now, some people teach this free software (hee hee hee ~ ~ ~), which is speechless! No way, on behalf of all love.

Let us sit preparatory activities before the formal learning Scratch. Today, talking about a few households can be met in the future of learning every day, knocking a blackboard ~ ~ ~ Keke ......

Case herein, "Restless Sons Cat" theme
an interface layout is neat
Scratch interface is divided into five regions, as shown below:

1. Stage area:

Program presentation window, click on the top right corner of the small green flag logo will be able to run the appropriate program, click on the red dot logo top right corner of the program can be stopped.

2. Stage Information:

Setting the stage background image.

3. The list of roles:

Setting role, you can set up multiple roles.

4. Instruction panels:

Programming instructions blocks scripts, like most of a block building. Simply drag the region to the right script, building blocks (code blocks together in combination) is prepared by the procedure.

5. Local script:

The instruction block from the drag "panels instruction" to the area, a combination (that is, programmed, wow, there is no super-simple ??)

Here are some commonly used buttons or functions.

1. language selection buttons: The default English version, you can choose Chinese version (at the end of the list, we believe important is always placed last, well, we think so!)

2. Get help tell us what the role of each code block. In two ways: first, then click on the Help button and then click on the block of code will appear on the right side of the screen help information. Another way is to right click on the Help code block, it is possible to achieve the same functionality.

3. Run: two ways: by clicking the green flag or click script code block unit area.

Second, the editing stage
background is very important, a picture can express a good atmosphere, it is very worthwhile.

"(Appears only after the selected area Context) context tags" can select the background area or the instruction block information panel.

There are four ways

1. From the background database import (Scratch background library is very rich, you can take advantage of)

2. draw their own (Scratch or better quality graphics tablet)

3. upload from a local file

4. Open the camera shooting

Third, the role of editor
in editorial role, Scratch has a rich library of shapes for your choice, in addition you can also draw a new shape, upload from a local file, as well as take pictures when modeling, etc. shape the role. Edit with the same background, the role of Editor is four ways, and even the icons are the same.

In addition, the district is able to target tool to provide us with a great convenient place, as shown below. Red square circled four buttons in sequence on the role of copy, delete, zoom in and out using the method is to click the button and then click the role.

Fourth, the code (script)
script or code block here is divided into ten categories, do not be scared, they are actually very simple building blocks, the literal meaning is very simple and obvious, most look at the names to know what to do, and Do not believe it look at the map it.

Ten categories of code blocks below, behind the days of these code blocks will bring us a different surprise.

Fifth, the sound
right Sound is critical to a game or electronic works for. Scratch provides a rich sound library, you can also upload their own recording or sound from a local voice. But also you can edit the sound, really powerful.

Sixth, the most common code
in the figure below three fire events most commonly used, followed by small when the green flag is clicked when starting the following code, when a certain key on the keyboard when the startup code is clicked, when the character is clicked startup code.

Loop and conditional control statements. Loops can execute the same code repeatedly prescribed number of times or an unlimited number of times; conditional statement can make the game react accordingly when certain conditions are met. Both statements invincible super important, almost any program can not do without their program. After learning any programming language, these two statements are the top priority.

Seven, save
to make good document, through the "File / Save" or "File / Save As" to save. It recommended a new work specially designated folder, so you can not find work does not appear.

Eight, a simple case
Let's do a super simple case "restless father and son cat" to practice the above-mentioned content.

1. First, select a background, click on the "Background Library button" stage information area, select a background from the pop background library.

2. The combination of code blocks

Code block can click to see the effect, kitten moving up! Kept folded on the screen, that's great!

3. Click the Copy button in the tool area of ​​the role, and then click the kittens immediately copied out a kitten (two kittens likely to overlap, you can drag it and see). After allowing the bottom of the copy button next to the zoom button, and then click in which a kitten, the kitten to see enlarged, and it was the cat daddy now.

A time will start running the code, we will be surprised to find that two kittens can move up! Copy the code together when copied, this feature is great! Remember this function, and doubtless used to get.

4. Run the code, let us look at the effect it

Here is the witness the miracle of the moment! Click on the top right corner of the stage area of ​​the little green flag button, dad and baby cat cats elegant slide to slide, really helped! If this is the first program in your life, then I suggest that you celebrate! What to eat to celebrate it!

Nine, description of online and offline editor editor
you can and Scratch and enthusiasts around the world to share in the official register online account, and then use the online editor works produced,

Guess you like

Origin blog.csdn.net/sdke117/article/details/93487623
Recommended