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

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

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