ShadeSlider / Entitas-RTS-Template

Entitas RTS Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entitas RTS Template for Unity

These template includes:

  • Basic config management (general, input, hotkeys)
  • Very basic writing/reading of config files (using JSON.net)
  • Custom Code Generator example (used for initializing entities from GameObjects)
  • Universal user input processing (mouse and keyboard events)
  • Basic Tick systems and game pausing mechanics
  • Basic tweening integration (using DOTween)
  • RTS-style camera controls
  • Initializing entities from GameObjects in the scene
  • Click and drag selection of selectable GameObjects
  • Right click navigation and pathfinding (using A* Pathfinding Project)

Disclaimer

This template has been cut out of my existing project which is very much a WIP, so it is by no means a finished and polished product. I do hope, though, that it might be of help for those who are just starting out with ECS and Entitas.

A note about initializing entities from GameObjects in the scene

This template uses an 'older' approach of mine: generated MonoBehaviours for each component.

The most recent and much more convenient one uses Odin Inspector asset and is described here. The ViewableEntityInitializer MonoBehaviour and InitSceneEntitiesSystem system that works with Odin are included in this project and have and *Odin suffix in their file names.

Dependencies

About

Entitas RTS Template


Languages

Language:C# 91.9%Language:Smalltalk 7.6%Language:ShaderLab 0.4%Language:HLSL 0.1%