PsyDuck Hunt Tutorial - Episode 13 - Pokémon AI

Опубликовано: 08 Июль 2026
на канале: DrBo6
353
2

In this module we are installing a very rudimentary switch and enum-based state machine to let our Pokémons roam around the map and respond to our actions.

Goals
Implement a switch and enum-based finite state machine.

Timestamps
0:00 Intro
0:19 Finite State Machines
3:50 Psyduck Animation Controller
6:44 Setup Switch() and Enum State Machine
19:27 Chill to Saunter States
28:11 Invoke() and RepeatedInvoke()
34:11 Saunter to Chill States
35:58 The Flee State
42:26 Debugging a null reference exception
44:43 Adding the Flee behavior
53:20 The Dig State
1:00:15 Handling Captured Pokémon
1:02:39 Remove Pokémon that dug
1:06:42 Fixing a bug in GetValidDestination()