diff options
Diffstat (limited to 'src/entities/john.c')
| -rw-r--r-- | src/entities/john.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/entities/john.c b/src/entities/john.c new file mode 100644 index 0000000..94f2cae --- /dev/null +++ b/src/entities/john.c @@ -0,0 +1,16 @@ +#include "john.h" + +void initJohn(Entity* entity) +{ + entity->box = (BoundingBox){ + .min = (Vector3){-SHOPKEEPER_WIDTH, -SHOPKEEPER_HEIGHT, + -SHOPKEEPER_THICKNESS}, + .max = (Vector3){SHOPKEEPER_WIDTH, SHOPKEEPER_HEIGHT, + SHOPKEEPER_THICKNESS} + }; +} + +void updateJohn(Entity* entity, Game* game) +{ + DrawModel(game->assets.models[JOHN_MODEL], entity->position, 1.0, WHITE); +} |
