Add units UI

This commit is contained in:
2024-01-23 19:46:12 +01:00
parent efd241d950
commit 3511b260cc
5 changed files with 152 additions and 16 deletions

View File

@@ -45,7 +45,8 @@ ecs_entity_t entityCreateWorker(const Position position, Game *game) {
ecs_set(ECS, e, Unit, {
.acceleration = 80.0f,
.maxSpeed = 15.0f,
.deceleration = 0.1f
.deceleration = 0.1f,
.unitType = ENTITY_WORKER
});
ecs_set(ECS, e, Worker, {
.collectSpeed = 0.8f,