AISubs v3.7
This time we are in Shimokitazawa.
Yes!
Do you come to Shimokitazawa often?
Yes, I think I come here quite often.
What do you come for?
Basically, I buy clothes in Shimokitazawa and come here for live performances.
I see.
Actually, Shimokitazawa is said to be the birthplace of curry.
Is it a birthplace?
I see.
So, this time we are going to eat curry.
Yes!
Among Shimokitazawa, it is said to be the oldest curry restaurant.
The oldest!
Wow!
Is it the origin of curry?
Yes, it is the origin of curry.
Then, let's go!
Yes!
♪ Break! I'm all alone ♪
♪ My memories are falling apart ♪
♪ Goodbye ♪
Good evening. I'm Sato Rika of Nogizaka 46.
I love curry, and last year, on my birthday,
the staff of the Tokyo Computer Club gave me some curry.
I love it so much! I can't wait to eat some curry!
Around Shimokitazawa Station,
there are more than 50 curry restaurants in Shimokitazawa.
Every year in the fall, the Shimokitazawa Curry Festival is held.
More than 100,000 people come together to wait for curry.
This time, I'm in Shimokitazawa, a curry-themed district,
to visit the famous restaurant, Nasoyaji, which is said to be the oldest restaurant.
Before Shimokitazawa was called "the city of curry,"
- they made curry here. - Oh, I see.
You've been working hard all this time, haven't you?
I think it's because of the restaurant. It's very Shimokitazawa-like.
It's calming.
- Curry doesn't depend on the ingredients. - Curry?
Wait, "curry" sounds weird.
- Curry is for fish. - So, fish is "curry."
- "Curry." - "Curry."
- Say it again. - Which one?
- Both. - Fish is "curry."
This is "curry."
- I've never heard of it. - It's not difficult.
I like it sweet and spicy.
- I see. - Sweet and spicy.
You seem like a mature person.
- A mature person? - Is it okay?
I don't have any children yet,
but my siblings aren't fully grown up yet.
- So, they like it sweet and spicy. - I see.
- You're hiding it. - No, I'm not.
I've never hidden it.
I wonder what it is.
Like "lories".
You're pretty serious about "lories", aren't you?
No, but I've liked my mom since I was little.
I have an image of putting it in when I make curry.
- Your mom likes "lories" - She seems to like "lories".
- It's a good thing, isn't it? - "lories"
In the middle of curry talk, where flowers are blooming...
- Enjoy your meal. - Thank you very much.
- Wow, there are eggplants. - Eggplants?
- And it's amazing. - Cute.
- It's cut into pieces. - It's cut into pieces.
What we're going to eat this time is...
chicken, beef, vegetables and boiled eggs.
It's a special curry.
Thank you for the meal.
What does it taste like?
It's gentle.
But I can catch up with it later.
- This spice? - Yes.
It's kind of sweet.
- Yes, it has a sweet taste of vegetables. - Vegetables.
It's really good.
- It looks very wild... - Yes, it is.
but it seems like she's a very gentle person.
It's not too spicy.
It's a proper spice, so I can't catch up with it.
I've never said "hee hee" to anyone...
since I was little.
- The meat is so tender. - Which one did you eat?
- The beef. - The beef.
I could easily separate it with a spoon.
- It's so tender. - It's so tender.
It's so good.
- This is for you, Rika. - Oh, you're so kind.
But I won't give it to you.
She's saying "hee hee" while narrating.
Damn it, I'm jealous.
I wanted to eat it, too.
I'm definitely going next time.
The eggplant is amazing!
Is it amazing?
It's so sweet!
And I haven't forgotten about the eggplant itself.
It doesn't go with the curry either.
You can really taste the eggplant.
This is amazing!
But it's soft.
It's so soft.
Why?
And this shop, which is popular for dessert after meals...
Honey yogurt in an old-fashioned bottle.
It's like drinking yogurt.
It's so soft!
You're right!
It's so soft!
This is fun!
Thank you for it.
It's so soft!
I feel like I can drink it.
It's so sweet!
The honey is dripping.
It's so good!
Is it good?
It's fun!
The spicy spice in the curry just flows in my mouth.
It's harmonized.
It's infinite.
It's dripping.
The honey is so good!
It's dripping!
After enjoying the dessert after meals, it's time for programming.
But before that...
Fashion check by the three of you.
What do you pay attention to?
Yes.
First of all, I'm wearing a brown one-piece today.
This part looks like a pocket, and it seems like I can put a lot of things in it.
Vest?
Yes, it's one-piece because it's stuck together.
This part is like a space and I can put anything in it.
You can put candy in it.
No, it's like a chest board.
It's like a chest board.
No.
I'm wearing this luxurious velvet fabric and tweed heart.
It's like winter.
It's cute.
Belt is also one-point.
It's cute.
My coat was very unique and red, but when I took it off, it was already white.
So in one word,
"Abekobe".
I haven't remembered it recently.
Now that we've heard the three of yours particular points, let's do the programming.
Today's programming is...
Now that I think about it, we've been learning a lot of things for the past two years.
Actually, there's something I've heard many times, but it's a little difficult and I've been pretending not to look at it.
Where is it?
I think you've heard it many times, but it's called "right judgment".
"Right judgment" that we've heard many times.
Actually, it's very difficult to really learn.
But learning how to make games is an essential knowledge that we can't avoid.
How did you know it was "right judgment"?
When we did the narration once for this show, we were just talking about "right judgment".
I've heard it a few times, but...
Right
You only know the short form?
That's right.
By the way, Yumiki and Yoshida, is "right judgment" really something like that?
If you put "right judgment" on this object, this other object will hit you.
If you don't put "right judgment", you'll get hit.
That's right. That's right.
That's one way of using it.
For example, you can't pick up items or hit mold and can't move.
"Hatena" box.
That's how it is for all of them.
I see.
You can't hit mold and can't move.
For example, if you want to make a base, but you can't hit it, you'll just slip through it.
You're going to make the ground and ceiling.
If you don't, you'll be a ghost.
That's right.
I can only give you a rough explanation like that.
The three of them have only been taught roughly.
It's been almost two years since the show started.
Let's take a step forward at this timing and learn how to hit from scratch.
Today's topic is science, unlike usual.
Let's take notes and ask questions to Mr. Kobayashi as soon as we know what it is.
As a player character, I'm going to set up a rice ball for now.
A player's rice ball is already programmed so that it can move up and down and left and right.
Let's make an enemy-like object here and try to hit it.
There are actually two ways of hitting a rice ball.
One is to use a rigid body as you know, and the other is to use a collider.
But this time, we're not going to do that, but we're going to program it properly.
I think you did something similar when you were playing Watage-kun.
Is it because it goes up?
I think you made a judgment of Watage and the collision of the wind once.
Oh, it's a hit judgment, isn't it?
But that's one player character.
And there's a lot of wind coming out of it.
So the moment the wind came out, I found out about the player character in this hierarchy.
And I was looking to see if I was approaching the player character.
For example, in a shooting game, you don't know when the enemy will come out and you don't know when the player will shoot.
So you can't find it now and get a hit judgment for the player and the ball.
So you need to put the enemy in a list of enemies and see if you're hitting them or not.
If you have a hit judgment on multiple things that you don't know when they will come out, you need to put that target on a list and see if you're hitting it or not.
First, create an object that is an enemy and create a list that manages the enemy.
List... Enemy...
And this is the key point - static.
Static... What does static mean?
It's hard to explain in terms of concepts, but static doesn't mean that the object itself has a value.
For example, you can set the enemy to move at a speed of 10, and the enemy to move at a speed of 20.
But static has data tied to the object itself.
So it's managed in one go?
That's right, it's managed in one go.
So if you change one, does it all change?
It all changes.
For example, if you add static and change the enemy's speed from 10 to 100,
all of the objects on the list will speed up to 100.
When you create a list, you can define it like this with "new list".
This is very early, but what is a list?
A list is an array of enemies.
It's like an array of things.
Next, we'll talk about how to add enemies and remove enemies from a list.
Here are the functions you need - "awake" and "ondestroy".
"Awake" is pretty much the same as "start", but it's executed much faster than "start".
"Awake" is when an object is placed on a screen and executed the moment it's created.
At the moment of "Awake", you put yourself on the list.
"Add" "This"
What does "On Destroy" mean?
"Last"?
"Last"! "Last"!
Wrong!
"Disappear"?
"Disappear"!
That's right!
"Disappear" is when an object is placed on a screen and executed the moment it's created.
For example, when an object is placed on a screen and executed the moment it's created.
Or, when an object is placed on a screen and executed the moment it's created.
What you do there is, of course, remove yourself from the enemy list.
The more enemies you place, the more you are on the list.
The fewer enemies you place, the more you are on the list.
I see.
By the way, not only enemies but floors and such.
If you have a floor with blocks like this, a wall like this and a floor like this,
you can place this, this and this on the list.
And you can see if you have hit the enemy or not.
Can you memorize this as a set?
That's right.
You can memorize this part like an assignment.
This is a method you use a lot when you get an enemy list hit rate, so remember it well!
At the same time, you create a hit rate function called by the player.
It's called "public" because it's called by the player.
You say whether you hit it or not with "yes" or "no".
You had those variables, right?
The ones that make you say "yes" or "no".
The ones that make you say "true" or "false".
Yes, the ones that make you say "true" or "false".
And what was the "form" of them?
Oh, it's like "sudden hey", isn't it?
- It's like "sudden hey", isn't it? - Something like that.
- No, it's not like that. - Something like that.
The ones that are pronounced "kata" are "into" or "float" or "string".
- "Bool"! - "Bool"!
- It's "bool". - Wow!
- Amazing! - Amazing! It came out!
- "b-o-o-l", "bool". - It's "bool"!
- "bool" came out in the first "if" part. - Oh!
- You were doing it quite early. - That's right.
The ones that are included in "if" are "bool".
By the way, the "get" key we use a lot is also "bool".
- "get" key is "bool". - See?
- Oh, I forgot about that. It says "bool". - Oh, it's "bool".
- Oh, it's "bool".
- We'll return "bool". - Yes.
Let's say it's a hit.
HIT
And the important thing is...
- Here. In this bracket. - Yes.
- My voice went up. In the bracket. - I was worried about you.
- We all ignored you.
In the bracket...
- you have to think about what and what will hit. - Yes.
Yes.
The criteria for hitting changes depending on the shape of the hit.
This time, we'll hit with the center of the rice ball and the outer circumference of the circle.
- In other words, you need the center of the circle and the radius. - Yes.
You can hit with the center of the circle.
So you can hit with either a vector 2 or a vector 3.
Since the position of the transform is a vector 3, you can hit with a vector 3.
Since it's a 2-dimensional game, you can hit with information with or without x and y.
You can hit with information with or without x and y.
The difference between 2 and 3 is dimension, right?
That's right. X and Y, and 2 is X, and 3 is X and Y and Z.
I understand whether or not there is a Z.
In the same way, we decide the criteria for judging the enemy side.
So, this is really useful.
For example, now it is a circle from the center point, but if there is a floor and a circle is on top of it, the parameters will change a little again.
Depending on the shape of the enemy, the parameters will be completely different.
Even if it is different, is it okay for it to be a floor?
If it is different, the number of members will change more and more.
The value of this variable will become different more and more.
I think it will be difficult if you don't take one more step in that area.
Then let's stop.
For now.
This time it is a judgment.
Once you have a program that becomes a criterion for judgment,
Next, about processing when hit judgment occurs.
If you write it in a program, it will look like this.
If the magnitude is smaller than the radius ...
Is this correct? Isn't it correct?
If the magnitude is smaller than the radius ...
Isn't it correct?
Magnitude is the length of the vector.
In short, the distance between the dots of the line ...
Ah! Then it is correct!
It is correct.
In other words, this program measures the distance between the center of the rice ball and the center of the enemy.
If the distance is smaller than the radius of the circle, it is correct.
If it is larger than the radius of the circle, it is not correct.
I'll call it out for you as a player.
One enemy in the enemy list will be called "e" one by one.
If you hit it here, it will show "hit" on the log.
If you hit it, it will show "hit" on the log.
It won't show up on the screen?
It won't show up on the screen.
We haven't made it that far yet.
If it shows "hit" on the log, it means that you hit it.
That's right.
We haven't made it that far yet.
I'm sure you know what I'm talking about.
We haven't made it that far yet.
You can get the radius "r" if you get the radius "÷2" of this circle.
Let's do it.
It shows "hit".
If you hit it, it means you hit it.
Everything is white and heavy.
When Hayashi was talking in the opening, I thought my breath would get white.
I was playing a machine gun alone.
Get the radius "r" from "÷1".
Let's check if we can program it properly.
Hit.
It's true.
Hit.
It shows "hit".
If you hit it, it means you hit it.
It's true.
There is only one radius "r" on the list.
For example, if you have a lot of enemies like this, you can get the radius "r".
If you happens to collide with the enemy in a fight, it shows "hit".
It's a pity that the enemies don't collide with you.
It's fine up to here.
In other words, the center and the center of the rice ball.
If it's a white place, it's barely safe.
That's right. The center of the rice ball is probably here.
I see.
It's not ready yet.
I see.
This cross intersection, this point, just above the glue.
This area is the center, so it's still fine.
That's right.
That's why, when I made the game last time,
I wrote in my impression that my gorilla's correct judgment hasn't changed.
That's right.
In general, this is how you add correct judgment.
Thank you for your hard work.
Thank you very much.
With a tight head, the three of them have a lot of words in their brains.
Even if the time has come for us to process our guesses, it's okay, right?
I think it was difficult in terms of content, but I was taught to do it with concentration.
But I understood the meaning of it in my head.
I think it's a different problem whether we can actually do it or not.
Certainly.
I understood the structure.
If you can understand the structure, you can see what's already been put together like this.
You can read people's actions.
I think that's big.
Mimiki already has an aura of knowing.
Only Sokatsu...
I see.
Yes, uh...
I understand.
I do.
I have a lot of siblings, so I rub gently.
I rub until I'm satisfied with the way he does.
[Mimiki's horrible teammate, Igari]
"Tokyo Basketball Club" airs after the broadcast on TVer and other platforms.
The show will continue for three years, four years and more.
Please click on the "Like" button on TVer.
The thing that Shimokitazawa and this show have in common is that we don't pretend like we don't see it.
The curry shop in "Tokyo Basketball Club" also had a fashionable atmosphere that you wouldn't think it was a curry shop at first glance.
But when I went in, it smelled like a curry shop.
I didn't know until I went in.
I pretended like I didn't see it, but I didn't know.
But this time, I pretended like I didn't see the programming, and it was okay.
I didn't know for a long time, but when I looked inside, I thought I had discovered something new again.
So I'm grateful to Kobayashi-san.
Next time... "Sabukare's sacred place"
Shimokitazawa's shopping!
- Wow, it's been a while since we came to Shimokitazawa. - Wow, there's a lot of stuff!
- Cute! - Ah, there's Japan, too!