Skip to content

Minimap tab ​

The Minimap tab is where you configure the game's minimap feature (shared by 2D and 3D).

What is the Minimap?

In this tool, a minimap feature is supported that shows the player a top-down overview of their current adventuring area. The minimap consists of:

  • Chip atlas image: A single image containing all chips (terrain, stairs, chest, etc.) used to draw cells on the minimap
  • Chip size: Pixel size of a single chip (X, Y)
  • Exploration range: The range recorded as "explored" when the player walks (6 patterns A to F)
  • Category mapping: Mapping of map object categories (stairs, chest, etc.) to the chip used to draw them

Settings on this tab are shared between 2D mode and 3D mode.

Overview ​

Purpose of this screen ​

  • Specify the minimap chip atlas image
  • Specify the size of one chip
  • Specify the exploration range (choose from 6 patterns)
  • Manage the mapping of object categories to chip indices

Save location ​

This tab manages two files together:

  • data/settings/minimap_settings.json — atlas settings + exploration pattern
  • data/settings/minimap_categories.json — category mapping

A single Save button writes both files simultaneously.

Where it is referenced ​

  • Minimap rendering (shared 2D/3D): Picks and draws chips using these settings
  • Object tab: Each object template's "minimap category key" is looked up in this tab's category mapping
  • Player movement processing: Records "how far explored" using the exploration range pattern

Reserved IDs / special keys ​

This tab has no strict "reserved IDs", but it is strongly recommended not to delete the default key from the category mapping.

default is the automatic fallback when an object template's "minimap category key" is empty. Deleting default causes all objects without a category key to disappear from the minimap.

Atlas image spec ​

The atlas image used for the minimap follows these rules.

Image structure ​

  • Horizontal single row, Y coordinate fixed at 0
  • One chip is chip_size_x × chip_size_y pixels
  • From left to right, chip index 0, 1, 2, ...

Meaning of chip index ​

chip indexUseNote
0Player (PC) arrow markerFixed
1Unexplored cellFixed
2 to 17Terrain (16 patterns)Auto-selected (16 patterns determined by passability of adjacent cells)
18 or laterUser-definedAssigned to any key via the category mapping

About the 16 terrain patterns

In this tool's minimap, each cell's terrain switches automatically among 16 looks based on the passability of the 4 adjacent cells (up/down/left/right). For example, "passable up and left, impassable right and down" uses a dedicated chip for the upper-left corner.

The user must arrange all 16 patterns in order at chip indices 2 to 17 of the atlas.

Screen layout ​

The Minimap tab is a left/right split layout.

Left pane (atlas settings + exploration range + save) ​

ElementRole
Minimap chip atlas (shared 2D/3D) sectionAtlas image path and chip size
Fixed chip index descriptionGray annotation describing the role of chip indices 0-17
Exploration range sectionPick an exploration pattern A to F via OptionButton
Save buttonWrites both files simultaneously

Right pane (category mapping) ​

ElementRole
Category mapping listDisplayed as category_key = chip_index + thumbnail
Add buttonAdds a new category via dialog
Edit buttonEdits the selected category via dialog
Delete buttonDeletes the selected category (confirmation dialog shown)

Left pane: atlas settings ​

Chip Atlas Path ​

Specifies the path to the atlas image used by the minimap.

ItemInput formatDescription
Chip Atlas PathTextPath to the atlas image .png / .jpg / .jpeg / .webp (placeholder: Atlas image path (shared 2D/3D))

No file selection button

Unlike other tabs, this tab has no "..." file selection button. You must enter the path directly as text. Example: res://addons/rpg_wizard/data/sprites/minimap_chips/default_atlas.png

Automatic refresh on path change

When you change the Chip Atlas Path, thumbnails in the right-pane category mapping are automatically regenerated.

Chip Size (X, Y) px ​

Specifies the width and height of one chip in pixels.

ItemInput formatDescription
Chip Size XSpinBox (1 to 512)Width of one chip (pixels)
Chip Size YSpinBox (1 to 512)Height of one chip (pixels)

Default: 96 × 96 pixels

Automatic refresh on size change

When you change chip size, the thumbnail crop area in the right-pane category mapping is updated immediately.

Fixed chip index description ​

An annotation displayed in gray showing the atlas spec (chip index 0 = PC, 1 = unexplored, 2-17 = terrain, 18+ = user-defined). Reference info for users creating the atlas image.

Left pane: Explored Range Pattern ​

Choose from 6 patterns to decide, when the player walks the map, which cells are recorded as "explored".

Options ​

PatternLabel (shown in Japanese)Content
A足元のみ (1 マス)Only the cell the player stands on
B足元 + 前 1 歩 (2 マス)Current cell + 1 cell ahead in movement direction
C足元 + 十字 (5 マス)Current cell + 4 cross-adjacent cells
D足元 + 周辺 3×3 (9 マス)3×3 range centered on the current cell
E足元 + 前方 3 マス (4 マス)Current cell + 3 cells ahead in movement direction
F足元 + 前方 3 マス + 両脇 (6 マス)Current cell + 3 ahead + 2 side cells

Choice guidance ​

  • A: Record one cell at a time; emphasizes the dungeon exploration feel
  • D: Wide overview, casual exploration
  • E / F: Emphasizes direction of travel, suits first-person 3D mode

Internal identifier and UI label ​

What is saved to JSON is the internal identifier "A" to "F"; the Japanese label in the UI is display-only. Even in multilingual mode, the labels are shown in Japanese (hard-coded on the source side).

Left pane: Save button ​

Pressing the Save button simultaneously writes the following 2 JSON files:

  • data/settings/minimap_settings.json (atlas + exploration range)
  • data/settings/minimap_categories.json (category mapping)

Changes before saving are held in memory only, and a (*) mark appears in the tab title.

Right pane: Minimap Category Key Table ​

A mapping that specifies the chip used to display objects (stairs, chest, door, etc.) placed on the map on the minimap.

List display ​

The list shows each category in the format category_key = chip_index. A thumbnail cropped from the atlas image is shown to the left of each key.

Thumbnail mechanism:

  • Auto-crops and displays at the chip_index position in the atlas image
  • Updates immediately on atlas path change / chip size change
  • Thumbnail size follows the editor's font size (font × 1.7)
  • Thumbnail is hidden (text only) if the atlas path is invalid or the chip index is out of range

List sorting ​

Category keys are displayed sorted in alphabetical order (for stable display).

The "minimap category key" (default default) set on each template on the Object tab is looked up in this tab's category mapping. For example:

  • Object template's "minimap category key" = stairs
  • This tab's category mapping: stairs = 19
  • → That object is drawn as chip index 19 (stairs chip) on the minimap

Right pane: Add button ​

Pressing the Add button displays an input dialog.

Dialog input items ​

ItemInput formatInitial value
Category KeyTextEmpty
Chip IndexInteger18

Input rules ​

  • Category Key: Empty string not allowed
  • If it duplicates an existing key, a NOTICE is shown and nothing is added (change existing keys via the Edit button)

Chip indices 0 to 17 are the range the tool uses for fixed purposes (PC / unexplored / terrain 16 patterns). For user-defined entries, 18 or later is recommended. Specifying 0-17 draws the object with a terrain chip, which looks wrong (no error raised).

Right pane: Edit button ​

Select a category in the list and press the Edit button to display a dialog initialized with the current values.

Dialog input items ​

ItemInput formatInitial value
Category KeyTextCurrent category key
Chip IndexIntegerCurrent chip index

Edit behavior ​

  • Change only chip index: The chip index of the existing key is rewritten
  • Change category key too (rename): The old key is deleted, and the new key is registered with the same chip index
  • If the rename target duplicates an existing key: A NOTICE is shown and the rename is not performed (to prevent accidents)

Right pane: Delete button ​

Pressing the Delete button displays a confirmation dialog; clicking OK deletes the selected category.

Do not delete the default key

The default key is the fallback when an object template's "minimap category key" is empty. Deleting it causes objects without a category key to disappear from the minimap.

This tab allows deleting the default key, but strongly discouraged. If accidentally deleted, add it again via the "Add" button as default = 21 (stairs chip in the default sample image), or edit minimap_categories.json directly to restore it.

Delete behavior ​

  • The selected category is removed from the minimap_categories dictionary
  • The thumbnail list is refreshed automatically
  • Deletion is not written to minimap_categories.json until the Save button is pressed (discarded on editor restart or tab switch)

Typical usage flow ​

Flow 1: Configure the atlas in a new project ​

  1. Enter res://addons/rpg_wizard/data/sprites/minimap_chips/my_atlas.png in Chip Atlas Path
  2. Chip Size X = 96, Y = 96
  3. Verify that the right pane thumbnails auto-refresh
  4. Explored Range Pattern = 足元 + 前方 3 マス + 両脇 (6 マス) (suits 3D dungeons)
  5. Save

Flow 2: Add a new category (example: chest) ​

  1. Prepare a chest chip at chip index 25 position in the atlas image
  2. Press the Add button in the right pane
  3. In the dialog:
    • Category Key = treasure
    • Chip Index = 25
  4. OK → treasure = 25 is added to the list (thumbnail also displayed)
  5. Save
  6. On the Object tab, set the chest template's "minimap category key" = treasure
  7. When a chest object is placed on a map, it draws as chip index 25 on the minimap

Flow 3: Edit an existing category (change chip index) ​

  1. Select stairs = 19 in the list
  2. Press the Edit button
  3. In the dialog:
    • Category Key = stairs (unchanged)
    • Chip Index = 19 → change to 20 (swap to a different chip)
  4. OK → list updates to stairs = 20, thumbnail also updates
  5. Save

Flow 4: Rename an existing category ​

  1. Select stairs = 19 in the list
  2. Press the Edit button
  3. In the dialog:
    • Category Key = change stairs to stair_up
    • Chip Index = 19 (unchanged)
  4. OK → old stairs is deleted and stair_up = 19 is added
  5. Save
  6. The template's "minimap category key" on the Object tab must be changed to stair_up

Flow 5: Change the exploration range ​

  1. Start from existing settings
  2. Change Explored Range Pattern from 足元のみ to 足元 + 周辺 3×3
  3. Save
  4. Walking in-game records the 9 surrounding cells as explored per step

Flow 6: Swap the atlas image ​

  1. Replace the atlas image file with a different image (preserving chip layout)
  2. Change Chip Atlas Path to the new image path
  3. Right pane thumbnails are auto-regenerated from the new image
  4. The meaning of chip indices (stairs = 19, etc.) is unchanged, but the look is now the new chips
  5. Save
TabRelated content
Object tabThe "minimap category key" of object templates is referenced in this tab's mapping
3D Dungeon Settings tabThe minimap operates with shared 2D/3D settings
Map tabThe minimap display is overlaid on the map

Notes ​

Two-file management ​

This tab collectively manages minimap_settings.json and minimap_categories.json. One Save button writes to both.

No file selection button for the atlas image ​

Unlike other tabs, the Chip Atlas Path has no "..." file selection button. Enter the path directly as text.

chip index 0-17 is a reserved range ​

When specifying a chip index in the category mapping, 18 or later is recommended. 0 to 17 are a tool-reserved range (0 = PC, 1 = unexplored, 2 to 17 = 16 terrain patterns). Although the SpinBox does not reject 0-17, you will get an unintended look.

Deleting the default key is discouraged ​

default is the fallback when an object's "minimap category key" is empty. Deleting it makes objects with no category key disappear from the minimap.

Explored Range labels always shown in Japanese ​

The exploration range OptionButton option labels ("足元のみ (1 マス)", etc.) are hard-coded in Japanese on the source side, so they are displayed in Japanese even when the editor is in English mode.

Thumbnail refresh timing ​

Thumbnails in the category mapping auto-refresh at the following times:

  • When the tab is opened (_ready())
  • When Chip Atlas Path is changed
  • When Chip Size X / Y is changed
  • When a category is added, edited, or deleted

Discarding changes before saving ​

Add, edit, and delete are not written to minimap_categories.json until the Save button is pressed. Restarting the editor without saving discards the changes.

Referential integrity on category deletion ​

Deleting a category on this tab does not automatically fix templates on the Object tab that reference it. After deletion, those objects fall back to the default key (if it exists) or are skipped during rendering.