Vertical Slice

Back

Pokemon Stats

My first task was to create a script that stores key data for each Pokémon, such as name, health, damage, defense, level, and type element. It also included methods for executing moves, which could be overridden to customize each Pokémon’s abilities. This served as the main script for all Pokémon, allowing easy inheritance for different species.

However, AI-controlled Pokémon required unique methods for specific behaviors and move logic, which didn’t fit well within the general Pokémon class.

To solve this, I created a new class inheriting from the main script, adding AI-specific methods. Both NPC and AI Pokémon could inherit from this class, enabling custom behaviors and moves while keeping the core structure intact.

TurnBase System

Next, I developed the Turn-Based System, which is responsible for managing whose turn it is during gameplay.

While working on it, we encountered a small problem: the system wasn’t displaying the dialogue as expected. This disrupted the flow of turns and made it unclear whose turn it was.

We solved this by adding a UnityEvent to handle dialogue calls more effectively. This ensured the dialogue displayed properly at the right time during each turn.

camera angle script

Afterward, I assisted a fellow student with a camera angle script. The goal was to adjust the camera angle during battles so that when a Pokémon uses a move, the camera shifts to provide a better view of the attack.

The problem was that the camera wouldn’t switch angles when needed, which reduced the visual impact of the moves.

We resolved this by using a UnityEvent to trigger the camera change dynamically. This ensured the camera properly adjusted to showcase each attack from the best angle.

Pokemon Sword & Shield Build

First Version of the vertical-slice game!