• 9 hours ago
東京パソコンクラブ ~乃木坂46×ゲームプログラミング~ 2025年3月7日 乃木坂46が格闘ゲームのプログラミングに挑戦!
#EnglishMovie #cdrama #drama #engsub #chinesedramaengsub #movieshortfull

Category

📺
TV
Transcript
00:00Thank you for joining us this week.
00:03Thank you for having us.
00:05Today, we are going to do programming for the first time in a while.
00:10It's been a while.
00:12It's been a while since we did a programming show like this, right?
00:15Yeah.
00:16I'm so happy.
00:18Speaking of which, Kobayashi-san is here as our host.
00:24It's been a while.
00:27How long has it been?
00:30It's been about half a year.
00:33Maybe a little longer.
00:36It's been a while since we did a show together.
00:41She came to see us live.
00:43I think that's the best.
00:47People don't change after half a year.
00:51Kobayashi-san doesn't change at all.
00:55She doesn't change at all.
00:57She still looks great.
00:59She still looks great.
01:25Good evening, I'm Hato Rika from Kogezaka46.
01:46It's been snowing a lot lately.
01:49I'm from Iwate Prefecture, so it's been snowing a lot.
01:55It's been a while since we met Kobayashi-san.
02:00I was wondering what you've been up to lately.
02:03I'm going to ask you some questions.
02:07The first one is,
02:09Today's show was all about Shuu's face.
02:14I remember it well. I'm on the past VTR.
02:20I'm glad you announced it.
02:22I saw this.
02:24I saw this.
02:26I thought we were there.
02:29Why did you smile?
02:32Because I remembered it.
02:35Kobayashi-san watched the last episode of programming.
02:41In the quiz to answer the necessary variables to make you jump,
02:46GVF
02:48Gravity
02:50Speed, jump power
02:53The correct answer is...
02:56The necessary variables to jump are...
02:59Gravity
03:00Vertical speed VY
03:02And jump power.
03:08You got it right.
03:11Kobayashi-san was looking at you on the other side of the TV.
03:16There's another one.
03:18This is the only one.
03:20When I don't have a turn, I go into the air on the other side of the screen.
03:26Why?
03:28When I remember it strangely, I can't sleep.
03:31Did you jump when we were on the show?
03:36I didn't jump at all.
03:38I tried to react quickly.
03:44Did you practice in the air?
03:47By the way, do you remember what you jumped at?
03:51I don't remember.
03:55I don't remember.
03:59She said something with a spinal reflex.
04:03I want you to teach me again.
04:07I want you to take a video.
04:10Kobayashi-san, please take a video next time.
04:14Let's move on to the actual programming.
04:17This time, I made a fighting game.
04:21At the end, I want you to play a game.
04:26This time, we're going to make a fighting game.
04:30First, we're going to make a fighting pose.
04:36Let's decide who wins rock-paper-scissors.
04:38Rock-paper-scissors.
04:40Let's go.
04:42I won.
04:45I won.
04:47Let's do it at the end.
04:50Let's do it at the end.
04:53First of all, Ayati.
04:56I won.
05:00That's great.
05:03Next is Hayashi.
05:05I'll go back in time.
05:10Hayashi, is that a catchphrase?
05:14At the end, Yamiki.
05:15Make sure you decide.
05:18Rock-paper-scissors.
05:20Rock-paper-scissors.
05:26What does that mean?
05:28I don't know.
05:30It sounds like a catchphrase.
05:33Yamiki, make sure you decide.
05:37Let's start programming.
05:41Since this is a fighting game,
05:44I think the movement of the characters is important.
05:48I'd like you to think about what kind of movement you want.
05:56I'd like you to think about what kind of movement you want.
06:02It's a very aggressive game.
06:05It's a fighting game.
06:06I see.
06:08The three of us thought about what kind of movement we wanted.
06:13Jump.
06:14Jump.
06:15Two-step jump.
06:17Jumping.
06:20Crouching.
06:23It's something you can avoid.
06:24Protect.
06:27Barrier.
06:29Spinning kick.
06:31It's hard.
06:34Rotation.
06:36Rotation.
06:37It's like dodging.
06:41It's like dodging.
06:44Can we do that?
06:47It's complicated.
06:49It's difficult.
06:52Since it's difficult to move in a complicated way,
06:54we decided to make it a basic movement.
07:00Crouching.
07:04Jumping.
07:09Punch.
07:12These three movements are essential for fighting games.
07:15Can we make all of them?
07:18Let's learn from Kobayashi-san and make a fighting game.
07:24Let's make the characters.
07:27Right-click where there is no hierarchy.
07:31Click Create Empty to create an empty game object.
07:35What should we name the characters?
07:37That's important.
07:39You can name them as you like.
07:42Name the characters.
07:46In Japanese?
07:50Not in English?
07:51English is better.
07:55What should I do?
07:58Male or female?
08:00It doesn't matter.
08:01I drew a masculine silhouette.
08:06Masculine?
08:10Yumiki came up with a cool name for the characters.
08:14It's a cool name.
08:15Fiji.
08:18By the way, Ayati is the strongest.
08:21Hayashi is Mukimuki-kun and Mei-Mei.
08:23They both look strong.
08:25I'm going to add a picture here.
08:29Right-click on the character.
08:32I'm going to name it Square.
08:39Square.
08:42After adding the picture, prepare the necessary script to write the program.
08:48Name the script with the same name as the character.
08:57Now we are ready to program.
09:01This time, I'm going to teach you about the verification system.
09:08Verification?
09:10Verification is a system in which different class of children can verify the movements of their parents.
09:19For example, let's say there is a function called crying in the animal class.
09:25If you inherit this animal class, you will have the ability to cry to both dogs and cats.
09:35However, cats don't just cry, they meow.
09:41If you want to do this, you need to overwrite the meowing of the cat itself, not the animal.
09:48This is called overwrite.
09:52While using the crying function of the animal, you overwrite the meowing of the cat.
09:59This time, I'm going to use this verification system to program.
10:04This time, I made a player.
10:07It's based on all the verification systems.
10:09So I'm going to change the MonoBehaviour on the right to a player.
10:16I'm going to change it to a player.
10:22Now, I'm ready to verify the movements of the parents to the characters.
10:30Let me tell you what's going on in this player.
10:33If you click the player while holding down the control, you can see the contents of the player.
10:39Wow, there's a lot of them.
10:41Wow, that's amazing.
10:43It's a proper crouching jump.
10:46There are a lot of things that parents need in fighting games.
10:52But that's not the end of the programming.
10:57Let's write a program for the character itself.
11:01First, prepare the variables for standing, crouching, punching, and kicking.
11:12Next, prepare the variables to switch images depending on the movement of the character.
11:19Let's save it and go back to Unity.
11:23You can see that a lot of variables have been added to the right.
11:26Wow, there's a lot of them.
11:29Here, I'm going to bind T to Transform and GFX to Square.
11:37By the way, this isAttack, isDamage, and isGuard are inherited from the player's program, so they look like this.
11:49I think the sprites at the bottom are set to 0.
11:54I'm going to put all the actions in here.
11:57There are 10.
12:00I'm going to put 10 in here, and I'm going to expand the left triangle.
12:04I think there will be 10.
12:07Wow, that's amazing.
12:10I'm going to put an action picture in here.
12:14Where is the material?
12:16There is a folder called Action.
12:19Wow, that's amazing.
12:21There are a lot of poses in here.
12:23It looks like a mole.
12:25I have a mole.
12:28I'm going to bind all the action images to the elements.
12:33When I'm done binding them, I'm going to drag the image in the square and adjust the size.
12:41Now I've got the character in place.
12:45Now let's start writing the program.
12:49This time, I'm going to split the update into two parts.
12:53An update for processing and an update for displaying.
12:57How do you split it?
12:59If the processing and the display are the same, it's easy to mess up in fighting games.
13:05So I'm going to split it into two parts.
13:09First, I'm going to split the character image display and processing into two parts to write the program.
13:16Next, I'm going to prepare a variable that represents the state of the character and a variable that represents the duration of the attack or damage.
13:25From here on, it's going to be a lot of work.
13:32That's the switchboard.
13:35What does the switchboard mean?
13:37It's a little bit more complicated.
13:42I'm going to write a variable in the switchboard.
13:52In this case, it's a state.
13:54What is this state?
13:57For example, if the state is a case, a state.stand, it will execute here.
14:14If the state is a case, a state.crouch, it will execute here.
14:25If the state is a stand, it will execute here.
14:29If the state is a seat, it will execute here.
14:34It's a high-definition split.
14:37In this case, I want to change the processing depending on the state.
14:42First, I'm going to write a state that represents the state here.
14:46And I'm going to write what kind of state it is in the case.
14:51If it's standing, I'm going to write a stand that represents the state it's standing in.
14:57It means that the processing in this will be executed.
15:02I'm going to copy this and write it when I'm in another state.
15:07If I can do that, I'll copy and paste the same thing into the update for the display of the image.
15:14Next, I'd like to set up how the characters will move when I press a button.
15:21This is a battle, so I need to assign buttons to two characters.
15:27It's hard to set them up one by one, but this time I'm using a formula.
15:36Just by writing the variables for the characters of Is One P and Is Left, which are created by the player based on the formula,
15:43you can shorten the program.
15:48This is what it looks like when you actually write it.
15:52Is One P goes up when you press W.
15:55Is Left goes up when you press the up arrow.
15:59You can write it all together by using the verified variables.
16:05I'm going to set up which buttons to go left, right, down, or attack.
16:13You can get the buttons to move in one or two players.
16:20But there's one more thing you need.
16:23The back button.
16:25The back button?
16:27You can use it to guard whether you're on the right or left.
16:31I'd like to determine if this is the back button.
16:35In a fighting game, if you go in the opposite direction from the opponent, you'll be guarded.
16:43So if you're on the right, you'll be guarded if you set it up like this.
16:49Now you can jump over the opponent and guard even if the direction changes.
16:57Now that we've set up the buttons, let's move on to the characters.
17:03First, we need to prepare the variables for the movement speed in the horizontal direction.
17:08Here's a quiz. What are the other two things you need?
17:13There are two more things, right?
17:15I don't want to say it.
17:18Do you watch our individual videos?
17:22Yes, we do.
17:23Wow!
17:24Are you a family?
17:26Yes, we're a family.
17:31The original game, Renpa Tou, is now on sale for 980 yen.
17:38We'll be sharing our thoughts on the game on the show, so please give it a try.
17:46Now that we've set up the buttons, let's move on to the characters.
17:49Here's a quiz. What are the other two things you need?
17:52There are two more things, right?
17:54I don't want to say it.
17:59I don't want to say it.
18:01Oh, I know!
18:04Jump?
18:05You need it when you jump.
18:07Jump power?
18:08Jump power is good.
18:09Gravity?
18:10Gravity.
18:12That's all.
18:14Okay.
18:15You got it right.
18:18I'm glad you were able to do it in the last episode.
18:21You can not only adjust the jump power and gravity, but also speed, attack time, and attack duration.
18:32Now that we have the variables, let's move on to the character coordinates.
18:41Oh, it moved with the arrow.
18:45Now you can move horizontally.
18:47But now there's only one character.
18:53Drag the character from the hierarchy to the asset.
18:58Drag the character from the asset to the hierarchy again.
19:04Now there are two characters.
19:07Adjust the position so that the two characters do not overlap.
19:12Then...
19:17Now both characters can move.
19:21Next, I'll show you how to switch images depending on the state.
19:27First, I'll show you how to switch images while standing.
19:32If you're standing and attacking, you'll see an image of 1.
19:35If you're standing and guarding, you'll see an image of 2.
19:41In this way, you can use the same image when crouching and jumping.
19:48So I'm going to cut this part.
19:52What?
19:53You're going to cut the brake of the seat?
19:55If you cut the brake of the seat, you can use the seat and jump to switch images.
20:05I see.
20:07Now I'm going to show you how to switch images while crouching and jumping.
20:16In the same way, I'm going to show you how to switch images while standing and guarding.
20:25Now that I've shown you how to switch images, I'm going to show you how to jump.
20:31Stand in the block.
20:36If you're pushed up...
20:39If you're pushed up...
20:42VY?
20:44VY.
20:45VY.
20:46VY.
20:47VY.
20:48Equals...
20:51Jump power.
20:56That's great, Yumiki.
20:58The program when you jump is perfect.
21:02Now that I'm pushed up, I can jump.
21:07And I'm going to write down the gravity when I jump in the switch section.
21:14If I write down the landing process, the movement of the jump is complete.
21:18Can you really jump?
21:21What?
21:23That's amazing.
21:26I'm going to practice.
21:27I hear something.
21:30It's Yumina.
21:31What?
21:32I think it's Ichika.
21:38Tokyo Basucon Club will broadcast after the program is broadcast on TVer.
21:43The program will continue for three years, four years, and more.
21:47Please click the button to subscribe to TVer.
21:53Challenge to make a fighting game.
21:55Can she jump?
21:59What?
22:01She jumped too high.
22:02Yumiki jumped too high.
22:03That's amazing.
22:06And Hayashi...
22:09She jumped too high.
22:10I can't go back.
22:12I was surprised by her jump power.
22:16It seems that the gravity and jump power were the problem.
22:20I changed the value of the jump power.
22:24She jumped.
22:25It's a good jump power.
22:26It's a good weight.
22:27I can't jump anymore.
22:28How about you, Ayu?
22:29I can't jump yet.
22:33I couldn't do anything about it, so I asked Hayashi to look at it.
22:38It seems that the position of the program was the cause.
22:42I had to write it here, not here.
22:47I fixed it and tried it.
22:51It's flying.
22:52That's amazing.
22:54I was able to jump.
22:58And here...
22:59I want to change both colors.
23:03I saw the color on the character, and I wanted to try it too.
23:08You can change the color with that.
23:10You can change it with each square.
23:13You can change it here.
23:14This...
23:16Yes, yes.
23:18I asked Yumiki to teach me and started coloring.
23:23Yumiki said to Hayashi...
23:26Can I change the color of the background?
23:28Yes, you can.
23:30She seems to be interested in the color of the background.
23:33Where is the camera?
23:36Environment.
23:38Environment.
23:39It's here.
23:41Environment?
23:43I think there is a background in the environment.
23:48Background?
23:49Oh, this is it.
23:50It's a background type.
23:52Something color.
23:53Oh, I got it.
23:56Something color.
23:58I asked Ayati to teach me and decided to change the color of the background.
24:06What color will it be?
24:09Ayati and Hayashi are also concentrating on changing the color of the background.
24:14But they don't have much time.
24:17Now that you are done with jumping,
24:20I think we can continue this next time.
24:23Yes.
24:25Thank you very much.
24:26Thank you very much.
24:27Thank you very much.
24:30They are still in the first half of making a fighting game.
24:33All three of them are fighting.
24:39Next time.
24:40The second half of making a fighting game.
24:43Wow, it's amazing.
24:44It's a shovel.
24:45I hit it.
24:46You can also slide.
24:48And it changes when you change it.
24:51Yes, it changes.
24:52Look, it changes.
24:53It's true.

Recommended