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

Published: 29 June 2020
on channel: 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.


Watch video Make A Game Like Pokemon in Unity | #12 - Starting and Ending Battles online without registration, duration hours minute second in high quality. This video was added by user Game Dev Experiments 29 June 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 24,716 once and liked it 748 people.