Author: Joyce Shen
Posted: July 23rd, 2026
Part 1: The Problem
This week my primary task was implementing a reusable powerup system for War Pigs. Before this feature existed, every round of gameplay followed the exact same flow with no way for the player to influence the outcome outside of drawing cards. I wanted to introduce strategic gameplay while keeping the classic rules of War intact.
One challenge was making sure each power-up integrated cleanly with the existing gameplay loop. Some abilities modified the player's deck, others modified the enemy's deck, and others completely changed what happened after a round ended. Every powerup also needed to update the HUD immediately, activate correctly when the player pressed E, and avoid interfering with existing mechanics such as War rounds, deck counts, and card comparisons. If these systems were not synchronized correctly, players could see incorrect information or create invalid game states.
Part 2: The Solution
To solve this, I created a centralized powerup system inside the main GameMode using an enumeration to represent every available ability. The player can store one powerup at a time, activate it with the E key, and the HUD immediately updates whenever a powerup is earned or consumed.

Each powerup was implemented with its own gameplay behavior while still using the same activation system. For example, Recon reveals the enemy's next card before the player plays, Reinforcements moves the player's top card to the bottom of their deck, Sabotage performs the same action on the enemy deck, and Shield prevents the enemy from collecting the pot after the player's next loss by discarding the played cards instead.
In addition to the manual powerups, I implemented passive gameplay abilities including Hot Streak, Double Down, Battle Hardened, and Last Stand. These abilities automatically track gameplay conditions such as consecutive wins, completed rounds, or remaining cards and award bonuses without requiring player input. During testing I also discovered and fixed several gameplay bugs, including duplicate card reveals with Recon and ensuring Shield only activates after the player's next loss instead of disappearing after any round.
I then wrapped up by redesigned the gameplay HUD to better display powerup information. Instead of using a single text block, I separated the title and description into independent text elements, allowing different font sizes, colors, outlines, and word wrapping. I also added a temporary gameplay hint that teaches players how to activate stored powerups. These improvements make the feature much easier to understand while providing immediate visual feedback whenever a power-up is earned or used.
Overall, the completed system successfully adds strategic decision making to War Pigs while remaining modular enough for future powerups to be added with minimal changes. The feature has been tested across multiple full playthroughs, with only one known issue remaining involving the reset condition for the Last Stand passive ability.






