A downloadable game

Idle Game Demo (Using Unity D.O.T.S)


Github Repo


Here is a simple demonstration of my deep dive into Unity D.O.T.S. These systems seem to be the future direction of advanced projects in Unity.

The main things demonstrated in this game are:

  1. ECS - Entity Component System, which is a more optimal framework than MonoBehaviour
  2. Unity Jobs, which allows the developer to use multithreading, while remaining relatively simple to work with all things considered
  3. Burst Complier, which converts the code written into highly optimised machine code.

 My hope from the knowledge gained from this project is to develop more complex systems with D.O.T.S, like a Colony Sim demo.


Demonstration:

Stress Test

Here is a stress test, displaying my system being comfortable at 200,000, well above what I would need in any practice environment. The system still continues on past 1,500,000.




Code Snippets

System setting up job, using "BurstComplie"
Job moving all workers, using multithreading and "BurstCompile"
The best approach to using D.O.T.S is to work with MonoBehaviour, and use D.O.T.S only when needed. My system demonstrates this with the Source (where the workers get the resource), as well as with the UI.

Leave a comment

Log in with itch.io to leave a comment.