Developer Mode
Developer Mode is an admin-only feature that provides in-game visual editing tools for rapid iteration and precise object positioning.
Table of Contents
- Overview
- Enabling Developer Mode
- Developer Mode Interface
- Visual Object Positioning
- Trigger Visualization
- Wall Builder
- Best Practices
Overview
Developer Mode activates when an administrator user plays the game, adding powerful visual editing capabilities directly within the game interface.
Key Features
- Drag-and-drop object positioning
- Visual trigger overlays
- Real-time coordinate updates
- Wall builder for collision boundaries
- Pin-point coordinate display tool
- God / No touch modes for main character
- In-game object creation (Pro feature)
- Instant updates without page reloads
Access Requirements
- User must have
manage_optionscapability (Administrator role) - Automatically activates when admin users visit the game page
Enabling Developer Mode
Developer Mode is automatically available to administrators. To access it:
- Log in as an administrator
- Navigate to your game page (configured in Global Options)
- Item/Character/Trigger click and drag works automatically
- Additional Developer tools appear when "DEVMODE" link in bottom right corner of the interface is clicked
Note: Regular players and non-admin users never see Developer Mode tools.
Developer Mode Interface
When active, you'll see additional UI elements:
DEVMODE Toggle
A "DEVMODE" button appears in the bottom-right corner:
- Click to open the Developer Mode menu
- Access all developer tools from this menu
Visual Indicators
- Trigger Overlays: Semi-transparent colored boxes show trigger zones
- Coordinate Display: Pin-point tool allows for instant coordinate display on click map point
Visual Object Positioning
Dragging Objects
- Enable Developer Mode (if object/trigger is transparent)
- Click and hold any game object (character, enemy, item, weapon)
- Drag to new position
- Release to save new coordinates
Behind the Scenes:
- Position updates via REST API (
/set-item-position/) - New coordinates saved to post meta immediately
- Changes persist without page reload
Trigger Positioning
Triggers (cutscene triggers, mission triggers, etc.) can be positioned visually:
- Triggers appear as colored overlay boxes
- Click and drag to reposition
Trigger Visualization
Developer Mode shows all trigger zones as colored overlays:
Trigger Types
Cutscene Triggers:
- Visual indicator shows trigger zone
Mission Triggers:
- Shows completion trigger zones
- Indicates blockade areas
Item Triggers:
- Materialization triggers
- Interaction zones
Using Trigger Overlays
- Open Developer Mode menu
- Enable trigger visualization
- All triggers appear as colored boxes
- Drag as needed
Wall Builder
The wall builder creates invisible collision boundaries directly in-game.
Accessing Wall Builder
- Open Developer Mode menu
- Select "Wall Builder" Icon
- Wall creation is now enabled as icon glows
Creating Walls
- Click starting position on map
- Drag to define wall dimensions
- Release to create wall
- Wall automatically saves as
explore-wallpost
Wall Configuration
- Width/Height: Set via dragging
- Position: Set via placement
- Area: Automatically assigned to current area
Editing Walls
- Existing walls appear as blue overlay boxes in Developer Mode
- Click to select
- Drag to reposition
Best Practices
- Align walls with visual boundaries on your map
- Test player movement after placing walls
- Use multiple smaller walls rather than one large complex shape
- Leave clear pathways for player navigation
- Use walls on items in part of the map image instead of defining stationary item posts
Creating Objects In-Game (Pro feature)
Developer Mode allows creating new game objects without leaving the game.
New Addition Menu
- Open Developer Mode menu
- Select "New Addition"
- Choose object type from dropdown
- Fill in configuration fields
- Submit and page will refresh
- Continue game to see your new object
Supported Object Types
- Characters
- Enemies
- Weapons
- Items
- Focus view items
- Explainers
- Walls
- Cutscenes
Workflow
graph LR
Menu[Open Dev Menu] --> Select[Select Object Type]
Select --> Fields[Get Configuration Fields]
Fields --> Fill[Fill in Details]
Fill --> Place[Click Map to Place]
Place --> Save[Object Created]Creating the Object
- Fill in required fields (title, images, etc.)
- Use pin-point tool to get top/left coordinates
- REST endpoint:
/add-new/ - Object appears immediately in-game upon refresh
Best Practices
Positioning Workflow
Rough Placement First:
- Create objects in WordPress admin with approximate coordinates
- Use Developer Mode for fine-tuning
- Test gameplay flow
- Adjust as needed
Precision Positioning:
- Use Developer Mode's drag-and-drop for exact placement
- Verify coordinates update in real-time
- Test from player perspective
Trigger Configuration
Sizing:
- Make triggers slightly larger than visual elements
- Ensure triggers are easily activatable
- Test trigger activation from multiple angles
Placement:
- Position triggers where players expect interaction
- Align with visual cues (doors, NPCs, items)
- Avoid overlapping triggers when possible
Testing
Disable Dev Mode for Testing:
- Log out or use incognito mode with non-admin account
- Verify triggers work as expected
- Check that dev UI doesn't appear
Iterate Quickly:
- Make changes in Developer Mode
- Test immediately
- No need to return to WordPress admin
Performance
Use Sparingly During Active Play:
- Developer Mode adds overhead
- Best used during development, not production
- Regular players never see the performance impact
Developer Mode API Endpoints
Developer Mode uses dedicated REST endpoints:
Set Item Position
Endpoint: POST /wp-json/orbemorder/v1/set-item-position/
Updates object coordinates.
Parameters:
id- Post IDtop- Y coordinateleft- X coordinatemeta- Meta key (for trigger positioning)
Set Item Size (Pro feature)
Endpoint: POST /wp-json/orbemorder/v1/set-item-size/
Updates object dimensions.
Parameters:
id- Post IDheight- Object heightwidth- Object widthmeta- Meta key (for trigger sizing)
Get New Fields (Pro feature)
Endpoint: POST /wp-json/orbemorder/v1/get-new-fields/
Retrieves configuration fields for object type.
Parameters:
type- Post type (e.g.,explore-character)
Returns: HTML form fields for that object type
Add New (Pro feature)
Endpoint: POST /wp-json/orbemorder/v1/add-new/
Creates a new game object.
Parameters:
type- Post typearea- Area slugvalues- Object configuration data
Returns: New post ID
See Developer Mode Endpoints for complete API documentation.
Troubleshooting
Developer Mode Not Appearing:
- Verify you're logged in as Administrator
- Check that you have
manage_optionscapability - Clear browser cache
Objects Not Draggable:
- Ensure Developer Mode menu is open
- Check that objects are properly loaded
- Verify no JavaScript errors in console
Position Updates Not Saving:
- Check browser console for API errors
- Verify WordPress REST API is accessible
- Confirm user permissions
Trigger Overlays Not Showing:
- Enable trigger visualization in Dev Mode menu
- Verify triggers have height/width values > 0
- Check that triggers belong to current area
Related Documentation
- Game Objects Overview - Understanding object types
- Developer Mode API - API endpoint reference
- Global Options - Game configuration