1 00:00:04,100 --> 00:00:05,120 ‫Welcome back. 2 00:00:06,180 --> 00:00:06,840 ‫In this video. 3 00:00:06,840 --> 00:00:11,710 ‫We are going to go ahead and set the right perspective and set up the project a little further. 4 00:00:11,730 --> 00:00:21,540 ‫So, first of all, let's rename our player or our character into character and then let's get rid of 5 00:00:21,540 --> 00:00:23,520 ‫the simple character controller. 6 00:00:23,520 --> 00:00:28,350 ‫Because in there, even though it's a simple character controller, there is already quite something 7 00:00:28,350 --> 00:00:29,010 ‫programmed. 8 00:00:29,010 --> 00:00:33,990 ‫And we could of course read the code and try to understand what's going on and all of that. 9 00:00:33,990 --> 00:00:37,650 ‫But at the same time we want to do that ourself. 10 00:00:37,890 --> 00:00:44,040 ‫So we want to be able to create the movement for our player self and understand what's going on and 11 00:00:44,040 --> 00:00:44,760 ‫so forth. 12 00:00:44,910 --> 00:00:45,540 ‫All right. 13 00:00:45,660 --> 00:00:47,460 ‫So let's get rid of that. 14 00:00:47,640 --> 00:00:49,740 ‫Let's remove that component. 15 00:00:51,270 --> 00:00:57,510 ‫As you can see, there are 200 lines of code and he's working with serialized fields and so forth with 16 00:00:57,510 --> 00:00:59,580 ‫enemies, all those kind of things. 17 00:00:59,580 --> 00:01:02,730 ‫And we are going to make it a little bit more simple. 18 00:01:02,940 --> 00:01:07,740 ‫So the next thing is he's using a animator controller, simple animations. 19 00:01:08,190 --> 00:01:09,420 ‫Let's get rid of that one as well. 20 00:01:09,420 --> 00:01:14,400 ‫So press the delete button after having selected the controller. 21 00:01:15,150 --> 00:01:20,060 ‫Then we should change the angle a little bit of our camera. 22 00:01:20,070 --> 00:01:25,620 ‫And before we do that, let's change the projection to orthographic. 23 00:01:25,980 --> 00:01:29,730 ‫We want things to look the same size, no matter how far away they are. 24 00:01:29,760 --> 00:01:31,890 ‫So that's why we use orthographic here. 25 00:01:32,670 --> 00:01:39,210 ‫Next, let's change the position of our camera a little bit and also some other minor changes, because 26 00:01:39,210 --> 00:01:43,370 ‫so far, it's it's not the perfect angle for our player. 27 00:01:43,380 --> 00:01:44,400 ‫So let's do that. 28 00:01:44,790 --> 00:01:52,290 ‫I want to use the X position position of one, the Y position of one and the Z position of minus five. 29 00:01:52,510 --> 00:01:54,780 ‫That's something that I have tested a little bit. 30 00:01:54,810 --> 00:01:58,380 ‫Then I want to change the angle. 31 00:01:58,380 --> 00:02:02,540 ‫So the rotation that we can see here and as well the size. 32 00:02:02,550 --> 00:02:04,560 ‫So let's go to the size of two. 33 00:02:04,590 --> 00:02:10,730 ‫Now, we zoomed in a little bit and now let's rotate just a bit by, let's say 30%. 34 00:02:11,990 --> 00:02:14,440 ‫Actually five should be a better value. 35 00:02:15,020 --> 00:02:18,380 ‫The position of five for the Y value should be a bit better. 36 00:02:18,560 --> 00:02:22,610 ‫Next, we will need to go to free aspect. 37 00:02:22,610 --> 00:02:25,550 ‫So let's change it from 16 to 9 to three aspect. 38 00:02:25,700 --> 00:02:30,710 ‫And the clipping panes is based on how much you can see. 39 00:02:30,710 --> 00:02:32,050 ‫So you can see this one here. 40 00:02:32,060 --> 00:02:33,290 ‫This is what is rendered. 41 00:02:33,290 --> 00:02:40,670 ‫So everything that is in this area here and this clipping pane, this piece here will be rendered. 42 00:02:40,790 --> 00:02:43,000 ‫And that's not exactly what we want. 43 00:02:43,010 --> 00:02:50,720 ‫We want to go to, let's say, minus ten so that we can see a little bit from the back as well. 44 00:02:50,720 --> 00:02:54,230 ‫So what is happening in the back should be rendered as well. 45 00:02:55,280 --> 00:02:55,820 ‫All right. 46 00:02:55,820 --> 00:03:00,800 ‫So next, we should change the character because I don't want the character to move forward. 47 00:03:00,800 --> 00:03:06,260 ‫I want him to move slightly to the top right corner or to top right side. 48 00:03:06,260 --> 00:03:13,340 ‫And so we need to change its rotation and to be precise its why rotation. 49 00:03:13,340 --> 00:03:15,230 ‫So let's change that to 45. 50 00:03:15,230 --> 00:03:22,370 ‫So now he's going to move towards this direction and I'm going to do the same thing with my road part. 51 00:03:22,670 --> 00:03:27,230 ‫So let's change the road part by 45 degrees as well. 52 00:03:27,230 --> 00:03:30,740 ‫So now this is the direction that our player should walk towards. 53 00:03:31,910 --> 00:03:36,800 ‫Now let's duplicate that row part and let's drag the road part. 54 00:03:36,800 --> 00:03:48,890 ‫So let's go here and let's drag a little piece to decide if you want it to be precisely at the edge 55 00:03:48,890 --> 00:03:49,550 ‫of the next one. 56 00:03:49,550 --> 00:03:55,790 ‫You can use command shift or control shift on windows. 57 00:03:55,790 --> 00:03:58,550 ‫Then it will position itself perfectly at the edge. 58 00:03:58,580 --> 00:04:05,900 ‫If it doesn't look the same for you, what you can do is change from global to local because as you 59 00:04:05,900 --> 00:04:09,890 ‫can see, this is the global angle and that one is the local angle. 60 00:04:09,890 --> 00:04:16,550 ‫So the global angle is much more difficult to position correctly where whereas the local one is quite 61 00:04:16,550 --> 00:04:24,500 ‫easy to position, let's duplicate that one again and then let's position it just next to it and again. 62 00:04:24,500 --> 00:04:25,520 ‫All right, there we are. 63 00:04:26,600 --> 00:04:29,990 ‫And now let's go ahead and do that several times again and again. 64 00:04:29,990 --> 00:04:33,920 ‫So duplicate it, move, duplicate. 65 00:04:33,970 --> 00:04:36,860 ‫Now you can create a little zigzag. 66 00:04:38,180 --> 00:04:46,640 ‫So duplicate and move with shift and command so that you position it just at the right angle. 67 00:04:48,170 --> 00:04:57,440 ‫All right, so I'm gonna duplicate it once again, duplicate once again and so forth. 68 00:05:01,510 --> 00:05:06,460 ‫As you can see here, this is how much the player can see and that's how the look the world looks for 69 00:05:06,460 --> 00:05:07,510 ‫him on that platform. 70 00:05:07,510 --> 00:05:09,190 ‫He should move left and right. 71 00:05:09,760 --> 00:05:10,060 ‫All right. 72 00:05:10,060 --> 00:05:13,620 ‫Let's let's change the background of our area. 73 00:05:13,630 --> 00:05:17,380 ‫Let's change the clear flags from skybox to solid color. 74 00:05:17,530 --> 00:05:27,490 ‫And now we can change the color to let's go with a lighter brownish color, brownish gray like that. 75 00:05:27,490 --> 00:05:30,100 ‫Or it's more of a beige or beige. 76 00:05:30,490 --> 00:05:33,640 ‫And then, yeah, that looks a lot better. 77 00:05:34,390 --> 00:05:34,660 ‫All right. 78 00:05:34,660 --> 00:05:37,480 ‫Next, let's change the direction of lighting a little bit. 79 00:05:37,510 --> 00:05:39,430 ‫As you can see here, we have 50 now. 80 00:05:39,430 --> 00:05:45,130 ‫And if we change that to let's say 200, you can see it's dark, it's total night. 81 00:05:45,130 --> 00:05:50,070 ‫So here this is the sun and you can rotate it a little bit back and forth. 82 00:05:50,170 --> 00:05:57,340 ‫It's the lighting and you can see if you rotate it, you can change the ambient lighting or the feeling 83 00:05:57,340 --> 00:06:01,060 ‫that you get for what time of the day it is, and so on. 84 00:06:01,300 --> 00:06:08,860 ‫So this one would be de peu de perfect daytime, 12:00 or something like that. 85 00:06:08,860 --> 00:06:14,560 ‫And then you can play around with the values here until you find something that looks just right for 86 00:06:14,560 --> 00:06:15,040 ‫you. 87 00:06:15,070 --> 00:06:19,090 ‫So this one could be could be a bit better where it's a bit darker. 88 00:06:19,240 --> 00:06:24,220 ‫You can see the road looks slightly differently if we change that lighting. 89 00:06:24,430 --> 00:06:24,940 ‫Yeah. 90 00:06:25,240 --> 00:06:28,450 ‫So play around with it, find something that you like. 91 00:06:28,810 --> 00:06:35,500 ‫And then next what we can do is change the color of the lighting so you can make it a little warmer 92 00:06:35,500 --> 00:06:38,410 ‫or you could make it darker or stuff like that. 93 00:06:38,410 --> 00:06:41,260 ‫So I'm going to do it, make it a little bit lighter. 94 00:06:41,950 --> 00:06:43,120 ‫Yeah, that's it. 95 00:06:43,120 --> 00:06:47,650 ‫So that's just a setup for our looks of the game. 96 00:06:47,650 --> 00:06:50,320 ‫So we have a little map design already. 97 00:06:50,320 --> 00:06:51,400 ‫We've created a little map. 98 00:06:51,400 --> 00:06:53,800 ‫We will do that procedurally later on. 99 00:06:53,800 --> 00:06:56,680 ‫And yeah, so that's just the beginning. 100 00:06:57,010 --> 00:07:00,730 ‫As you can see, by the way, if we start the game, we cannot move the player anymore. 101 00:07:00,730 --> 00:07:02,590 ‫And you might guess why that is. 102 00:07:02,710 --> 00:07:10,240 ‫Well, because we deleted the move controller, so w a SD doesn't do anything anymore and the players 103 00:07:10,240 --> 00:07:11,470 ‫are not animated anymore. 104 00:07:11,500 --> 00:07:18,010 ‫That's because our character does not have an animation controller, and neither does it have a component 105 00:07:18,010 --> 00:07:19,480 ‫that does the movement. 106 00:07:20,350 --> 00:07:20,980 ‫All right. 107 00:07:20,980 --> 00:07:23,860 ‫So let's save that scene and see you in the next video.