https://github.com/tetreum/war-effort
Chain management game mechanics (like Factorio) made in Unity.
https://github.com/tetreum/war-effort
chain factorio game unity unity3d
Last synced: 4 months ago
JSON representation
Chain management game mechanics (like Factorio) made in Unity.
- Host: GitHub
- URL: https://github.com/tetreum/war-effort
- Owner: tetreum
- Created: 2020-11-03T20:05:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T15:45:45.000Z (6 months ago)
- Last Synced: 2024-11-10T16:45:28.946Z (5 months ago)
- Topics: chain, factorio, game, unity, unity3d
- Language: C#
- Homepage:
- Size: 11.6 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

# WarEffort
I made this project to understand and build a chain management game (like Factorio).
## Demo
[Click here to check it](https://tetreum.github.io/war-effort/)
## Info
The game is built over a 2D grid (yet it's 3d, so i'm using Vector3) where you can place "Machines".
Machines can take 1 or more grid slots and there are several types:
- Belt: Moves items from one slot to another.
- Generator: Creates items out of nowhere and places them on it's connected belts.
- Converter: Takes X items to create an Y item.
- Seller: Makes items disappear in exchange of cash.To avoid having tons of Monobehaviours, items are managed by the Grid or the machine where they are.
I hardly remember how i coded it, but i believe it was multithread. With belts running as one job and the rest of the machines in another.
The demo is WebGL, and webGL isn't multithread in unity (yet?), so it won't make any difference in that platform.
This was made before ECS. If i were you, i would do it in ECS 100%.