From 45886713c375a84d9b0a34f65dd135631ddca006 Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Tue, 3 Nov 2026 10:59:27 +0100 Subject: [PATCH] feat: map villages as miniatures of the village diorama: one demo village per tier painted once per session in a worker, worn for barbarians; relation as a flag (a barbarian's dot) at the field's top-left, white corners round the current village Co-Authored-By: Claude Opus 5.5 --- app/components/map/InfoCard.vue | 2 +- app/components/map/LegendSwatch.vue | 21 +- app/components/map/VillageDefs.vue | 42 ++- app/components/map/WorldMap.vue | 18 +- app/composables/useMapTiles.ts | 60 ++++ app/diorama/mapTiles.ts | 254 +++++++++++++++ app/diorama/mapVillage.ts | 484 ---------------------------- app/pages/map/[worldId].vue | 2 +- app/workers/mapTiles.worker.ts | 14 + 9 files changed, 385 insertions(+), 512 deletions(-) create mode 100644 app/composables/useMapTiles.ts create mode 100644 app/diorama/mapTiles.ts delete mode 100644 app/diorama/mapVillage.ts create mode 100644 app/workers/mapTiles.worker.ts diff --git a/app/components/map/InfoCard.vue b/app/components/map/InfoCard.vue index 990c6fb..0c90f87 100644 --- a/app/components/map/InfoCard.vue +++ b/app/components/map/InfoCard.vue @@ -25,7 +25,7 @@ const { current } = useCurrentWorld()
{{ $t('map.info.relation') }}
- {{ $t(`map.legend.${village.relation}`) }} + {{ $t(`map.legend.${village.relation}`) }}
{{ $t('map.info.points') }}
{{ village.points }}
diff --git a/app/components/map/LegendSwatch.vue b/app/components/map/LegendSwatch.vue index 67d34fe..4fc5691 100644 --- a/app/components/map/LegendSwatch.vue +++ b/app/components/map/LegendSwatch.vue @@ -1,20 +1,25 @@ - + diff --git a/app/components/map/VillageDefs.vue b/app/components/map/VillageDefs.vue index dabdc61..f4045b4 100644 --- a/app/components/map/VillageDefs.vue +++ b/app/components/map/VillageDefs.vue @@ -1,22 +1,32 @@ - diff --git a/app/components/map/WorldMap.vue b/app/components/map/WorldMap.vue index f78c2b5..e49c9ec 100644 --- a/app/components/map/WorldMap.vue +++ b/app/components/map/WorldMap.vue @@ -1,5 +1,5 @@