aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/bush.c4
-rw-r--r--src/entities/bush.h1
-rw-r--r--src/entities/flower.c4
-rw-r--r--src/entities/flower.h1
-rw-r--r--src/entities/tree.c4
-rw-r--r--src/entities/tree.h1
6 files changed, 9 insertions, 6 deletions
diff --git a/src/entities/bush.c b/src/entities/bush.c
index 884ffef..2fc5f6a 100644
--- a/src/entities/bush.c
+++ b/src/entities/bush.c
@@ -2,11 +2,11 @@
void initBush(Entity* entity)
{
- entity->box = entityBoxFromScale(1.0, BUSH_WIDTH, BUSH_HEIGHT);
+ entity->box = entityBoxFromScale(BUSH_SCALE, BUSH_WIDTH, BUSH_HEIGHT);
}
void updateBush(Entity* entity, Game* game)
{
DrawBillboard(game->player.camera, game->assets.textures[BUSH_TEXTURE],
- entity->position, 1.0, WHITE);
+ entity->position, BUSH_SCALE, WHITE);
}
diff --git a/src/entities/bush.h b/src/entities/bush.h
index 70ac282..a46d439 100644
--- a/src/entities/bush.h
+++ b/src/entities/bush.h
@@ -4,6 +4,7 @@
#ifndef BUSH_H
#define BUSH_H
+#define BUSH_SCALE 3.0
#define BUSH_WIDTH 87.0
#define BUSH_HEIGHT 62.0
diff --git a/src/entities/flower.c b/src/entities/flower.c
index 00f27fc..89378bb 100644
--- a/src/entities/flower.c
+++ b/src/entities/flower.c
@@ -2,11 +2,11 @@
void initFlower(Entity* entity)
{
- entity->box = entityBoxFromScale(1.0, FLOWER_WIDTH, FLOWER_HEIGHT);
+ entity->box = entityBoxFromScale(FLOWER_SCALE, FLOWER_WIDTH, FLOWER_HEIGHT);
}
void updateFlower(Entity* entity, Game* game)
{
DrawBillboard(game->player.camera, game->assets.textures[FLOWER_TEXTURE],
- entity->position, 1.0, WHITE);
+ entity->position, FLOWER_SCALE, WHITE);
}
diff --git a/src/entities/flower.h b/src/entities/flower.h
index de33197..279c162 100644
--- a/src/entities/flower.h
+++ b/src/entities/flower.h
@@ -4,6 +4,7 @@
#ifndef FLOWER_H
#define FLOWER_H
+#define FLOWER_SCALE 3.0
#define FLOWER_WIDTH 32.0
#define FLOWER_HEIGHT 54.0
diff --git a/src/entities/tree.c b/src/entities/tree.c
index 7db5842..9f89b8f 100644
--- a/src/entities/tree.c
+++ b/src/entities/tree.c
@@ -2,11 +2,11 @@
void initTree(Entity* entity)
{
- entity->box = entityBoxFromScale(1.0, TREE_WIDTH, TREE_HEIGHT);
+ 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, 1.0, WHITE);
+ entity->position, TREE_SCALE, WHITE);
}
diff --git a/src/entities/tree.h b/src/entities/tree.h
index 59b32ba..1c0e7d8 100644
--- a/src/entities/tree.h
+++ b/src/entities/tree.h
@@ -4,6 +4,7 @@
#ifndef TREE_H
#define TREE_H
+#define TREE_SCALE 40.0
#define TREE_WIDTH 113.0
#define TREE_HEIGHT 250.0