3D Dungeon Mode
3D Dungeon Mode is a feature unique to this tool that displays the same map data as a first-person 3D view. It enables you to make DRPG (Dungeon RPG) games in the style of Wizardry, Etrian Odyssey, or Might & Magic.
Intended audience
- Those who want to make dungeon exploration games
- Those who want to use 2D maps and 3D dungeons together
- Those who want to understand the detailed 3D settings
Overview
Features
- Reuses existing 2D map data — References passability on Ground / Below / Above layers to auto-generate walls, floors, and ceilings
- PC uses Camera3D first-person view — The 2D PC sprite is automatically hidden while in 3D mode
- Standard DRPG 4-direction controls — Up = forward / Left = turn left / Right = turn right / Down = 180-degree turn
- Atomic coordination with map switching — When used consecutively with Change Map, the switch happens atomically during the fade transition
- Objects use Sprite3D or Cube — NPCs, treasure chests, etc. can be displayed in 3D space
Main uses
- DRPG-style exploration of underground labyrinths, caves, and towers
- First-person view for indoor areas (castles, houses)
- Mixed 2D/3D direction (e.g., 3D inside caves, 2D outside)
In-game limitations
- 3D mode is not supported during battle: The battle screen is independent (returns to 3D mode after battle)
- Move Camera is disabled in 3D mode: To preserve the first-person view, Move Camera is skipped during 3D
Controls (Standard DRPG)
While in 3D mode, key inputs are reinterpreted as follows (different from 2D mode movement):
| Key | Action |
|---|---|
| ↑ Up | Move forward (1 cell in facing direction) |
| ← Left | Turn 90 degrees left |
| → Right | Turn 90 degrees right |
| ↓ Down | Turn 180 degrees (face backward) |
Intent of DRPG controls
By specializing in forward movement and making left/right rotation instead of strafing, this follows the standard DRPG controls established since Wizardry. The Down key is "turn around (180 degrees)" rather than "step backward."
- The camera always follows the PC's position and rotates according to
facing - Rotation and forward movement are smoothly Tween-interpolated using a configured duration (default 0.25 seconds)
- Dash is disabled (always normal speed)
Switching between 2D and 3D
Two basic Event Contents
- Set 3D Dungeon Enabled — Toggle ON/OFF
- Set 3D Dungeon Config — Change appearance, sound, view distance, etc.
Atomic batching (recommended)
When Change Map and the two Event Contents above are placed consecutively, the tool performs atomic processing:
- Change Map's transition (fade_out) covers the screen
- During the blackout, atomic processing occurs (reflect 3D settings → switch map)
- Fade in (fade_in) restores the screen
This smoothly implements "dungeon entrance → move to new map while switching to 3D mode."
┌─────────────────────────────────────────────────┐
│ Dungeon entrance event │
├─────────────────────────────────────────────────┤
│ 1. Change Map: to the dungeon map │
│ 2. Set 3D Dungeon Config │
│ (wall texture, view distance, etc.) │
│ 3. Set 3D Dungeon Enabled │
│ Enabled: ON │
└─────────────────────────────────────────────────┘With consecutive placement, auto atomic batching works and to the player it looks as if "everything switched during the fade."
Variable vs. Fixed Settings
The 3D Dungeon settings are divided into two layers.
Variable (changeable during play)
Properties that can be dynamically changed with Set 3D Dungeon Config:
| Property | Type | Meaning |
|---|---|---|
| Ceiling texture (ceiling_texture) | Image path | Appearance of the ceiling |
| Floor texture (floor_texture) | Image path | Appearance of the floor |
| Wall texture (wall_texture) | Image path | Appearance of walls |
| Ceiling enabled (ceiling_enabled) | bool | Whether to draw the ceiling |
| Background enabled (background_enabled) | bool | Use background image or solid color |
| Background image (background_image) | Image path | Background image (when enabled) |
| Background color R/G/B (background_color_*) | int 0-255 | Background solid color (when disabled) |
| View distance (view_distance) | int | How many cells ahead to draw |
| Move sound (move_sound) | Sound path | Sound effect when moving 1 cell forward |
| Rotate sound (rotate_sound) | Sound path | Sound effect when rotating |
"Empty string = keep current" specification
If you leave string-based properties (texture, sound paths) empty, existing settings are reused as-is. Partial updates like "change only the walls" are naturally expressible.
Fixed (unchangeable during play)
Properties configured in Editor: 3D Dungeon Settings but not changeable via Event Content:
| Property | Type | Default | Meaning |
|---|---|---|---|
| View angle FOV | float | 75.0 | View angle of Camera3D (degrees) |
| Forward duration (3D) | float | 0.25 | Time to move 1 cell forward (seconds) |
| Rotation duration (3D) | float | 0.25 | Time to rotate (seconds) |
To change these, update settings in the editor and restart the game.
Region feature
A feature that allows applying different 3D settings per section of a map.
Mechanism
- Set the
regioncustom data attribute on map tiles (cells) (non-negative integer) - With Set 3D Dungeon Config, specifying
region=1 or abovemakes it that region's specific setting - When the player enters that cell, the corresponding region setting takes priority
Setting priority
Priority of settings actually used when displaying 3D (high → low):
- Region override (region >= 1 only): Per-region settings saved via Event Content
- Global settings (region = 0): Global settings saved via Event Content
- JSON defaults: Initial values defined in the 3D Dungeon Settings tab of the editor
Use cases
- "Change the floor and footstep sound only in the water area"
- "Have red light pouring down only in the evil area (background color change)"
- "The boss room has a higher ceiling (ceiling_texture change)"
Reset
Reset 3D Dungeon Regions can bulk-clear all region overrides (region = 0 global settings are retained).
3D display of objects
NPCs, treasure chests, and other objects placed on the map are also displayed in 3D space.
Texture and shape settings
In the right pane of "3D Object Images" in Editor: 3D Dungeon Settings, for each object type (object_type), set:
- 3D texture: Image for 3D display
- Shape:
plate(BILLBOARD plane, always faces the player) orcube(same-sized cube as walls)
are set.
Display switching
By setting the following on the object template, you can use different images for 2D and 3D:
- 2D: Normal sprite image
- 3D: 3D texture corresponding to
object_type
This enables mixed usage such as "NPC appears as a humanoid sprite in 2D, as a BILLBOARD portrait in 3D."
Required prior configuration
Before using this feature, you must configure the following in Editor: 3D Dungeon Settings:
- Default textures for walls / floor / ceiling — Basic appearance of the 3D dungeon
- View distance — Distance to draw into the depths (large = heavy, small = claustrophobic)
- (Optional) Background / sound — Atmospheric production
- (Optional) Object textures — 3D display of NPCs, treasure chests, etc.
If these are not configured, the 3D display will be pitch black, or walls and floors won't be laid out.
Performance
Load from view distance
Increasing the view distance increases the number of walls, floors, and ceiling cells drawn. Use the following as a guideline on older devices:
- Light: view_distance = 3-5 (recommended)
- Standard: view_distance = 6-10
- Heavy: view_distance = 11 or above
If it feels heavy, reduce the view distance or turn ceiling_enabled OFF to skip ceiling rendering for better performance.
Zero load in 2D mode
When 3D mode is OFF, 3D space rendering is completely stopped (process_mode = DISABLED). The design ensures "no impact on games that don't use 3D Dungeon."
Related Event Contents
Event Contents related to this feature:
| Event Content | Role |
|---|---|
| Set 3D Dungeon Enabled | Switch between 2D ↔ 3D |
| Set 3D Dungeon Config | Change appearance, sound, view distance, etc. (per-region supported) |
| Reset 3D Dungeon Regions | Clear all region overrides |
| Change Map | Atomic batching when placed consecutively with the above two |
| Move Camera | Completely skipped during 3D mode |
Limitations and pitfalls
Independence from battle screen
During battle, 3D mode automatically stops and the normal battle screen is displayed. After battle, 3D mode is restored. The "fight within 3D space" direction is not supported by the tool's specification.
Move Camera cannot be used
Move Camera is skipped during 3D mode (the label also clearly states "Move Camera (2D only)"). If you want direction like "show the boss appearance from a distance," design it to temporarily switch to 2D mode and then use Move Camera.
Map data is shared with 2D
3D mode references the passable (passability) of 2D map data to auto-generate walls. There is no independent 3D-specific map data; the same .tscn file is used for both 2D and 3D.
Build while previewing in the 2D map editor
The 3D preview is not shown in the map editor. If you define walls via the passable attribute during 2D editing, they will automatically appear as walls in 3D at game startup. Within the map editor, walls are confirmed as "impassable cells."
Region attribute tile placement
To use the region feature, you must set the region ID on each cell using the cell region edit mode in the map editor (details: Editor: Map). Cells with no setting are treated as region = 0 (global settings).
3D object object_type
To display an object in 3D, the object_type specified in its template must be registered in "3D Object Images" in Editor: 3D Dungeon Settings. Unregistered types are not displayed in 3D space.
Input reinterpretation
During 3D mode, direction keys are reinterpreted as "forward / left-right rotation / 180-degree rotation." The requirement "allow free movement same as 2D" is not supported (fixed as DRPG standard).
Saved data
The state of 3D Dungeon is recorded in save data as follows:
save_data.world.dungeon_3d_enabled: 3D mode ON/OFFsave_data.world.dungeon_3d_config: Global settings (changed via Event Content)save_data.world.dungeon_3d_region_config: Per-region overrides
State is retained even after save → load.
Related pages
- Editor: 3D Dungeon Settings — Basic 3D Dungeon settings screen
- Editor: Map — 2D map data (shared with 3D)
- Editor: Object — 3D image settings on object templates
- Set 3D Dungeon Enabled
- Set 3D Dungeon Config
- Reset 3D Dungeon Regions
- Change Map — Basics of atomic batching
- Move Camera — Limitation during 3D mode
- Minimap Reference — Minimap is shown in 2D top-down even during 3D mode
