This repository is the source code of a proof of concept of a Unity game.
TurnBased-POC is a proof of concept that aims to show the feasibility and practical application of :
- Entity turn lifecycle management
- Ordering and stacking execution of events that involes interaction of Entities.
- Execution of TurnAction per Entity that consumes ActionPoints
- A* pathfinding
- With dynamic obstacle avoidance
This repository contains source code only, there is no asset files. I decided to strip assets from git history as they were taking space for nothing. The whole unity project with assets is available here.
A playable demo is available here.
You don't control anything.
Press Enter to start the level. Agents will act and move automatically.
Press Delete to restart the level.
The application features (links redirect to source code implementation) :
- Turn based action sequencing
- A* path findind.
- Logic execution when an Entity is moving to a node that have a trigger Entity.
- Entity interaction :
- Moving Entity :
- Can attack other moving entities
- Can die when health < 0
- Trigger Entity :
- Moving Entity :
- Agent action decision tree that picks to most favorable actions.
- Centralized Event queue that monitor all actions in the game.
- Non unity Entity <-> Component relationship.
- Non unity game loop execution order.
The application uses the OdinInspector package. The package is not included, you can buy it here.