From 49a0487a9c02a4bcd9da965400e393820ba6372f Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 27 Jul 2025 04:29:07 -0600 Subject: Bush --- src/entity.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/entity.h') diff --git a/src/entity.h b/src/entity.h index 38f4092..915c562 100644 --- a/src/entity.h +++ b/src/entity.h @@ -7,26 +7,29 @@ typedef int8_t EntityId; -#define ENTITY_COUNT 3 +#define ENTITY_COUNT 4 -// Constants for entities. +// Entity scales. #define TREE_SCALE 32.0 +#define BUSH_SCALE 6.0 enum { ENTITY_NONE = -1, OLD_MINT, STICKY_NICKEL, - TREE + TREE, + BUSH }; typedef struct { EntityId id; - Vector3 position; + Vector3 position; // Shouldnt be accessed directly. BoundingBox box; } Entity; Entity createEntity(EntityId id, Vector3 position); void updateEntity(Entity* entity, Game* game); void setEntityPosition(Entity* entity, Vector3 position); +void placeEntityOnGround(Entity* entity, const World* world); #endif -- cgit v1.2.3