Unity Tutorial: Platform Movement (Extensible, Clean Code)

Опубликовано: 05 Ноябрь 2021
на канале: PitiIT
4,357
149

In this tutorial you will not only learn how to create amazing platform movement but also how to become better programmer.

Assets:
https://pitiit.itch.io/free-2d-fantas...

The project github repository containing assets and code:
Starting point:
https://github.com/x1r15/BasicPlatfor...
After tutorial:
https://github.com/x1r15/BasicPlatfor...

C# & .NET theory:
Enums - https://docs.microsoft.com/en-us/dotn...
Interfaces - https://docs.microsoft.com/en-us/dotn...
Extension methods - https://docs.microsoft.com/en-us/dotn...

Small disclaimer regarding the IInputProvider implementation with Set:
I am aware that implementation of the input provider is not best, in one of the future tutorials I want to replace it with Queue, just didn't want to introduce too much theory as there are already few concepts in the video. Love you all!

0:00 Intro
0:20 Tilemap Collisions Setup
1:05 Character Setup
1:58 Theory - Enums
2:32 Theory - Interfaces
3:13 Theory - Extension Methods
3:35 Horizontal Movement
8:21 Horizontal Movement Test
8:27 Broken (purposely) Jumping
10:40 Testing Broken Jumping
11:00 Getting Stuck on Edges - Fix
11:32 Constant Applying Velocity - Fix
14:23 Testing Fixed Jump
14:29 What's Next?


Смотрите видео Unity Tutorial: Platform Movement (Extensible, Clean Code) онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал PitiIT 05 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 4,357 раз и оно понравилось 149 посетителям.