Make A Game Like Pokemon in Unity | #12 - Starting and Ending Battles

Опубликовано: 29 Июнь 2020
на канале: Game Dev Experiments
24,716
748

This is Part 12 of Make a Game Like Pokemon in Unity Series. In this video, we'll start the battle when the player walks on the grass, and when one of the pokemons faint we'll end the battle and go back to our free roaming state. We'll manage the Free Roam and Battle States by using a Sate Design Pattern and we'll also look at how to use Observer Design Pattern to avoid circular dependency.

Get the complete project files of the series by becoming a supporter on Patreon
  / complete-project-39632268  

Get script files for each part of this series (You can use this to compare with your scripts and find any mistakes)
  / script-files-for-38708232  

Download the art assets needed to follow along with this series
https://github.com/GameDevExperiments...

0:00 - Intro
0:55 - Use State Design Pattern to separate FreeRoam and Battle states
4:01 - Starting the battle & Observer Design Pattern (Events)
8:34 - Ending the battle & returning to FreeRoam state
11:48 - Start new battle when a new pokemon is encountered

If you like this series, consider subscribing to the channel and leave a like on the video to help this channel grow.


Смотрите видео Make A Game Like Pokemon in Unity | #12 - Starting and Ending Battles онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Game Dev Experiments 29 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 24,716 раз и оно понравилось 748 людям.