Bevy Tutorial - States, Timers, and Encounters (Ep3)
Channel: Logic Projects
Date: 2022-03-24

UPDATE: In Bevy 0.7 Timers cannot be stand alone components anymore so move the timer to the screen fade struct.  https://github.com/bevyengine/bevy/commit/6f111136b9f2ebd5ab0975389f4c810242d1645d

In this tutorial we add wild encounters to our RPG.  We cover using states in Bevy to run different systems when the player is in the overworld versus when it is in combat.  We also cover timers and use them to add some basic polish to our game.

Discord Invite: https://discord.gg/w674Ze7ud7
Tutorial Github: https://github.com/mwbryant/rpg-bevy-tutorial/tree/tutorial3

Resources: 
Final Game: https://github.com/mwbryant/monster-fighter
Bevy: https://bevyengine.org/
Bevy Cheatbook: https://bevy-cheatbook.github.io/
Bevy Examples: https://github.com/bevyengine/bevy/tree/main/examples

Chapters:
0:00 Intro
0:19 Encounter Tiles
1:27 Bevy States
3:02 Showing/Hiding The Player
5:46 Bevy Timer
7:18 Enemy Spawning
8:43 Fadeout Effect
11:23 Outro