In our latest devlog, we are sharing the behind-the-scenes process of building the combat tutorial sequence. Most games use a brief enclosed area to teach mechanics, but we decided to build an infinite map that seamlessly fits the game's flow and story!
Here is a look at the core systems we developed:
Infinite Platform Generation: To optimize the level, platforms dynamically spawn ahead of the character and are immediately deleted once left behind.
Line-of-Sight Spawning: We implemented a custom system with a 30-degree angle calculation to guarantee that enemies always spawn directly within the player's field of view.
Custom Enemy Tracking: Traditional static NavMesh systems don't work on constantly despawning platforms. We bypassed this by coding a custom tracking system that allows enemies to look at the player, move in their direction, and attack once in range. We even had to ignore Z-axis coordinates to fix a bug where enemies would fly!
Spatial Audio Tension: We placed audio cues around the character to prevent the player from predicting exactly where the enemy will approach from.
Wishlist the game on Steam!
