From cc592f8603973e89d8a16be2f46596c772be36b8 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 4 Dec 2025 04:27:34 -0700 Subject: Pond renders in map preview --- src/map.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; -- cgit v1.2.3