Add entity rotation

This commit is contained in:
2023-12-06 08:09:02 +01:00
parent ae1c21bdfc
commit 488dccfada
5 changed files with 37 additions and 16 deletions

View File

@@ -24,6 +24,7 @@ bool initEntityObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup) {
if (!objectTileset) return true;
for (i32 i = 0; i < objectGroup->objectCount; i++) {
if (i == 1) break;
BzTileObject object = objectGroup->objects[i];
ecs_entity_t e = ecs_new_id(ECS);
game->entity = e;