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 patterndata/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_ypixels - From left to right, chip index 0, 1, 2, ...
Meaning of chip index
| chip index | Use | Note |
|---|---|---|
| 0 | Player (PC) arrow marker | Fixed |
| 1 | Unexplored cell | Fixed |
| 2 to 17 | Terrain (16 patterns) | Auto-selected (16 patterns determined by passability of adjacent cells) |
| 18 or later | User-defined | Assigned 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)
| Element | Role |
|---|---|
| Minimap chip atlas (shared 2D/3D) section | Atlas image path and chip size |
| Fixed chip index description | Gray annotation describing the role of chip indices 0-17 |
| Exploration range section | Pick an exploration pattern A to F via OptionButton |
| Save button | Writes both files simultaneously |
Right pane (category mapping)
| Element | Role |
|---|---|
| Category mapping list | Displayed as category_key = chip_index + thumbnail |
| Add button | Adds a new category via dialog |
| Edit button | Edits the selected category via dialog |
| Delete button | Deletes the selected category (confirmation dialog shown) |
Left pane: atlas settings
Chip Atlas Path
Specifies the path to the atlas image used by the minimap.
| Item | Input format | Description |
|---|---|---|
| Chip Atlas Path | Text | Path 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.
| Item | Input format | Description |
|---|---|---|
| Chip Size X | SpinBox (1 to 512) | Width of one chip (pixels) |
| Chip Size Y | SpinBox (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
| Pattern | Label (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_indexposition 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).
Link with the Object tab
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
| Item | Input format | Initial value |
|---|---|---|
| Category Key | Text | Empty |
| Chip Index | Integer | 18 |
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)
Recommended chip index
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
| Item | Input format | Initial value |
|---|---|---|
| Category Key | Text | Current category key |
| Chip Index | Integer | Current 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_categoriesdictionary - The thumbnail list is refreshed automatically
- Deletion is not written to
minimap_categories.jsonuntil the Save button is pressed (discarded on editor restart or tab switch)
Typical usage flow
Flow 1: Configure the atlas in a new project
- Enter
res://addons/rpg_wizard/data/sprites/minimap_chips/my_atlas.pngin Chip Atlas Path - Chip Size X =
96, Y =96 - Verify that the right pane thumbnails auto-refresh
- Explored Range Pattern =
足元 + 前方 3 マス + 両脇 (6 マス)(suits 3D dungeons) - Save
Flow 2: Add a new category (example: chest)
- Prepare a chest chip at chip index 25 position in the atlas image
- Press the Add button in the right pane
- In the dialog:
- Category Key =
treasure - Chip Index =
25
- Category Key =
- OK →
treasure = 25is added to the list (thumbnail also displayed) - Save
- On the Object tab, set the chest template's "minimap category key" =
treasure - 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)
- Select
stairs = 19in the list - Press the Edit button
- In the dialog:
- Category Key =
stairs(unchanged) - Chip Index =
19→ change to20(swap to a different chip)
- Category Key =
- OK → list updates to
stairs = 20, thumbnail also updates - Save
Flow 4: Rename an existing category
- Select
stairs = 19in the list - Press the Edit button
- In the dialog:
- Category Key = change
stairstostair_up - Chip Index =
19(unchanged)
- Category Key = change
- OK → old
stairsis deleted andstair_up = 19is added - Save
- The template's "minimap category key" on the Object tab must be changed to
stair_up
Flow 5: Change the exploration range
- Start from existing settings
- Change Explored Range Pattern from
足元のみto足元 + 周辺 3×3 - Save
- Walking in-game records the 9 surrounding cells as explored per step
Flow 6: Swap the atlas image
- Replace the atlas image file with a different image (preserving chip layout)
- Change Chip Atlas Path to the new image path
- Right pane thumbnails are auto-regenerated from the new image
- The meaning of chip indices (
stairs = 19, etc.) is unchanged, but the look is now the new chips - Save
Related tabs
| Tab | Related content |
|---|---|
| Object tab | The "minimap category key" of object templates is referenced in this tab's mapping |
| 3D Dungeon Settings tab | The minimap operates with shared 2D/3D settings |
| Map tab | The 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.
