aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/map.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 58b3021..90a9b5e 100644
--- a/src/map.c
+++ b/src/map.c
@@ -3,6 +3,7 @@
#include "world.h"
#include "player.h"
#include "entity.h"
+#include "entitiesInclude.h"
void repositionMap(Map* map)
{
@@ -19,6 +20,14 @@ void renderMapEntityPreview(Image* map, Entity entity, const World* world)
switch (entity.id)
{
case POND:
+ {
+ float pondSize = roundf(WORLD_IMAGE_WIDTH / world->size.x * POND_SIZE);
+ position = Vector2SubtractValue(position, pondSize);
+ pondSize *= 2.0;
+
+ ImageDrawRectangle(map, position.x, position.y, pondSize, pondSize, BLUE);
+ ImageDrawText(map, "Pond", position.x, position.y, 10, BLACK);
+ }
break;
default:
break;