Modular Battle System
A modular and easy-to-use battle system for Unity games, featuring wave-based combat, customizable enemy spawners, and a modular design for flexibility and expansion.

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost. $7
- Category:
- Templates › Systems
- Developer:
- MattJModular
- Price:
- $7
- Supported Unity Versions:
- 2022.3.18 or higher
- Current Version:
- 1.0
- Download Size:
- 666.56 KB
- Last Update:
- Nov 21, 2024
- Description:
- The Modular Battle System is a comprehensive solution for managing battles in Unity games. It features a wave-based combat system, where enemies are spawned and updated in real-time, and a modular design that allows for easy customization and expansion.
The system consists of several key components:
* Battle States: The system uses an enumeration called BattleState to manage the flow of combat, with three states: Idle, Active, and Finished.
* Wave Management: The system uses a Wave class to manage the spawning and updating of enemies, with each wave containing an array of Enemy Spawners.
* Enemy Spawners: Each Enemy Spawner is responsible for managing a portion of the enemies, with key variables controlling spawning behavior, such as enemy prefab, spawn point, and spawn delay.
* Modular Design: The system is designed to be modular, allowing for easy customization and expansion, with features such as customizable spawn points, adjustable spawn delay and count, and tracking and cleanup of spawned enemies.
The system also includes several key features, such as:
* Real-time wave updates and progression tracking
* Modular and extendable design for ease of customization and potential expansion
* Enemy spawner details, including customizable spawn points, adjustable spawn delay and count, and tracking and cleanup of spawned enemies
The system is designed to be easy to use and understand, making it accessible to both beginners and experienced developers. It is also highly customizable, allowing developers to tailor the system to their specific game needs. - Technical Details:
- The system uses a combination of scripts and components to manage the battle system, including:
* BattleState enumeration to manage the flow of combat
* Wave class to manage the spawning and updating of enemies
* Enemy Spawner script to manage the spawning behavior of enemies
* Modular design to allow for easy customization and expansion
The system also uses several Unity features, including:
* Unity Events to notify other game systems or trigger UI changes
* Debug.Log to log important events and debug information
* Instantiate to create new enemy instances
* RemoveAll to clean up null entries in the spawnedEnemies list
The system is designed to be highly customizable, with several key variables and methods that can be adjusted or extended to suit the specific needs of the game. - Continue »