Skip to content

A space battle simulation, based around Unity ECS framework

Notifications You must be signed in to change notification settings

ElliotB256/ECSCombat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECSCombat

A sci-fi battle simulation, using Unity's ECS framework.

A preview image

A video of an infinite battle can be seen here.

Suggestions of what to look at:

  • Different AI behaviours can be found in Battle/AI.
  • Combat systems are found in Battle/Combat. This includes different types of weapon (projectile/instant), weapon effectiveness based on range, intercepting attacks with shields.
  • Equipment and gear are found in Battle/Equipment. Ships can have different equipment attached, and these can have effects like changing the speed or turn rate of ships. Equipment can be damaged and disabled when a ship is attacked, eg damaged engines result in ships being crippled.

Technical details:

  • Unity 2020.1.0b7
  • Universal Render Pipeline (ship shaders in shader graph)

A word of caution!

This project was originally started as a way for me to practice programming in the ECS (Entity-Component-System) style, back when the Unity Entities package was still very young. Since it began, there have been substantial changes to both the Unity Entities API and what is considered best practice. I've made an effort to keep things updated when I can, but given my finite amount of free time there will invariably be some places which are in need of work. So, by all means take inspiration from it, but bear in mind there may be a better way to do some things!

Final Acknowledgements

Some of the sprites are made by me, but the good looking ones were taken from here where they are accredited to Wuhu.

About

A space battle simulation, based around Unity ECS framework

Topics

Resources

Stars

Watchers

Forks

Languages