Fortress Express
This game was done in a team for the Unity Summer Game Jam 2024 in TheXPlace. A tower defence where you must survive an onslaught of enemies, placing your towers, managing them and buying carriages to ease the load.
Worked on:
- All turrets, including placements, projectiles and upgrades
- Object pool
- Audio manager
- Particles
- Interactable UI Game elements and animations
Assets:
- JMO Particle materials and templates
- Unity Free rpg sounds effects
- CityFire Creative commons music
Code
Turrets
Turrets mainly use scriptable objects to determine its stats and upgrades:


The base turret script has what's needed for basic turrets, which virtual functions such as:


Dragging
The draggables used drag handler events, using the prefabs weapon stats to determine its price and detection range.



Object Pool
Since this game was heavy on spawning, I used an object pool to keep everything good for performance. As it was a team game, I decided to make it simple and only need one function, using a dictionary so you can easily pass in a prefab and it will automatically create a pool for that prefab:



