aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/tree.c
blob: 9f89b8f9db65381802289dc10ef582967b6c67f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "tree.h"

void initTree(Entity* entity)
{
  entity->box = entityBoxFromScale(TREE_SCALE, TREE_WIDTH, TREE_HEIGHT);
}

void updateTree(Entity* entity, Game* game)
{
  DrawBillboard(game->player.camera, game->assets.textures[TREE_TEXTURE],
                  entity->position, TREE_SCALE, WHITE);
}