AISubs v3.5
- Good morning. - Good morning.
- Nice to meet you. - Nice to meet you.
First of all, can you tell me your fashion points for today?
Cute.
My fashion point is this.
- Cute collar. - It's a pearl earring.
It's true. It's swaying.
- The collar is also a big collar. - Big collar.
- And you, Yumiki? - Yes.
My fashion point is "If you don't have flowers, make them bloom."
As you can see, I'm wearing a flower dress.
It's sunny today, so there are a lot of buildings around me.
But I decided to wear a flower dress.
- You'll be the flower of the city. - Yes, please.
Let's walk to the place where we'll be programming today.
By the way, do you know where we are today?
Gunkyoku.
This is the fourth capital city.
That's right. It's the capital city.
- If it's the third capital city, I know it. - Why?
- If it's a station, it's the third capital city. - I see.
But it's the fourth capital city.
There is also the highest university in Japan nearby.
- What's that? - The top university.
- Tokyo University? - It's right there.
- The place everyone aims for. - The place everyone aims for.
- Did you aim for it? - Yes, I did.
- Really? - I couldn't do it.
Today, we rented a cafe in a residential area like this.
Don't people around here live as they please?
- It was like this near my house. - There are a lot of people.
- It's nice. - My grandmother always did it.
- You can feel the atmosphere. - There is a cafe like this.
- That's right.
Today, we'll rent this cafe, Coffee Kingyozaka.
- Wow! - It used to be a goldfish shop.
- Really?
- You can also scoop goldfish in the back. - Really?
- Since we're here... - It's fun!
- Since we're here in the summer... - Yes.
- Let's try it. - Yay!
Good evening. I'm Sato Rika of Nogizaka46.
Do you often go to cafes?
I like going there and go there a lot.
But this time, I'd like to make my own coffee and drink it.
Today's programmer is Kinyozaka-san.
In 350 years of operation,
goldfish have renovated some of their stores and opened a coffee shop.
In addition, you can enjoy goldfish scooping here.
So, you two will try it.
Do you scoop water with this first?
I've never done it before.
Really?
There is a super ball scooping.
That's fun, isn't it?
There is.
Oh, it's cute.
Which one should I choose?
Do you have gelato?
I knew it.
But...
I like silver one.
I like this red and white one.
But, I like the one with obi.
Then, I'll choose this one with obi.
I'll risk my life.
I'll do my best.
I think it's my life.
I'll choose this one.
Hey, won't you come to the surface?
Am I not popular?
What should I do?
Should I have put all of them at first?
Oh, no.
I put all of them.
Oh, no.
There is no damage.
But, there is a lot of damage.
What should I do?
Hey, what should I do?
Drop water.
Why is it alive?
Everyone?
Drop it. Drop it. Drop it.
What? What?
Is it alive?
It's unfair.
Should I go?
I'll try to drop it with this.
Oh, no.
Oh, no. I can't do it.
Nishiki-chan.
Hang in there.
Let's cheer for her.
Cheer for her.
Hang in there.
Go. Go. Go.
Go to the edge. Go to the edge.
It's close.
It's still alive.
The net is breaking.
Hang in there.
The last one.
Oh, it's gone.
Great.
Himiki-san, this is not enough.
One more.
Is it okay?
I want to do it.
Himiki, can you save it this time?
Hang in there.
First.
First catch.
First catch?
Great, I got it.
You're good at it.
I'm good at it.
Great.
Hang in there.
Great.
Why?
Have you done it before?
Yes.
Have you?
Yes, I have.
You're good at it.
You're so cute.
You're cute.
Having enjoyed the summer wind and rain,
we're visiting Gingyozako-san's shop.
Before we start programming, we're borrowing this cafe.
We're going to eat first and then start programming.
I haven't said I can eat yet, but I said thank you.
Thank you.
There are side dishes and so on.
Side dishes, too?
It's a proper side dish.
She's 13 years old.
I'm going to make Gindara-no-saikyou-yaki.
Gindara-no-saikyou-yaki.
It looks good.
Should I make curry?
Curry?
Yes.
By the way, did you buy goldfish when you did it before?
I brought it home with goldfish scooping.
I'm talking about it in my house pond.
Your house pond?
Do you have a pond at home?
I do.
It's not big.
It's a little pond.
A little pond.
It's about this big.
Isn't it big?
People can swim in it.
People can't swim in it.
No, no, no.
It's here, right?
You can't swim in it.
What kind of animals do you have?
When I was at home, I had 16 hamsters.
I heard rumors about it, but I went home only for one day.
I have seven more hamsters now.
Aren't you a night owl?
I'm a night owl, too.
We're pretty much the same, so we're rivals.
Why?
When I want to relax, I want to drive.
Do you have a name?
I do, but I can't remember it because I'm a rival.
Remember it!
I'll say it quickly.
Do you have curry?
Yes!
A lot of curry!
It's curry.
It's black.
Thank you!
It's black!
Thank you very much!
Let's eat!
When you eat it hard, it's heavy and mild.
It's gentle.
But there's a lot of aftertaste like yakumi in it.
Is it spicy?
This spice is really...
Spicy.
This spice is really...
Spicy.
It's really good.
The strongest roast!
Thank you for it!
It's good!
I really like white fish.
Is it fatty?
Yes!
It's soft!
It looks good!
It looks different,
but it's there.
Is it there?
It's on the store menu and it's totally different, but it's there.
With a full stomach, we will do programming again today.
We will do programming, but before that, we will play a game first and learn programming hidden behind the game.
What we will do this time is "Rockman 2" by Dr. Wily.
Rockman
I see.
Is it "That Rockman"?
I know "Rockman".
Did you watch the anime?
Yes, it's "That Rockman".
The number of creations so far is more than 130.
"Rockman" series famous for action games.
Among them, "Rockman 2" was released as the second work.
In fact, this game is said to be the most difficult "Rockman 2".
What!?
Is it difficult?
It's difficult.
Then Aya-chan will have to do her best.
Hey!
The rules are simple.
Go to the stage and defeat the boss at the end.
Can the two defeat the boss?
First, Yumiki will challenge.
Oh, it's no good.
You have to press the jump button a little longer.
Do I have to press the jump button longer?
Oh, I see.
When will it come up?
OK.
Wait a minute.
Let me wait for a moment.
Jump!
OK, it's here.
Jump!
OK, good.
Jump!
Oh, no, no, no, no, no!
Next, Aiti-san will try.
Does the crab-like person down there have nothing to do with it?
It's fashionable.
Oh, it's fashionable.
Oh, I can feel it.
Something's coming up!
You have to jump!
Wow!
OK, OK.
Good, good.
Wait a minute.
What is it?
It's probably the horn.
Oh, go, go, go, go, go!
Oh!
A lot of crabs are coming.
Oh, nice!
Oh!
Forcibly, forcibly!
Use force!
Oh, I can't get through at all.
Oh, oh, oh!
Oh!
Can I try one more time?
Please don't run away, Mii-san!
Mii-san, don't run away!
I definitely won't run away!
Jump and long push!
Why?
B, B, B!
Oh!
Why?
Oh!
Oh, oh!
Can I jump?
Yes, yes.
Go.
Oh, no!
The timing doesn't match.
The movement doesn't match.
Jump and B.
Go!
Why!?
Why did you stop?
Game over.
Ayati's last challenge.
Ayati, you can do it.
The trick of this stage is to stay calm.
Stay calm.
I can't do it.
You can't do "wait".
I can't do it.
Go!
Although they couldn't clear it,
they learned programming from Rockman.
Today, as you noticed last time,
Kobayashi-san and Torai-san came.
Thank you.
Kobayashi-san,
you noticed one point today.
We noticed it.
What is it?
T-shirt.
Let me see it.
Why?
I bought it.
Really?
What kind of person is he?
Without further ado,
we were also surprised that you came today.
We didn't tell you in advance.
It's a surprise.
That's amazing.
You came as a human.
That's amazing.
What will you teach us today?
That's right.
Side-scrolling action.
Like Rockman,
we will create a jumping action
where the screen scrolls.
This time, like Rockman,
we will create a side-scrolling action game
while learning from Kobayashi-san and Torai-san.
I think you can see it on the screen now.
Let's try it for now.
Let's play it.
Click, start...
This is the mouse click, right?
If you press this...
Wow!
This is like Rockman's parody character.
Wow, it's cute!
And you can move left and right with the cross and arrow keys.
And you can jump with the "c" button.
Wow!
This is a very sloppy and sluggish way of playing, isn't it?
That's right.
The character's movement is kind of slow and the jump is low.
Oh, you did it on purpose?
I did it on purpose like this.
What?!
I thought you were a very fluffy character.
I thought you could only do it like this.
So, first of all, I want you to do it comfortably like this.
Oh, you're a strategist.
Well...
There are two programs we will learn this time.
First, we will change the character's movement speed and jump power.
Please double-click on the main scene of this project window.
And please double-click on the player's source file.
Then, I think there are three items on the top that say "moving left and right", "jumping power" and "gravity".
If you adjust this, you can speed up the character's movement or increase the jump power.
But it's hard to adjust and go back to unity.
So, we will make it possible to adjust on unity.
Oh, thank you.
Before "float" is written, we will put "public" in front of it.
Oh, is it all of it?
That's right. All of it is "public", "public", "public".
Oh, you don't need this "vy" part?
We don't need "vy".
Oh, you don't need it.
"public".
Yumiki-san, is "public" in this "vy" part okay?
Oh, yes. As I said earlier... Huh?
Suddenly "float" came up.
And if you go back to unity...
There is a script called "player" in the inspector on the right side, and "speed", "jump", and "gravity" are displayed there.
If you change this value while playing here, you can adjust it.
You can adjust it while playing.
With this, you can freely change the speed of the character just by changing this value in the unity room.
Wow, it flies a lot.
That's right.
Wow, it's fast.
What will happen if you set "jump" to 2000?
Will it disappear?
Wow, it disappeared!
Disappeared?
Outside of the screen.
Disappeared!
Go ahead, go ahead.
You jumped too high, didn't you?
The premise is to create an action game like "Rockman".
So, it would be nice if you could jump like "Rockman".
"Rockman"?
Like "Rockman".
Oh, you surprised me.
I'm sorry.
Also, if you change the gravity, you won't feel like you're floating.
Oh, I see.
Even if you want to increase the jump power,
increasing the number of jumps and decreasing the gravity will make it feel completely different.
So, you can change the fun of the game with these adjustments.
I see.
How does it change?
The "fluffy" jump.
Or the "crunchy" jump.
It also depends on the world view and the taste of the picture.
So, you can decide the parameters while thinking about various elements.
I see.
In order to create a game, it is very important to determine the number of jumps and the number of gravities.
It looks like this, but is it too high?
But it looks good.
Oh, it's good.
Oh, it's good? Then, let's go with it.
Then, since the number is doubled, it's not the same, is it?
Oh, you're right. You have a pretty "fluffy" feel, don't you?
Oh, you're right.
Oh, it's completely different.
That's right.
The initial speed of the jump and the gravity are so different.
Oh, it's interesting.
Next, set it so that you can side-scroll according to the movement of the character.
It's a side-scrolling action game, so you have to make it scroll.
There are several ways of scrolling, but the easiest one is to stick the camera to the character.
Oh, that's good.
Drag and drop the main camera of Hierarchy to the player.
Do you want me to put it in here?
Then, set the X of the main camera to 0.
I think it's at 511 now.
Oh, this one.
Position.
Set it to 0.
Then, if you press play,
Wow, that's amazing!
it will follow you.
It's following me. The sun is already hidden.
It's following me.
And if you jump, it will follow you.
But Rockman doesn't follow you when you jump.
It didn't follow me.
Right. It only follows you when you jump.
Actually, there are two ways of chasing the camera.
What's this?
Imagine that there is a character and this green thing is the camera.
The method I just showed you is to make one object for each child of the character.
Then, when the character moves, the camera moves as well.
That's the mechanism I just showed you.
What I'm going to do now is to make the X and Y coordinates of the character.
There is also a Z coordinate, but it's two- dimensional, so it's XY.
When you look at the X coordinate, the X coordinate of the camera is also the same.
The Y coordinate doesn't move.
Like this, you can make a camera that only follows you sideways, right?
Like this, right?
Oh, I see.
You can attach a camera to it.
The mimicry example that the teachers sympathized with is three-dimensional.
Challenge programming in a sideways scrolling action game like Rockman.
The next is to move sideways according to the movement of the character.
Uh, you look at this X and the X coordinate of the camera is the same.
The Y coordinate doesn't move, so it's zero.
Like this, you can make a camera that only follows you sideways, right?
It's like a kickstand.
When you take a children's running at an automatic sports festival, you can't move like this, so you move like this while holding a kickstand, right?
Oh, I see.
You can only attach a kickstand camera?
Yes.
Is it a kickstand?
That's right.
That?
Yes, that's right.
Yes, yes, yes.
Well, it's close.
Thank you very much.
It's not like this, it's a parallel movement.
Yes.
Then, right-click in the project window's main menu and select "Create C# script".
The second one from the top.
Then, well, you can call it whatever you like, but something like "colo-camera".
Ca-me-ra.
Yes.
Then, well, let's open it up.
Yes.
Well, we need to decide what we're going to follow, so within this "update" that's written here, it's a little long, isn't it?
This dot game object dot transform position.
Position.
What would it look like if you translated this "this game object" that you wrote into Japanese?
"This" is this thing here, this "colo-camera" that's attached to it.
I call myself "this".
Then, my own game object, in other words, this whole thing.
I see, I see, I see.
Then, this game object that I have attached to me, "transform" is what I'm talking about.
I see, I see, I see.
Then, "=newvector3(target.position.x,0,0)".
"()".
You can put it all together into one line, or what I like is to open it up like this, and then open it up like this like this.
That's my own trend.
I can't see my own trend.
My own trend isn't reaching you.
If you could zoom in like this, Kobayashi-san would be able to see it.
Wow! The trend has reached!
It's like "x", "y", "z".
"0" is like a comma, it's not a comma.
Do you divide it like that?
There are times when "x" becomes longer.
I see.
Now it's "0", no, it's not "0", it's "-10".
What?
Let's say it's "-10".
That's dangerous. It's the last one, isn't it?
That's right, it's the last one.
The last one is "-10".
It's "-10".
The camera...
If you don't pull it, you can't see it, so you have to pull it towards the minus side of the screen and jump.
Even at an athletic meet, if you're running, your father's distance is "-10".
That's why... Well, I like it like that, but I can't go near it. It doesn't show up.
It doesn't show up, huh...
To summarize the programming I just wrote...
The camera in the game is a little pulled back from the game screen and doesn't move vertically.
The horizontal direction follows the character.
Then I'll drag and drop the follow camera I just made onto the main camera.
I'll drag and drop it onto the inspector.
Once it's attached, you know the target of the main camera, right?
Do you know what I'm going to put in here?
Huh...
- A player? - A player.
A player, correct.
Here, under the main camera on this "hierarchy"...
Well, for me, it's right here.
I'm going to bring it here.
Okay.
- Here it is. - A player.
Now, let's play it.
Oh, it doesn't react to the jump.
Oh, wow!
You can see the sun.
You can scroll horizontally and it doesn't move vertically.
- That's how you made it. - I did it!
Next week, we'll make it look like a real game.
Oh, I'm looking forward to it!
Well, that's all for today.
Himiki, can you say a few words?
Sure.
Today, we did "saving goldfish," but...
I want to say "fairties," too.
- Fairties are gods. - Huh?
If 100 people said "fairties," I'd say "fairties!"
Today, we did "saving goldfish," but...
I want to say "fairties," too.
I thought it was important to look at the flat surface and check the state of the goldfish while "saving" them, and when I played the game, I could feel again that you have to jump to the last minute or you will fall.
Excuse me.
It's not this one.
It's not this one, either.
I felt something strange about it.
What's wrong?
Is it a copy?
That's rare!
No, no.
Oh, you know...
Show me your notebook.
No, I don't want to show it to anyone.
You're stingy.
I feel like I've learned something weird at some point.
Excuse me.
What's wrong?
Do you have my notebook?