Add health

This commit is contained in:
2024-02-07 16:12:45 +01:00
parent eb768fa968
commit d6466b8f55
7 changed files with 72 additions and 1 deletions

View File

@@ -80,6 +80,12 @@ ecs_entity_t entityCreateWorker(const Position position, Player player, Game *ga
.carryCapacity = 5,
});
ecs_set(ECS, e, Health, {
.startHP = 20.0f,
.hp = 20.0f,
.lastChanged = -1.0f
});
return e;
}