Space RTS (ECS)
A downloadable prototype for Windows
About
A simple space RTS, where planets can be controlled by teams. Planets controlled by a team generate starships of that team. The player can control the starships of their team and send them to other planets. If the planet is not captured, the starships capture it. However, if the starships of other teams are present, they need to be destroyed first.
Github Repository: https://github.com/EnviloN/SpaceRTS-ECS
Characteristics
- Genre: RTS
- Engine: Unity
- Environment and Camera: Pure 2D top-down
- Objects: planets, starships, projectiles
- Actions: camera movement, unit selection, unit orders
- Technical mechanics:
- Captured planets generate starships over time based on their size.
- Starships use a flocking algorithm to move around, avoiding planets and collisions between them.
- Starships use a targeting system that allows them to lock on an enemy starship and engage in combat. Flocking simulation is affected by this, and the starship is trying to pursue the locked target.
- Camera movement is done by controlling a camera rig entity in ECS and its transform is applied to the camera game object.
- Starships can shoot projectiles that destroy enemy units. The friendly fire is off.
Future Ideas
- Planets can exchange several orbiting spaceships (as a form of currency) for a mining orbiter to increase the starship generation speed. Mining orbiters could potentially be captured or destroyed during the planet's capture.
- Dynamic cursor icon based on game state, selection.
Current State
The player can currently control both teams, so it is more like a sandbox at the moment. The functionality of planet capturing is not implemented. Flocking behavior, targeting, and combat systems have been fully implemented. The same goes for controls and unit selection.
The project uses an old version of DOTS and thus is obsolete. In the future, I plan to rewrite this project using the new ECS 1.0+.
Controls
- Camera Movement: WASD / Arrow Keys / Drag with Middle Mouse Button
- Camera Zoom: Mouse Wheel
- Camera Movement Boost: Shift
- Unit selection: Left Mouse Button
- Move selected units: Right Mouse Button
- End Game: Alt + F4 ('This Is the Way')
The Extreme Version
You can download an 'extreme version' build where the spawn rate of the starships is increased significantly, so you don't need to wait as long in order to induce a massive space battle utilizing the full potential of the ECS design.
Status | Prototype |
Platforms | Windows |
Author | Envilon Script |
Genre | Strategy |
Made with | Unity |
Tags | 2D, ecs, Prototype, Real time strategy, Unity |
Average session | A few minutes |
Inputs | Keyboard, Mouse |
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
Wow this is very fun, You should update this and add more content, I love this!