AISubs
In 2020, programming education will be introduced in elementary school classes.
Computers are a must in our lives now.
It is important for children to know the mechanism of the computer.
To do that, they need to learn programming.
Learning programming is not a dream to change the world in the future.
Therefore, we will challenge programming one step ahead for the next year's finalization in the program.
We will learn programming with fun using games and music.
What is it?
It's Takayama!
Takayama!
So, everyone in front of the TV should prepare tablets and computers and go on a programming journey while having fun with us.
Mezase! Programming Star!
Hello, everyone.
I'm Kyoko Gunji, the class president of Mezase! Programming Star!
Nice to meet you.
And Ando-sensei will teach us programming.
Nice to meet you.
Ando-sensei is the principal of PLOSTA, a popular series of programming courses that can be learned online and in person in more than 100 schools around the country.
This time, he will study with everyone in front of the TV.
He is Shinji Nira, the young master of Shounan no Kaze.
Rino Sashihara, the producer of Equal Love,
Emiri Ohtani, and Iori Noguchi.
In addition, a new student has joined us today.
This is Shoko Takewaki, a member of Equal Love.
Nice to meet you.
This is Hitomi Suzuki, a member of NotEqualMe.
Nice to meet you.
Have you two done programming before?
No, we haven't.
Are you good at computers?
I like it, but I'm not good at it.
You like it, but you're not good at it.
I used to use computers a lot when I was a kid.
There are three seniors who are studying first.
Of course.
Let's ask the teacher and study together.
Yes, please.
First of all, before today's mission, let's review what we've done so far.
Programming is a command.
Algorithm is how to program efficiently.
What everyone is learning now is a programming software called Scratch.
Scratch is different from the source code used in previous programming.
You can program just by connecting blocks.
It's easy to get Scratch.
Search for Scratch on the Internet and select Scratch's website.
If you click on Create, everyone can start immediately, so let's get ready.
And last time, we learned how to add sound.
To add sound to a character, click on the Sound tab, and select the microphone mark from the speaker at the bottom left.
If you click on Record, you can record your own voice.
From the Event Palette, select the sound you want to add to the character.
If you click on the flag, you can add it to the character.
And we also learned how to repeat.
If you want to repeat a sound or a movement...
Instead of clicking the flag mark many times,
if you use the repeatedly repeated block from the orange control palette,
you can repeat the sound many times just by clicking the flag mark once.
In today's lesson, this repetition is very important.
Let's remember it well.
Today's mission is to launch fireworks.
In Hulu, the programming of Equal Love is being broadcasted uncut.
Don't miss their nice errors.
Equal Love
This program is brought to you by PROSTA, a programming learning system.
Today's mission is to launch fireworks.
Fireworks?
It's finally here.
I'm looking forward to it.
The fireworks are here.
Last time, we made a paper play.
This time, we will launch fireworks.
For that, the first study is to draw a pattern.
Draw a pattern?
Yes.
Teacher, please.
Yes.
Let's get started.
From today, there will be a mathematical element.
Are you good at math?
It's math, not math.
Math.
It's math.
It's okay.
It's okay if it's math.
One important thing is that the angle is important.
The second one is to rotate 15 degrees in motion.
I'll bring it here.
Click to rotate 15 degrees in the code area.
It moves.
Next, let's make this 15 degrees 30.
30.
Yes, 30.
Then, I think it will rotate more than 15.
Yes.
It rotates faster.
By the way, do you know how many times it rotates to return to the original state?
Six times?
No, that's not it.
It's 12 times.
Let's try it.
In the case of 30,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12.
Correct.
Shinji-kun, correct.
Let's put together the programming now.
It's 12 times, so I did it over and over again in the previous time.
It's a control.
It's on the left.
It's a control because it's repeated 10 times.
Repeat 10 times.
If you turn this 12 times,
the arrow will go around.
If you click this, it will go around automatically.
By the way, how did you know it was 12 times?
It's 360 degrees.
The correct answer is 360 degrees.
Let's put it here.
Let's put in 10 movements while rotating here.
10 movements?
Yes.
What kind of movement will it be when it becomes 10 movements?
Wow, that's great.
It's 12 times.
The object that receives the programming on the stage is called a sprite.
This time, I'll use this arrow sprite.
Let's choose 15 degrees from the movement palette and click it.
Then, the sprite will go around 15 degrees.
If you change 15 degrees to 30 degrees, it will go around 30 degrees.
If you want to move it with programming, choose 10 times of the control block.
Since one lap is 360 degrees,
if it's 30 degrees, do it 12 times.
If it's 15 degrees, do it 24 times.
We will go around!
In addition, if you connect the 10 moves of the movement palette,
it turns like drawing a big circle.
Did you understand?
Let's change this area further.
For example, let's change 10 moves to 20 moves.
Since we moved it, we want to leave a trace of it.
There is a pen under the block definition.
There is a stamp on the pen.
Please put the stamp here.
It's like this.
What do you do with the stamp?
Put the stamp under the 20 moves.
Put the stamp in the order of repeating 12 times.
Wow!
If you choose a stamp from the pen palette and put it under the 20 moves,
you can leave a trace of the movement of the sprite.
If you can do this, prepare a lot of different colored costumes.
If you do this, if you connect the look of the palette to the next costume, the look will change one after another.
Next, let's move the pattern.
Now that you've drawn the pattern, let's move the pattern.
Sensei, how do you do it?
First of all, to move it, move the stamp.
At this point, move the stamp.
At this point, bring the number of rows from this column.
The value here can be anything, but from minus 100 to, for example, 100.
The number can be anything, from 10 to 100.
Then, every time you push it, it will look like this.
By reflecting this on the fireworks, it will be able to be raised to various places in the night sky.
I would like to change this value immediately and do something that will be the basis of the fireworks.
To move the pattern in various places, connect the blocks that move 10 steps below when the space key is pressed.
If you combine the number of rows from the column palette to 1 to 10 with the blocks that move 10 steps, the pattern will move at random.
Raise your hand.
If you do this...
Where is the minus key?
It's so cool.
I want to see it.
But it's sticking out.
The pattern is moving sideways, but how does it move vertically?
Mr. Ando, please tell us.
Like this.
It doesn't work like that.
In addition to moving a few steps, the angle is also generated by the number of rows.
The angle.
Connect the number of rows to the number of blocks that move 15 steps.
If you combine the number of rows from the column palette to 1 to 10 with the blocks that move 15 steps, the pattern will move at random.
Are you ready?
You two are excellent.
Let's take a look at the pattern that Shinji thought was excellent.
First, Hitomi.
I can't see it.
Why is that?
Nice era.
It's good. It's beautiful.
It's amazing.
It's like meat dumplings.
Why did Hitomi's sprite move to the edge of the screen?
That's because the value of the random number was too large and it was set to move to the outside of the screen.
If you reduce the value and reprogram it,
It's a little subtle, like this.
Let's take a look at Shoko.
Beautiful.
Shoko is good at using random numbers.
Shoko's random number value is set to 1 to 100, so it is set to move properly in the screen.
If the value of the random number is larger than 240, it will protrude from the screen, so be careful.
After this, let's try to launch fireworks. What kind of fireworks will come up?
In Hulu, the popular game that more than 100 million people around the world have registered, Minecraft.
The original content to learn the programming function of the educational version is being distributed.
If you can move the pattern, let's launch today's work, fireworks!
Let's launch fireworks!
Let's launch fireworks using the pattern.
Until now, the sound of the fireworks was necessary to match the previous one.
And you have to change the background.
I'll ask you to do it with the knowledge of the previous one.
First, select the background to launch the fireworks.
To change the background, click the insect glasses from the mark to change the background of the stage, and various backgrounds will appear.
To draw the pattern of fireworks, click on the tab of the costume and you'll see a screen where you can draw.
Here?
Let's go with this one.
Let's press it.
I want to draw it like this, so I'll draw it like this.
To record the sound of fireworks, click on the tab of the costume and select the microphone from the speaker on the bottom left.
You can record your own voice.
What kind of fireworks will come out?
You can record your own voice.
The programing of Equal Love is being broadcasted on Hulu without cut.
Don't miss their nice errors!
Original fireworks!
What kind of fireworks did they make?
First, Hitomi-chan!
That's cute!
There's no sound!
Oh, there is!
That's good!
I made a mistake!
You made a mistake!
Nice!
This is great!
What did you think you made a mistake?
I made a mistake in the last part.
It will be processed from top to bottom in order,
so I thought it would be good to put it in first.
Hitomi-chan had a lot of repeated blocks.
Nice error!
That's why the sound of fireworks was repeated all the time.
When you ring the sound of fireworks,
try not to get caught in the repeated blocks.
In addition, let's choose to ring the sound until the end of the sound block.
Then, the sound of the recorded sound will be heard until the end,
and the fireworks will be lit.
Let's take a look at the re-programmed fireworks!
Here it is.
I was able to do this.
This is beautiful.
Next is Shinju-kun.
Great!
Mom!
Great!
Toma-san! Toma-san!
Wow!
What is this?
I don't know.
It's a random product.
And why is it so low?
Why did Shinji's fireworks go up so low?
Let's take a look at how he's programming.
Shinji's programming uses the x-axis and y-axis blocks of the movement palette.
Just by combining this block with the number of rounds, the fireworks go up at random.
But the y-axis, which represents the height, was combined with the number of rounds up to minus 150 in the lower part.
If you want to raise it higher, let's put in a number from 0 to above.
Next is Shoko-chan.
DoCan, DoCan, DoCan, DoCan, DoCan, DoCan!
Wow!
It's a beautiful explosion.
Shoko-chan, whose beautiful fireworks went off!
Let's look at her programming.
Yes. The sound of the firecrackers is included in the programming of the firework, so the sound is made at the right timing.
Next is Emily.
Here we go.
Nice.
The sound of the firecrackers is included in the programming of the firework, so the sound is made at the right timing.
Yes, I wanted to make it feel like space, so I chose this sound.
I feel like a child is going to cry.
Did you have this?
Yes, it's already in the sound.
I chose it.
I also made a firecracker, but I didn't think it would be so beautiful.
It's amazing. It's very beautiful.
Emiri-chan's programming programs both the sound of the firecrackers going up and opening in front of the block where the firecrackers move.
And after the sound programming,
the display through in the appearance palette is set up.
It's the inner workings.
It really looks like fireworks are going up.
The last one is Iori-chan.
Oh, it's good.
The last one is scattered.
It's a free-spirited play.
It's like a scattered sushi.
You said it in a good way.
Looking at Iori-chan's programming,
the way to put the value of the number of firecrackers moving sideways is a nice error.
When you put a number in the number of firecrackers,
let's put a number smaller than the value on the left than the value on the right.
When you put a number in the number of firecrackers,
let's check the value and do the programming.
We've done it so far.
How did you feel when you first participated?
I thought it was more difficult,
but I thought I could do it because it was so much fun.
What did you think?
I thought the picture I drew would be a firework right away.
I thought it was amazing that it could be a firework right away.
I failed to put a number in the number of firecrackers,
but it went well at the end, so I'm glad it was fun.
After seven times, we've been able to do this much.
I haven't done it yet.
Today's review
This time, I set off fireworks.
This time, I'm going to use this arrow sprite.
Let's choose 15 degrees from the movement palette and click on it.
Then the sprite will rotate 15 degrees.
If you change 15 degrees to 30 degrees, it will rotate 30 degrees.
If you want to move this with programming, select 10 times of the control block.
If you want to move this with programming, select 20 times of the control block.
If you want to move this with programming, select 10 times of the control block.
This program was brought to you by PLOSTA, a programing learning system.