AISubs v3.7
- Wow! - Wow!
There are so many of them.
Last time, the three of them started studying the game engine "unity".
- Which one? - This one!
- Oh, it's in 2D. - In 2D! In 2D!
- Yes! - That's right.
- Oh! It fell! - Oh! It fell!
- It fell! - Yes.
As difficult words come out,
the three of them, who must be tired, prepare a light meal and take a break.
- Thank you. - Wow!
- Thank you. - Wow! I've never seen it before.
- Thank you. - Thank you.
- Which one is which? - It looks fun.
- There are a lot of flavors. - It's all powder.
- But I'm hungry. - I don't know what's what.
- Red! - I don't know either.
- This is ketchup. - This is definitely ketchup.
- What did we order? - Um, takoyaki and...
- Consomme. - There's consomme.
- Honey butter. - Honey butter.
- This smells sweet. - Then honey butter.
- What's this? - Takoyaki?
- Oh, it's sauce! - Takoyaki!
- Wow! - This is probably takoyaki.
- Huh? Is this consomme? - I don't know.
- This is hard. - Let me try it.
- Do you want to try it? - Wow! The shape is...
- It's a different shape. - Yeah, it's twisted.
- There's cheese and barbecue. - Twisted.
- Was there? - No, I'll try the ketchup first.
- Can I eat it? - Thank you for the meal.
- This is probably compote. - Oh, is that so?
- Huh? Is it compote?
- Oh, it smells good. - Mmm!
- Oh, takoyaki? - It's good!
- Huh? - Isn't it?
Ketchup and potatoes go well with a blanket and a pillow.
They go well with a blanket and a pillow.
- It's good even without it. - No way...
- It's spicy, isn't it? - Thank you for it.
Is it okay?
- What is it? - What is it?
- It's spicy! - It's spicy!
When I ate the takoyaki here, it was spicy!
But...
It's a tingling kind of spiciness.
But the sweetness of the potatoes and the saltiness of the takoyaki
- make it really soft and delicious. - It's like a food report.
- Nao, you might not be able to eat it. - No way...
- Is it that bad? - Yeah, it's spicy.
- It's spicy, but it's not bad. - Huh?
It smells like honey butter.
- Even though it's so far away? - Yeah.
And it's been mixed quite a bit.
- What are you going to do? - Thank you for it.
- It's spicy. - It looks good.
- It's good! - It's spicy!
- Do you like it? - Yeah, it's good.
- Honey butter is good. - Yeah.
Now that they've eaten their fill...
- We're going to program it. - Huh?
- Huh? It's spicy! - It's spicy, right?
It's spicy.
- I want to eat something spicy. - Yeah, honey butter!
- Yeah, it's really good! - It's sweet!
- Yeah, it's spicy. - It's spicy, right?
Honey butter is good!
Now, now, we're going to program it after we've eaten our potatoes.
But before that...
The T-shirt you're wearing will be released soon.
Yes! Last time, when our budget was in a pinch,
we asked the three of them to come up with a T-shirt that can be used as a costume.
Thank you very much!
I'm happy!
Next Time...
Thank you very much.
Wow!
Here I go.
Ta-dah!
Here you go!
Wow!
It's so cute!
Rabbit!
Wow!
What do you recommend one by one?
Oh, this one.
Tokyo Tower and Tokyo's skyscraper and Rainbow Bridge.
That's what I recommend.
Finally, the program's original T-shirt has been completed for the seventh time!
The design is based on what Kanagawa came up with.
Wow, it's so fashionable!
So fashionable!
Now, let's welcome the three guests!
Ta-dah!
What do you think of it?
Well...
But it's easy to match with casual clothes.
That's right.
What if you improve it?
Improve it?
But there's nothing to improve.
How about the size?
I'd like to make it V-neck.
I see.
I'll make something out of it.
Really?
Oh, you like long sleeves too?
Ah, you like long sleeves too?
Yeah, I like long sleeves.
Do you guys live in long sleeves?
Why do you know?
Oh, me?
I don't like long sleeves.
I'm fine with costumes.
Oh, I see.
I'll go with long sleeves.
Yay!
Tokyo Pasukon Club.
Today, we'll learn how to use Unity from indie game developer, Mr. Namata Kashi.
Last time, we learned how to display objects like circles and squares on the screen, and how to add physics engines like gravity.
Imagine that this "one" is being applied by gravity's "one" force.
Okay.
So, everyone, try changing the values.
As you like.
And then try playing it.
Misato, how much did you input?
I inputed 7.
I also learned how to call that object "collider" and get a correct judgment.
This time, I will continue to try actually inputting codes.
Okay, let's continue.
First of all, I put the images I made on your screens.
Yes, there are already a lot of images.
First of all, I will input this image.
Please click on this block.
Click on this "heral key" block.
Click on "game object".
Then you will see "square" written on the sprite.
Please click on the image I prepared earlier and input it here.
Oh, it's done!
I think the block is a little small, but it matches the size of the image.
I will replace "square" object with "illustration".
In the same way, I will replace "circle" object with "illustration".
Okay, if you look at "player" and "block", the correct judgment and the size of the image are different, right?
The green line is a little bigger than the actual size of the image, isn't it?
Yes, it is.
If you look at it like this, it's a little bigger than the actual size of the image.
It's good that you replaced the object, but since the range of the collider hasn't changed, it's a little bigger than the illustration.
The circle collider on the right.
It's really small, but if you click "..." and "reset", it starts with an "r".
If you do that, it fits the player's image.
If you look at this, it's a very horizontal camera screen.
It says "free aspect" on the screen of the game.
Make it 16:9.
16:9...
Oh, it's fixed a little.
Most PC screens are 16:9, so you can adapt it to various monitors.
That's right! Most of the games in the world are made with this aspect ratio of 16:9.
Next, we'll add more blocks and make scaffolding!
We've already added various programs to this block, but we're going to make it look like a material to replicate it.
This is called "prehabification".
"Prehabification" is a mechanism by which objects that have been created can be replicated.
By "prehabifying" objects that include added effects, it's easier to replicate them.
Take the block to the "asset" area for now.
Press and hold the block and go to "assets".
Oh, it's here!
Yes, that's right.
Oh, it's here!
Yes, that's right.
That's right, the block turned blue.
I think you can see it now.
Yes.
With this, you can use the program itself as a material like a material or an image.
So it means that you made a block that doesn't fall even if you hit it, right?
Yes, thank you very much.
Oh.
That's right.
Then please take this to the scene like this.
Yes.
Oh.
Yes, then like this.
Yes.
Oh, you got it.
Yes, a lot.
That's right, like this.
With this, you can make a scaffold now.
The three people made a scaffold by lining up the blocks that have fallen off.
Next is finally...
Now, from here...
Yes.
I will actually write the program.
Oh.
Yes.
Finally, I will challenge the first program input in my life.
Then...
Oh, I think I will say goodbye to these three people...
Yes.
Here is my request.
"Tokyo Pasokon Club" will be broadcast on TVer and other platforms after the broadcast.
The program will continue for a long time.
Please click on the "favorite" subscription button of TVer.
Be sure to subscribe!
Finally, for the first time in my life, I will input into the program and move the character.
The method of moving this time is the method of using a physical engine.
Everyone will access this "rigid body" in the player and change the speed in it.
Yes.
First, select the player...
"add component"...
If you move the mouse down...
"new script"...
Please make sure it's in English.
Let's name it "player" as it is.
"player"...
When you type in "player", under "create and"... Yes, that's it.
With this, we've created what we call "source code" for the program.
What "source code" is...
If you look at Miyake-san's screen from last time, you can see that there are a lot of characters.
Yes, that's it.
With this, we're ready to program.
We're finally going to get into it, but...
Yumiki-san, do you know?
Yes.
Please be honest.
To be honest, I'm about two steps ahead of you right now.
I'm about two steps ahead of you right now.
You're ahead of me.
Oh, that's right.
You're behind me.
If you keep talking to someone like this, it'll be over.
Everyone says the same thing at first.
Do your best, Yumiki!
First of all, it may be a little different from Kanagawa-san's screen.
A little different script...
There's a different program in it.
First of all, click on the dot dot dot.
Dot dot dot.
Yes.
Reset.
Remove...
It wasn't.
Above it.
That's it.
Please delete it for me.
From "n"...
That's right.
Yes.
Now for the "player" part.
On the right...
Oh, wait a minute.
This script is a little...
Script?
Yes.
It's a little common for beginners, but...
While playing...
If you change a lot of things, when you finish playing, everything will go back to normal.
So it's better to see if it's playing for a while and then change it.
I see.
It's really common, and I've fallen many times, so there are a lot of things that make a lot of stages and disappear at once.
It's like a blog.
Yeah, I wrote it in my notebook and it all disappeared.
That's because it disappears.
That's true.
This is a path that anyone who is a beginner can walk through.
Let's get back on track and continue.
Well, this player...
That's where you're touching right now.
Please double-click it.
Then it won't start.
Huh? Huh? Different place? Is it right?
I was surprised.
It started!
Please double-click it again.
That's it.
Oh, it worked!
This is the screen where you type in the program code.
Now I'm going to enter the program to move the character.
There are three big steps to moving a character.
First of all...
Access the rigidbody and change the speed in it.
I'm going to move with that content.
You have to prepare something like a box for storing the rigidbody program.
I'm going to write it now, so please copy and write it.
Yes!
From here...
Private...
What?
Shh! Shh! Shh!
Take your time.
Next, capital "R".
Yes.
It's like...
Yes.
It's like "Rambon"...
I typed "R", but it became "Rambon".
Can you turn it off for a moment?
It's random. It has a random function.
Yumiki, it's not "Rambon", it's "random"!
Besides, it's not random to type it in!
Get it together!
At the end, there's something like a dot, dot, dot, dot, comma, right?
Dot, comma...
It's called "semicolon".
Semicolon?
Yes.
Semicolon?
Yes.
Semicolon?
Yes.
Semicolon?
Yes.
With this, you can end a program.
Wow!
Yes, a semicolon is like a Japanese sentence that says "maru".
It means the end of a sentence.
So far, we've only created a container for entering a program.
And inside of it, there are words like "start" and "update".
I'll explain what "start" and "update" mean.
"Start" is where you are called only once when you start a program.
If you write "shoy" inside of it, you'll be called only once when you run the game.
You'll be called.
Yes.
On the other hand, "update" is where you are called 60 times in one second.
Wow!
Have you ever heard of "60fps"?
No.
No, we haven't.
"fps" is how many times you are called in one second.
"60fps" is when you are called 60 times in one second.
Yes.
And "update" is where you are called 60 times in one second if you write "shoy" inside of it.
What is "fps"?
The frequency of processing in one second.
In the case of 60fps, it means that 60 times of input processing will be done in one second.
In other words, if you program the process of one character moving rightward in "update",
60 characters will move forward in one second.
Isn't it your first time touching a PC like this, Imiki-san?
Say it one more time, please.
Isn't it your first time touching a PC like this, Imiki-san?
Yes, it is.
When I said "60 times in one second", I thought I was drowning, too.
I thought I was drowning, too.
When you input the information of the character you want to move here...
Now you can access it in the box.
It's still empty.
No, I put it in there.
Yes, you can still put it in there.
When you input the program of the character you want to move...
Next is finally the programming that determines the speed.
If you can do this, the character will move a little more.
It is called "digit body's velocity".
Velocity?
What is "velocity"?
Velocity is the speed of movement.
It's called "movement rate".
When you executed it in Unity, you moved downwards, didn't you?
Yes.
Think of it as moving downwards.
Yes.
Now we have programmed it to move.
It looks delicious.
I'm glad.
Programming to make the character move is complete.
Let's check it out in Unity.
How is it?
Ah! It fell!
Oh! It moved up!
Is it moving to the right?
It's not moving to the right.
It's rolling, it's rolling.
When we looked at the program earlier, it said "one", right?
Yes.
Imagine that "one" is added in the right direction.
Wow!
Can you call this 60 times in one minute?
That's right. If you don't call it, it will move forward only once and stop.
If you don't call it as many times as possible, it won't move forward.
I got it!
So, in one second, it will move forward 60 steps, right?
That's right!
It's easier for you to understand than me.
Wow!
That's great!
Even if it's negative, it won't move to the left.
Did you save it?
Yes, I did.
Ah!
Yes, I did.
After saving it...
Ah!
This is also common for beginners.
You've been doing it all this time.
It's like a trick. I'm going crazy.
No, it's OK. It's OK. It's OK.
As soon as the character started moving, the time went up!
That's it for this time!
It may have been a little difficult, but if you remember this, you can make a simple game like Mario in the early days!
I thought it was this difficult again.
After all, games are amazing! I thought.
It's really hard to move one player, but I think I want to do my best!
Yumiki-san, how was it this time?
No...
Yumiki-san, how was it this time?
In the middle of it, I thought, "Oh, I think I'm done with the three of them."
There was a time when I really thought it was over, but for about two minutes...
Somehow, Takashi-san also...
How do you say it?
He pulled my hair and I pulled it in.
I managed to get there somehow.
Why are you saying goodbye?
Well, it's bad luck.
Bad luck.
Hello?
Yes, I can hear you.
Those two may have found out.
I need some countermeasures.
I'll figure out a better way, so leave it to me.
Who's in your way?
I think I'll get to know that guy in just a little while.
As expected of you.
You really are talented...
Mr. A.I.
[TO BE CONTINUED]