地图系统

Map System - 提示词、精灵生成与坐标定位


一、地图提示词

Quick Prompt (for copy-paste)

Fantasy adventure map, top-down view, hand-drawn parchment style, warm sepia tones with colored region highlights. 

Center-left: A walled trading town with market stalls (Merchant's Haven - green banner).

Northern region (top): Snow-capped mountains, a winding mountain pass with a stone fortress, a dragon's lair cave on a peak, an ancient temple with broken columns, and a glowing demonic portal at the very top.

Eastern region (right): Overgrown stone ruins, an old watermill by a stream, a mine entrance with crystal formations, and a sealed tomb with statues.

Western region (left): Dense mystical forest, a small woodland shrine with spirit wisps, a witch's cottage in a clearing with purple smoke, and a dark forbidden forest with twisted trees.

Southern region (bottom): A river delta, wooden docks with small boats, murky swampland with wooden walkways, goblin caves in hills, a hidden pirate cove with a ship, and a grand treasure vault entrance.

Paths: Dirt roads (tan), forest trails (green), mountain passes (gray), river routes (blue), swamp paths (brown-green). 

Style: Fantasy RPG map, slightly weathered parchment texture, decorative compass rose in corner, medieval cartography aesthetic, subtle fog in dangerous areas.

整体风格

  • Medium: Hand-drawn fantasy map on aged parchment
  • View: Top-down/bird's eye view
  • Color palette: Warm sepia base with region-specific accent colors
  • Aesthetic: Medieval cartography meets fantasy RPG
  • Mood: Adventurous, mysterious, inviting exploration

区域与位置

🏠 CENTER-WEST: Starting Area - Merchant's Haven

  • A prosperous walled town at a crossroads
  • Market square with colorful tents/stalls
  • Warm, welcoming colors (golden light)
  • Green banner/flag on the main gate

⛰️ NORTH: The Mountain Region

Color accent: Cool grays and whites

  1. Wayside Camp - Small cluster of tents, campfire, pine trees
  2. Mountain Pass - Stone fortress/checkpoint in cliffs, winding path
  3. Dragon's Peak - Cave with scorch marks, bones, smoke visible
  4. Ancient Temple - Ruined temple, broken columns, glowing runes
  5. Demon Gate - Massive stone archway, purple/red portal energy

🏛️ EAST: The Ruins Region

Color accent: Sandy browns and stone grays

  1. Old Mill - Abandoned watermill, broken water wheel
  2. Ancient Ruins - Crumbling structures, fallen pillars
  3. Crystal Mine - Mine entrance, glittering crystals
  4. Forgotten Tomb - Sealed entrance, guardian statues

🌲 WEST: The Forest Region

Color accent: Deep greens and mystical purples

  1. Forest Shrine - Small stone shrine, spirit wisps
  2. Witch's Grove - Crooked cottage, purple smoke
  3. Forbidden Forest - Twisted trees, glowing eyes in shadows

🌊 SOUTH: The Swamp Region

Color accent: Murky greens and muddy browns

  1. Riverside Dock - Wooden pier, fishing boats
  2. Swamp Hideout - Hidden structures on stilts
  3. Goblin Warren - Cave entrances in hillside
  4. Pirate Cove - Hidden inlet with pirate ship
  5. Treasure Vault - Grand stone entrance, gold decorations

颜色参考

Background:     #F5E6C8 (aged parchment)
Mountains:      #8B9DC3 (cool gray-blue)
Forest:         #2D5A27 (deep green)
Swamp:          #4A5D23 (murky green)
Ruins:          #C4A35A (sandy brown)
Water:          #5B8FA8 (muted blue)
Roads:          #A08060 (dirt brown)
Danger zones:   #8B0000 (dark red accents)
Magic/Portal:   #6B3FA0 (mystical purple)
Gold/Treasure:  #DAA520 (golden)

二、精灵生成

通用规格

属性 规格
尺寸 128×128 像素
格式 PNG(透明背景)
风格 手绘幻想风格,略带卡通感
光照 统一从左上方照射
边缘 轻微的描边/光晕效果

艺术风格指南

  • 色调:温暖、略微饱和的颜色
  • 细节:中等细节程度,在小尺寸下仍可辨认
  • 轮廓:清晰的轮廓,2-3 像素深色描边
  • 视角:3/4 俯视角(略微倾斜的等距视角)

位置图标列表 (18个)

# ID 名称 文件名
1 merchants_haven 商人港湾 loc_merchants_haven.png
2 wayside_camp 路边营地 loc_wayside_camp.png
3 mountain_pass 山口要塞 loc_mountain_pass.png
4 dragons_peak 龙之巅 loc_dragons_peak.png
5 ancient_temple 远古神殿 loc_ancient_temple.png
6 demon_gate 恶魔之门 loc_demon_gate.png
7 old_mill 老磨坊 loc_old_mill.png
8 ancient_ruins 古代遗迹 loc_ancient_ruins.png
9 crystal_mine 水晶矿洞 loc_crystal_mine.png
10 forgotten_tomb 遗忘古墓 loc_forgotten_tomb.png
11 forest_shrine 森林神社 loc_forest_shrine.png
12 witchs_grove 女巫小屋 loc_witchs_grove.png
13 forbidden_forest 禁忌森林 loc_forbidden_forest.png
14 riverside_dock 河畔码头 loc_riverside_dock.png
15 swamp_hideout 沼泽据点 loc_swamp_hideout.png
16 goblin_warren 哥布林巢穴 loc_goblin_warren.png
17 pirate_cove 海盗湾 loc_pirate_cove.png
18 treasure_vault 宝藏库 loc_treasure_vault.png

生成提示词模板

Fantasy location icon, 128x128 pixels, transparent background,
hand-drawn style, warm colors, clear outline with dark stroke,
3/4 top-down view, soft lighting from top-left,

[具体位置描述]

Style: RPG game map icon, slightly cartoonish,
high readability at small sizes

三、精确定位

坐标系统

属性
地图尺寸 1920×1080 像素
原点位置 左上角 (0, 0)
X 轴 向右为正
Y 轴 向下为正

位置坐标表

ID 名称 X Y 区域
1 商人港湾 640 540 center
2 路边营地 800 380 north
3 山口要塞 480 240 north
4 龙之巅 640 120 north
5 远古神殿 880 160 north
6 恶魔之门 760 60 north
7 老磨坊 1120 480 east
8 古代遗迹 1280 280 east
9 水晶矿洞 1400 520 east
10 遗忘古墓 1560 400 east
11 森林神社 400 480 west
12 女巫小屋 200 400 west
13 禁忌森林 80 320 west
14 河畔码头 720 720 south
15 沼泽据点 400 840 south
16 哥布林巢穴 1040 800 south
17 海盗湾 720 920 south
18 宝藏库 1200 880 south

连接定义(路径)

# 连接定义 [起点ID, 终点ID, 路径类型]
var connections = [
    # 从商人港湾出发的主路
    [1, 2, "road"],      # 商人港湾 → 路边营地
    [1, 11, "forest"],   # 商人港湾 → 森林神社
    [1, 7, "road"],      # 商人港湾 → 老磨坊
    [1, 14, "river"],    # 商人港湾 → 河畔码头
    
    # 北部山区
    [2, 3, "mountain"],  # 路边营地 → 山口要塞
    [2, 5, "road"],      # 路边营地 → 远古神殿
    [3, 4, "mountain"],  # 山口要塞 → 龙之巅
    [4, 6, "portal"],    # 龙之巅 → 恶魔之门
    [5, 6, "ruins"],     # 远古神殿 → 恶魔之门
    
    # 东部废墟
    [7, 8, "road"],      # 老磨坊 → 古代遗迹
    [7, 9, "cave"],      # 老磨坊 → 水晶矿洞
    [8, 10, "ruins"],    # 古代遗迹 → 遗忘古墓
    [9, 10, "cave"],     # 水晶矿洞 → 遗忘古墓
    
    # 西部森林
    [11, 12, "forest"],  # 森林神社 → 女巫小屋
    [12, 13, "forest"],  # 女巫小屋 → 禁忌森林
    
    # 南部沼泽
    [14, 15, "swamp"],   # 河畔码头 → 沼泽据点
    [14, 16, "road"],    # 河畔码头 → 哥布林巢穴
    [14, 17, "river"],   # 河畔码头 → 海盗湾
    [16, 18, "cave"],    # 哥布林巢穴 → 宝藏库
    [17, 18, "swamp"],   # 海盗湾 → 宝藏库
]

路径样式

类型 颜色 线宽 样式
road #A08060 4px 实线
forest #2D5A27 3px 虚线
mountain #8B9DC3 3px 点线
river #5B8FA8 4px 波浪线
swamp #4A5D23 3px 虚线
cave #4A3728 2px 点线
ruins #C4A35A 3px 虚线
portal #6B3FA0 4px 发光

Godot 使用示例

# 加载位置数据
var locations = preload("res://data/map_locations.tres")

# 根据 ID 获取位置
func get_location_position(id: int) -> Vector2:
    return locations.get_position(id)

# 绘制连接线
func draw_connection(from_id: int, to_id: int, path_type: String):
    var from_pos = get_location_position(from_id)
    var to_pos = get_location_position(to_id)
    var color = PATH_COLORS[path_type]
    draw_line(from_pos, to_pos, color, PATH_WIDTHS[path_type])