I’ve been working on a Real Time Strategy game (RTS) using Unity since summer 2014. A few months back I noticed that there still weren’t any real RTS development frameworks around on the asset store so I decided to convert this game that I’ve been working on into a framework for anyone to use and build upon. Creating an RTS is a rather large undertaking but with this framework at least some of the initial obstacles are removed and mitigated.
The framework includes many features that you would expect to see in an RTS such as an RTS camera, minimap, unit command system (move/attack), pathfinding, resource gathering, building of structures, building of units with build queues, FOW/LOS/Shroud, item health indicators…
Included are logic for tanks, infantry, airplanes (can drop bombs), helicopters and resource gatherers and structures such as Refineries (that will refine gathered ore) and factories.
Creating new Items (unit/structure) and editing existing Items is easily done using an Editor menu which allows for easy manipulation of the most common variables.
I decided early on to build an RTS with a classical gameplay similar to that of Age of Empires/C&C Generals/Starcraft. That means that you build bases, gather resources and build units from other buildings.
Although not currently included I plan on adding the following features:
- Customizable AI
- Water movement
- Tech tree
- Multiplayer support
And much more.
Full source code in C# is included.
Demo video (poor quality, and two months old it doesn’t show all features, I’m working on getting a proper demo rig and recording software)
Who is this asset for?
I’m clearly biased, but I would say that anyone who’s interested in RTS games, particularly how they might function, would find this asset useful. Even if you’re totally green on coding I hope that the source code will be easy enough to understand and extend. I’ve tried to comment as much as possible throughout the code and a 35 page manual is included to get you started with the basic setups.
If you’re an experienced coder, you probably won’t find anything revolutionary in this package, but much of the time consuming groundwork has already been done so you should be able to kickstart your development.
Can I use this asset on mobile?
My main target platform has been PC. However, no DLLs or Windows specific code has been used so it’s probably perfectly possible to run it on mobile. Though, you would need to reconfigure all input commands and use other 3D assets than the included ones (for performance reasons).
Is this asset a finished game?
It currently contains no enemy AI (just static enemies), no multiplayer support and no “win condition”, so in that sense it’s not a finished game, but rather a framework, a foundation on which you can build upon.
This asset is under active development so new features and update changes will be released on a regular basis.
