Affinity TD
Tools | Technologies
Unity, Mirror Networking
Affinity TD is a tile-based, multiplayer tower defense game for PC that gives players the freedom to place towers to strategically shape enemy paths. The game's name comes from the fact that both towers and enemies have elemental affinities and players must use the right towers to exploit enemy weaknesses.
I worked on this project with Johannes Fung from February to April 2024, but unfortunately, we weren't able to complete it due to a lack of resources and a clear long-term vision.
Roles
Gameplay Programmer, Game Designer, Technical Artist
Features
One of the game's main strategic features was the ability to manipulate enemy pathing by placing towers and paths along the map.
What the game looks like without the curve shader.




Original enemy pathing. The yellow tiles are enemy spawning points and the pink tile is the enemy destination.
Placing towers and paths to force enemies through a longer path.
This was possible thanks to a dynamic pathfinding algorithm that updated the enemies route in real-time every time the map was modified.


Pathfinding algorithm visualized.
The pathfinding algorithm also helped prevent players from placing towers that would completely blocking off all enemy routes.




Tower can be placed (enemies can still reach their destination).
Tower cannot be placed (enemies can no longer reach their destination).

