Decentraland Game Design & Scene Optimization
1. DCL Game Design Philosophy
Decentraland is a continuous, shared 3D world. Design around these constraints:
- No startup screen: The scene is always live. Players walk in from adjacent parcels — there is no splash screen, no "press start." Your scene must be meaningful the instant a player arrives.
- No forced endings: You cannot force a "game over" state. Players can leave at any time by walking away or teleporting. Design loops that accommodate drop-in / drop-out naturally.
- Cannot remove players: There is no API to eject a player from a scene. You can teleport a player, but only within the existing scene. If you're teleporting outside the scene, you can only do it with their consent (they must accept the prompt). Design around misbehaving players with game mechanics, not eviction. If the scene has admin players, admins are able to ban other players from the scene manually.
- Boundary awareness: Players standing outside your parcel can see into it. Your scene is always on display. Neighboring scenes are visible too — consider visual harmony.
- Shared space: Multiple players are always potentially present. Even a "single-player" puzzle is witnessed by others. Embrace or account for this.
2. Scene Limitation Formulas
Most limits scale with parcel count n (triangles, entities, bodies linear; materials, textures, height logarithmic). Key rule of thumb: 10,000 triangles and 200 entities per parcel.
For the full limits table across all parcel counts, see the optimize-scene skill.
3. Texture Requirements
- Dimensions must be power-of-two: 256, 512, 1024, 2048
- Recommended sizes: 1024x1024 for scene objects, 512x512 for wearables
- Use texture atlases to combine multiple small textures into one, reducing draw calls and material count
- Prefer compressed formats (WebP) over raw PNG where possible
- Share texture references across materials — do not duplicate texture files
4. Asset Preloading
Use the AssetLoad component to pre-load assets that aren't needed at scene startup so they display instantly when needed (e.g. things that appear later or on player interaction); don't use it for startup assets.
For the implementation pattern, see the optimize-scene skill.
First impression: time the intro to the loading screen
Anything the scene does on startup — an intro cinematic, a welcome sound, a title UI, an opening tween — happens behind the Explorer's loading screen and the player never sees it. EngineInfo.sceneHidden is true while that screen is up and flips to false the frame it fades out; that flip is the only reliable cue for "the player is now looking at the scene". Gate the opening beat on it instead of on a timer or a frame count. See the scene-runtime skill for the pattern.
5. Performance Patterns
Object Pooling
Reuse entities instead of creating and destroying them:
const pool: Entity[] = []
function getFromPool(): Entity {
const existing = pool.pop()
if (existing) return existing
return engine.addEntity()
}
function returnToPool(entity: Entity) {
Transform.getMutable(entity).position = Vector3.create(0, -100, 0)
pool.push(entity)
}
LOD (Level of Detail)
Swap models or hide entities based on distance from the player:
function lodSystem() {
const playerPos = Transform.get(engine.PlayerEntity).position
for (const [entity, transform] of engine.getEntitiesWith(Transform, GltfContainer)) {
const distance = Vector3.distance(playerPos, transform.position)
VisibilityComponent.createOrReplace(entity, { visible: distance <= 30 })
}
}
engine.addSystem(lodSystem)
Draw Call Reduction
- Merge meshes in Blender before export
- Use texture atlases (one material for many objects)
- Limit unique materials — reuse them across entities
- Avoid transparency when possible (transparent objects cost extra draw calls)
System Optimization
Disable Unused Colliders
Remove collision meshes from decorative objects that players never interact with. This reduces physics body count significantly.
Disable Landscape Terrain (Worlds)
For single-scene Worlds, set landscapeTerrain: false in scene.json to remove the auto-generated grassland/trees/sea around the scene. Two payoffs: it frees rendering budget, and it lets you commit to a self-contained aesthetic (open water, space, void). Ignored in Genesis City. See the create-scene skill.
6. Input System Design
| Input |
Action |
Notes |
| E key |
Primary action (IA_PRIMARY) |
Main interaction |
| F key |
Secondary action (IA_SECONDARY) |
Alternate interaction |
| Pointer click |
IA_POINTER |
Left mouse click / tap |
| Keys 1-4 |
IA_ACTION_3 through IA_ACTION_6 |
Action bar slots |
Design Considerations
- Mouse wheel is not available as an input
- Always design for both desktop and mobile. Mobile has no keyboard — rely on pointer and on-screen buttons
- Set
maxDistance on pointer events (8-10 meters typical) to prevent interactions from across the scene
- Use
hoverText to communicate what an interaction does before the player commits
7. State Management Patterns
Module-Level State (Simple Games)
// game-state.ts
export let score = 0
export let gamePhase: 'waiting' | 'playing' | 'ended' = 'waiting'
export function addScore(points: number) { score += points }
Component-Based State (Complex Games)
Use custom components as structured data containers:
import { engine, Schemas } from '@dcl/sdk/ecs'
const EnemyState = engine.defineComponent('EnemyState', {
health: Schemas.Number,
speed: Schemas.Number,
target: Schemas.Entity
})
State Machines
Model game phases as explicit states with clear transitions:
type GameState = 'lobby' | 'countdown' | 'active' | 'cooldown'
let currentState: GameState = 'lobby'
function gameStateSystem(dt: number) {
switch (currentState) {
case 'lobby': handleLobby(dt); break
case 'countdown': handleCountdown(dt); break
case 'active': handleActive(dt); break
case 'cooldown': handleCooldown(dt); break
}
}
8. UX/UI Guidelines
- Keep UI minimal: The metaverse is about 3D presence, not 2D overlays. Avoid large HUDs that obscure the world.
- Prefer spatial UI: Use
TextShape on entities and 3D signs over screen-space UI whenever the information is tied to a place or object.
- Clear affordances: Interactive objects should look interactive. Use glow effects, outlines, floating indicators, or subtle animations to signal "you can click this."
- Sound feedback: Every significant player action should produce audio feedback. It confirms the action registered and adds polish.
- Progressive disclosure: Do not dump all information at once. Reveal mechanics and story as the player engages. Start simple, layer complexity.
- Immediate feedback: When a player interacts, respond within the same frame. Use tweens, sounds, or UI popups so the player never wonders "did that work?"
- Accessibility: Use high-contrast text, readable font sizes (fontSize >= 16 for screen UI), and audio cues alongside visual ones.
9. MVP Planning
Start with the Core Loop
Ask: What does the player DO? The answer should be a single sentence:
- "The player explores rooms and finds hidden objects."
- "The player races other players through an obstacle course."
- "The player collects resources and builds structures."
Prototype Fast
- Build in 1-2 parcels first, even if the final scene will be larger
- Use primitive shapes (boxes, spheres) as placeholders — do not wait for final art
- Get the core loop working before adding any secondary features
Test Early
- Deploy to a test world and walk through it yourself
- Invite 2-3 real players and watch them (do not explain the game — see if it is self-explanatory)
- Measure: Do players understand what to do within 30 seconds?
Iterate on Fun
- Polish comes last. If the core loop is not fun with placeholder art, better art will not fix it
- Cut features aggressively. A tight, small experience beats a sprawling, unfinished one
- Replay value matters more than content volume in DCL (players return to scenes they enjoy)
MVP Checklist
Starting from scratch? See the create-scene skill first to scaffold the project before designing the game.
10. Game Loop Archetypes
Exploration
- Core loop: Discover locations, find hidden items, unlock areas.
- DCL fit: Excellent. The 3D world and spatial navigation are strengths.
- Design tips: Use landmarks for wayfinding. Reward curiosity with hidden content. Use lighting and sound to guide attention.
Collection
- Core loop: Gather items, complete sets, earn rewards.
- DCL fit: Strong. Combines well with exploration and daily engagement.
- Design tips: Use entity pooling for collectibles. Scatter items spatially. Tie collections to visual progress (display cases, counters).
Puzzle
- Core loop: Solve spatial or logic challenges to progress.
- DCL fit: Good. Spatial puzzles (move objects, find paths, activate sequences) work well.
- Design tips: Provide clear feedback on progress. Avoid puzzles that require typing (input is limited). Use 3D interactions (click, proximity triggers) as puzzle inputs.
Social
- Core loop: Interact with other players, attend events, roleplay.
- DCL fit: Excellent. This is the platform's native strength.
- Design tips: Create gathering spaces (seating, stages, open areas). Provide conversation starters (interactive objects, games). Design for groups of 5-20.
Competitive
- Core loop: Race, fight, or outscore other players.
- DCL fit: Moderate. Latency and input limitations constrain fast-paced action.
- Design tips: Prefer turn-based or timing-based competition over twitch reflexes. Use server-authoritative state to prevent cheating. Keep rounds short (2-5 minutes).
- Anti-cheat architecture: whenever scores or prizes are at stake, make the scene server-authoritative (see [[authoritative-server]]). Clients send intent messages only (e.g.
claimPoint) — never a score; the server validates (proximity to the objective, permissions) and is the only writer of game state. The official leaderboard test scene is a complete end-to-end template of this design: https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/90,-9-authoritative-server-leaderboard
11. Spatial Design
Landmarks
- Place a tall, visible landmark at the center or entrance of your scene. Players use it to orient themselves.
- Every distinct area should have a unique visual identity (color, shape, lighting).
Pathfinding
- Guide players with visible paths (floor patterns, lighting, railings).
- Avoid dead ends that require backtracking — use loops.
- Place interactive elements along paths to maintain engagement during traversal.
Sightlines
- Use open sightlines to draw players toward objectives.
- Block sightlines strategically to create mystery and discovery.
- Ensure the scene looks inviting from the parcel boundary (this is your "shop window").
Parcel Transitions
- If your scene spans multiple parcels, ensure smooth visual transitions.
- Do not place critical interactive elements right at parcel boundaries (loading edge cases).
Vertical Traversal with Gliding
- While a player glides, continuous scene forces are 1.5× stronger and their upward component can lift the glider (the falling-speed cap only limits descent). This enables traversal mechanics like thermal updrafts, wind corridors, and floating-island hops. One-shot impulses (launch pads, knockback) are unaffected by gliding. See the
player-physics skill ("Forces while gliding").
- Use open space at parcel edges as buffer zones.
12. Engagement and Monetization
Engagement Patterns
- Daily rewards: Offer small rewards for daily visits. Track visits via external server — DCL has no built-in daily tracking. Display streak counters in-scene.
- Progression systems: Levels or unlockable content tied to cumulative play. Store progress on a server or use NFT-based progression. Show progression visually (leaderboards, badges, evolving scene elements). For persistent leaderboards and per-player progress, the built-in Multiplayer Server's
Storage persists across redeploys and server sleep, with a server-owned synced component all clients render — see [[authoritative-server]] for the full pattern and reference scene.
- Achievements: Define clear milestones (first win, 100 collectibles, visited all rooms). Announce with sound and visual effects. Display achievement history in-scene (trophy room, wall of fame).
Monetization Approaches
- In-scene purchases: Sell virtual items or abilities via MANA transactions. Use
signedFetch for secure server-verified purchases. Always provide free gameplay alongside paid upgrades.
- Wearable sales: Create and sell wearables that complement your scene's theme. Display wearables on mannequins in-scene as advertisements.
- Entry fees/token gating: Charge MANA to enter a premium area, or require ownership of a specific NFT. Always have a free area that showcases what the paid area offers.
Social Mechanics
- Cooperative tasks: Design objectives requiring multiple players (two switches pressed simultaneously, etc.). Reward cooperation with shared benefits.
- Shared spaces: Create common areas where players naturally congregate. Add ambient interactive objects that encourage casual interaction.
- Events: Design scenes that can host scheduled events (concerts, competitions). Include a stage area with good sightlines. Provide event host controls (start/stop game, reset scene, broadcast messages). Gate host/admin actions server-side with an admin allow-list checked against the server-verified sender ([[authoritative-server]] Pattern 4) — never trust a client-reported role.
13. Tutorial and Onboarding
In-World Signs
- Place
TextShape entities with short instructions at key locations.
- Use arrows, glowing outlines, or animated indicators to point to interactive objects.
- Keep text under 10 words per sign.
NPC Guides
- Use an animated NPC at the scene entrance to greet and instruct.
- Deliver instructions through a dialog system (one message at a time, player advances).
- NPC dialog should be skippable for returning players.
Progressive Complexity
- Introduce one mechanic at a time. The first interaction should be obvious (a big, glowing button).
- After the player succeeds at the simple task, introduce the next layer.
- Gate advanced mechanics behind early accomplishments.
Zero-Explanation Test
- If a new player cannot figure out the first action within 30 seconds without any text or instructions, the design needs work.
- Watch real players attempt your scene cold. Their confusion is your design feedback.
14. Cross-References
| Topic |
Skill |
When to Use |
| Follow/chase a moving target (entities tracking the player) |
animations-tweens |
Tween.setMoveContinuous for smooth following; do NOT re-create setMove tweens per-frame (causes jitter). See the 79,-4-tween-following-cube test scene. |
| Interactivity, input handling, raycasting |
add-interactivity |
Implementing click handlers, triggers, input |
| Multiplayer sync, server communication |
multiplayer-sync |
Networked game state, real-time sync |
| Server-authoritative games, leaderboards, anti-cheat |
authoritative-server |
Competitive scoring, persistent progress, admin-gated host controls. The Gem Rush reference scene (92,-9) is a complete competitive game architecture with server-side proximity anti-cheat and checkpoint-only storage. |
| FPS-style / mouselook camera controls |
camera-control |
Mouselook pattern: PrimaryPointerInfo.screenDelta + VirtualCamera + PointerLock + InputModifier. Desktop only. |
| Spectate / observer / director camera |
camera-control |
Spectate Mode pattern: free or player-following camera, WASD/E/F/1/2 controls, parcel-bounds clamping, player roster. Combine with an admin check (authoritative-server) to restrict who can enter spectate mode. |
| Audio-reactive visuals (music visualizers, beat detection) |
audio-analysis |
AudioAnalysis component on AudioSource or VideoPlayer (progressive only, not HLS). Drive geometry/lights/colors from amplitude and 8 frequency bands. |
| Screen UI, React-ECS, HUD elements |
build-ui |
Building menus, scoreboards, dialogs. UiInputBinding prop for binding InputActions to UI elements (on-screen buttons for mobile). |
| Mobile touch controls |
advanced-input |
TouchScreenControls component for hiding/showing on-screen buttons, setting main action, hiding joystick/crosshair. Platform detection via getPlatform() / isMobile() from @dcl/sdk/platform. |
| Open Explorer UI panels from scenes |
scene-runtime |
openExplorerUi() restricted action to open map, backpack, settings, etc. from a user gesture. Useful for onboarding flows and UX shortcuts. |
| Deployment timing & post-publish troubleshooting |
deploy-scene |
Asset bundle conversion takes ~15 min (plan 30-60 min). Publish 2+ hours before live events. /detectabs checks conversion status in-world. Conversion status URLs for monitoring. |
| Local asset bundle preview |
optimize-scene |
"Optimize Assets" in Creator Hub or --local-ab CLI flag reproduces production asset bundle conversion locally. Catches texture/model issues before publishing. |
| Pause gameplay when scene is hidden |
scene-runtime |
EngineInfo.getOrNull(engine.RootEntity)?.sceneHidden is true when a fullscreen Explorer UI (map, backpack, loading screen) covers the scene. Use to pause game loops, audio, and expensive systems so they don't run while the player can't see or interact with the scene. |
| Entity removal returns boolean |
scene-runtime |
engine.removeEntity(entity) now returns boolean — false for renderer-reserved (avatar) entities, where components are left untouched. Check the return when despawning entities in game loops to avoid silently failing to remove an entity. |
| World deployment, storage budget |
deploy-worlds |
World storage budget (100 MB per NAME, 100 MB per LAND, 100 MB per 2k MANA; ENS = 36 MB fixed). Plan scene file sizes accordingly. |
| Performance optimization, entity/triangle budgets |
optimize-scene |
Detailed optimization techniques, local asset bundle preview, gltf reuse-vs-merge benchmark. |
This skill focuses on the design decisions and optimization constraints that shape implementations. For detailed code patterns, see the referenced skills.
1---2name: game-design3description: Plan and design Decentraland games and interactive experiences. Use when the user wants game design advice, scene architecture, performance planning, or help structuring a game. Do NOT use for specific implementation (see add-interactivity, build-ui, multiplayer-sync).4---56# Decentraland Game Design & Scene Optimization78## 1. DCL Game Design Philosophy910Decentraland is a **continuous, shared 3D world**. Design around these constraints:1112- **No startup screen**: The scene is always live. Players walk in from adjacent parcels — there is no splash screen, no "press start." Your scene must be meaningful the instant a player arrives.13- **No forced endings**: You cannot force a "game over" state. Players can leave at any time by walking away or teleporting. Design loops that accommodate drop-in / drop-out naturally.14- **Cannot remove players**: There is no API to eject a player from a scene. You can teleport a player, but only within the existing scene. If you're teleporting outside the scene, you can only do it with their consent (they must accept the prompt). Design around misbehaving players with game mechanics, not eviction. If the scene has admin players, admins are able to ban other players from the scene manually.15- **Boundary awareness**: Players standing outside your parcel can see into it. Your scene is always on display. Neighboring scenes are visible too — consider visual harmony.16- **Shared space**: Multiple players are always potentially present. Even a "single-player" puzzle is witnessed by others. Embrace or account for this.1718## 2. Scene Limitation Formulas1920Most limits scale with parcel count `n` (triangles, entities, bodies linear; materials, textures, height logarithmic). Key rule of thumb: **10,000 triangles and 200 entities per parcel**.2122For the full limits table across all parcel counts, see the **optimize-scene** skill.2324## 3. Texture Requirements2526- **Dimensions must be power-of-two**: 256, 512, 1024, 204827- **Recommended sizes**: 1024x1024 for scene objects, 512x512 for wearables28- **Use texture atlases** to combine multiple small textures into one, reducing draw calls and material count29- Prefer compressed formats (WebP) over raw PNG where possible30- Share texture references across materials — do not duplicate texture files3132## 4. Asset Preloading3334Use the `AssetLoad` component to pre-load assets that aren't needed at scene startup so they display instantly when needed (e.g. things that appear later or on player interaction); don't use it for startup assets.3536For the implementation pattern, see the **optimize-scene** skill.3738### First impression: time the intro to the loading screen3940Anything the scene does on startup — an intro cinematic, a welcome sound, a title UI, an opening tween — happens **behind the Explorer's loading screen** and the player never sees it. `EngineInfo.sceneHidden` is `true` while that screen is up and flips to `false` the frame it fades out; that flip is the only reliable cue for "the player is now looking at the scene". Gate the opening beat on it instead of on a timer or a frame count. See the **scene-runtime** skill for the pattern.4142## 5. Performance Patterns4344### Object Pooling45Reuse entities instead of creating and destroying them:4647```typescript48const pool: Entity[] = []4950function getFromPool(): Entity {51 const existing = pool.pop()52 if (existing) return existing53 return engine.addEntity()54}5556function returnToPool(entity: Entity) {57 Transform.getMutable(entity).position = Vector3.create(0, -100, 0)58 pool.push(entity)59}60```6162### LOD (Level of Detail)63Swap models or hide entities based on distance from the player:6465```typescript66function lodSystem() {67 const playerPos = Transform.get(engine.PlayerEntity).position68 for (const [entity, transform] of engine.getEntitiesWith(Transform, GltfContainer)) {69 const distance = Vector3.distance(playerPos, transform.position)70 VisibilityComponent.createOrReplace(entity, { visible: distance <= 30 })71 }72}73engine.addSystem(lodSystem)74```7576### Draw Call Reduction77- Merge meshes in Blender before export78- Use texture atlases (one material for many objects)79- Limit unique materials — reuse them across entities80- Avoid transparency when possible (transparent objects cost extra draw calls)8182### System Optimization83- Do NOT run heavy logic every frame. Use timers:84 ```typescript85 let timer = 086 function heavySystem(dt: number) {87 timer += dt88 if (timer < 0.5) return // Run every 500ms, not every frame89 timer = 090 // ... expensive work here91 }92 ```93- Minimize `engine.getEntitiesWith()` queries — cache results when entity sets are stable94- Avoid allocating new objects (Vector3.create, arrays) inside systems that run every frame9596### Disable Unused Colliders97Remove collision meshes from decorative objects that players never interact with. This reduces physics body count significantly.9899### Disable Landscape Terrain (Worlds)100For single-scene Worlds, set `landscapeTerrain: false` in `scene.json` to remove the auto-generated grassland/trees/sea around the scene. Two payoffs: it frees rendering budget, and it lets you commit to a self-contained aesthetic (open water, space, void). Ignored in Genesis City. See the `create-scene` skill.101102## 6. Input System Design103104| Input | Action | Notes |105|---|---|---|106| **E key** | Primary action (`IA_PRIMARY`) | Main interaction |107| **F key** | Secondary action (`IA_SECONDARY`) | Alternate interaction |108| **Pointer click** | `IA_POINTER` | Left mouse click / tap |109| **Keys 1-4** | `IA_ACTION_3` through `IA_ACTION_6` | Action bar slots |110111### Design Considerations112- Mouse wheel is **not available** as an input113- Always design for both **desktop and mobile**. Mobile has no keyboard — rely on pointer and on-screen buttons114- Set `maxDistance` on pointer events (8-10 meters typical) to prevent interactions from across the scene115- Use `hoverText` to communicate what an interaction does before the player commits116117## 7. State Management Patterns118119### Module-Level State (Simple Games)120```typescript121// game-state.ts122export let score = 0123export let gamePhase: 'waiting' | 'playing' | 'ended' = 'waiting'124export function addScore(points: number) { score += points }125```126127### Component-Based State (Complex Games)128Use custom components as structured data containers:129```typescript130import { engine, Schemas } from '@dcl/sdk/ecs'131132const EnemyState = engine.defineComponent('EnemyState', {133 health: Schemas.Number,134 speed: Schemas.Number,135 target: Schemas.Entity136})137```138139### State Machines140Model game phases as explicit states with clear transitions:141```typescript142type GameState = 'lobby' | 'countdown' | 'active' | 'cooldown'143let currentState: GameState = 'lobby'144145function gameStateSystem(dt: number) {146 switch (currentState) {147 case 'lobby': handleLobby(dt); break148 case 'countdown': handleCountdown(dt); break149 case 'active': handleActive(dt); break150 case 'cooldown': handleCooldown(dt); break151 }152}153```154155## 8. UX/UI Guidelines156157- **Keep UI minimal**: The metaverse is about 3D presence, not 2D overlays. Avoid large HUDs that obscure the world.158- **Prefer spatial UI**: Use `TextShape` on entities and 3D signs over screen-space UI whenever the information is tied to a place or object.159- **Clear affordances**: Interactive objects should look interactive. Use glow effects, outlines, floating indicators, or subtle animations to signal "you can click this."160- **Sound feedback**: Every significant player action should produce audio feedback. It confirms the action registered and adds polish.161- **Progressive disclosure**: Do not dump all information at once. Reveal mechanics and story as the player engages. Start simple, layer complexity.162- **Immediate feedback**: When a player interacts, respond within the same frame. Use tweens, sounds, or UI popups so the player never wonders "did that work?"163- **Accessibility**: Use high-contrast text, readable font sizes (fontSize >= 16 for screen UI), and audio cues alongside visual ones.164165## 9. MVP Planning166167### Start with the Core Loop168Ask: **What does the player DO?** The answer should be a single sentence:169- "The player explores rooms and finds hidden objects."170- "The player races other players through an obstacle course."171- "The player collects resources and builds structures."172173### Prototype Fast174- Build in **1-2 parcels** first, even if the final scene will be larger175- Use primitive shapes (boxes, spheres) as placeholders — do not wait for final art176- Get the core loop working before adding any secondary features177178### Test Early179- Deploy to a test world and walk through it yourself180- Invite 2-3 real players and watch them (do not explain the game — see if it is self-explanatory)181- Measure: Do players understand what to do within 30 seconds?182183### Iterate on Fun184- Polish comes last. If the core loop is not fun with placeholder art, better art will not fix it185- Cut features aggressively. A tight, small experience beats a sprawling, unfinished one186- Replay value matters more than content volume in DCL (players return to scenes they enjoy)187188### MVP Checklist189- [ ] **Core loop defined**: One sentence describing what the player does.190- [ ] **First action obvious**: A new player knows what to do within 30 seconds.191- [ ] **Feedback present**: Every interaction produces visible and/or audible feedback.192- [ ] **Win/progress condition clear**: The player understands when they are succeeding.193- [ ] **Lose/fail condition fair**: If there is failure, the player understands why and can retry quickly.194- [ ] **Replay value exists**: There is a reason to play again (score improvement, new content, social competition).195- [ ] **Multiplayer compatible**: Works correctly with 1 player and with 5+ simultaneous players.196- [ ] **Within scene limits**: Triangle count, entity count, texture count, and file size all within budget for the target parcel count.197- [ ] **Performance acceptable**: Maintains 30+ FPS during gameplay with target entity/triangle counts.198- [ ] **Mobile compatible**: Core interactions work without a keyboard (pointer-only inputs). Use `TouchScreenControls` (see **advanced-input**) to customize on-screen buttons and `UiInputBinding` (see **build-ui**) for custom touch-action buttons. Detect platform with `isMobile()` from `@dcl/sdk/platform` to branch UI/controls. Note: `borderRadius` is unsupported on mobile UI; `LightSource` (dynamic lights) ships on mobile v1.13.0 (Sept 2026). Smart Items are not officially supported on mobile.199200> **Starting from scratch?** See the **create-scene** skill first to scaffold the project before designing the game.201202## 10. Game Loop Archetypes203204### Exploration205- **Core loop**: Discover locations, find hidden items, unlock areas.206- **DCL fit**: Excellent. The 3D world and spatial navigation are strengths.207- **Design tips**: Use landmarks for wayfinding. Reward curiosity with hidden content. Use lighting and sound to guide attention.208209### Collection210- **Core loop**: Gather items, complete sets, earn rewards.211- **DCL fit**: Strong. Combines well with exploration and daily engagement.212- **Design tips**: Use entity pooling for collectibles. Scatter items spatially. Tie collections to visual progress (display cases, counters).213214### Puzzle215- **Core loop**: Solve spatial or logic challenges to progress.216- **DCL fit**: Good. Spatial puzzles (move objects, find paths, activate sequences) work well.217- **Design tips**: Provide clear feedback on progress. Avoid puzzles that require typing (input is limited). Use 3D interactions (click, proximity triggers) as puzzle inputs.218219### Social220- **Core loop**: Interact with other players, attend events, roleplay.221- **DCL fit**: Excellent. This is the platform's native strength.222- **Design tips**: Create gathering spaces (seating, stages, open areas). Provide conversation starters (interactive objects, games). Design for groups of 5-20.223224### Competitive225- **Core loop**: Race, fight, or outscore other players.226- **DCL fit**: Moderate. Latency and input limitations constrain fast-paced action.227- **Design tips**: Prefer turn-based or timing-based competition over twitch reflexes. Use server-authoritative state to prevent cheating. Keep rounds short (2-5 minutes).228- **Anti-cheat architecture**: whenever scores or prizes are at stake, make the scene server-authoritative (see [[authoritative-server]]). Clients send **intent** messages only (e.g. `claimPoint`) — never a score; the server validates (proximity to the objective, permissions) and is the only writer of game state. The official leaderboard test scene is a complete end-to-end template of this design: https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/90,-9-authoritative-server-leaderboard229230## 11. Spatial Design231232### Landmarks233- Place a tall, visible landmark at the center or entrance of your scene. Players use it to orient themselves.234- Every distinct area should have a unique visual identity (color, shape, lighting).235236### Pathfinding237- Guide players with visible paths (floor patterns, lighting, railings).238- Avoid dead ends that require backtracking — use loops.239- Place interactive elements along paths to maintain engagement during traversal.240241### Sightlines242- Use open sightlines to draw players toward objectives.243- Block sightlines strategically to create mystery and discovery.244- Ensure the scene looks inviting from the parcel boundary (this is your "shop window").245246### Parcel Transitions247- If your scene spans multiple parcels, ensure smooth visual transitions.248- Do not place critical interactive elements right at parcel boundaries (loading edge cases).249250### Vertical Traversal with Gliding251- While a player glides, continuous scene forces are 1.5× stronger and their **upward** component can lift the glider (the falling-speed cap only limits descent). This enables traversal mechanics like thermal updrafts, wind corridors, and floating-island hops. One-shot impulses (launch pads, knockback) are unaffected by gliding. See the `player-physics` skill ("Forces while gliding").252- Use open space at parcel edges as buffer zones.253254## 12. Engagement and Monetization255256### Engagement Patterns257- **Daily rewards**: Offer small rewards for daily visits. Track visits via external server — DCL has no built-in daily tracking. Display streak counters in-scene.258- **Progression systems**: Levels or unlockable content tied to cumulative play. Store progress on a server or use NFT-based progression. Show progression visually (leaderboards, badges, evolving scene elements). For persistent leaderboards and per-player progress, the built-in Multiplayer Server's `Storage` persists across redeploys and server sleep, with a server-owned synced component all clients render — see [[authoritative-server]] for the full pattern and reference scene.259- **Achievements**: Define clear milestones (first win, 100 collectibles, visited all rooms). Announce with sound and visual effects. Display achievement history in-scene (trophy room, wall of fame).260261### Monetization Approaches262- **In-scene purchases**: Sell virtual items or abilities via MANA transactions. Use `signedFetch` for secure server-verified purchases. Always provide free gameplay alongside paid upgrades.263- **Wearable sales**: Create and sell wearables that complement your scene's theme. Display wearables on mannequins in-scene as advertisements.264- **Entry fees/token gating**: Charge MANA to enter a premium area, or require ownership of a specific NFT. Always have a free area that showcases what the paid area offers.265266### Social Mechanics267- **Cooperative tasks**: Design objectives requiring multiple players (two switches pressed simultaneously, etc.). Reward cooperation with shared benefits.268- **Shared spaces**: Create common areas where players naturally congregate. Add ambient interactive objects that encourage casual interaction.269- **Events**: Design scenes that can host scheduled events (concerts, competitions). Include a stage area with good sightlines. Provide event host controls (start/stop game, reset scene, broadcast messages). Gate host/admin actions server-side with an admin allow-list checked against the server-verified sender ([[authoritative-server]] Pattern 4) — never trust a client-reported role.270271## 13. Tutorial and Onboarding272273### In-World Signs274- Place `TextShape` entities with short instructions at key locations.275- Use arrows, glowing outlines, or animated indicators to point to interactive objects.276- Keep text under 10 words per sign.277278### NPC Guides279- Use an animated NPC at the scene entrance to greet and instruct.280- Deliver instructions through a dialog system (one message at a time, player advances).281- NPC dialog should be skippable for returning players.282283### Progressive Complexity284- Introduce one mechanic at a time. The first interaction should be obvious (a big, glowing button).285- After the player succeeds at the simple task, introduce the next layer.286- Gate advanced mechanics behind early accomplishments.287288### Zero-Explanation Test289- If a new player cannot figure out the first action within 30 seconds without any text or instructions, the design needs work.290- Watch real players attempt your scene cold. Their confusion is your design feedback.291292## 14. Cross-References293294| Topic | Skill | When to Use |295|---|---|---|296| Follow/chase a moving target (entities tracking the player) | **animations-tweens** | `Tween.setMoveContinuous` for smooth following; do NOT re-create `setMove` tweens per-frame (causes jitter). See the [`79,-4-tween-following-cube`](https://github.com/decentraland/sdk7-test-scenes/tree/main/scenes/79,-4-tween-following-cube) test scene. |297| Interactivity, input handling, raycasting | **add-interactivity** | Implementing click handlers, triggers, input |298| Multiplayer sync, server communication | **multiplayer-sync** | Networked game state, real-time sync |299| Server-authoritative games, leaderboards, anti-cheat | **authoritative-server** | Competitive scoring, persistent progress, admin-gated host controls. The Gem Rush reference scene (`92,-9`) is a complete competitive game architecture with server-side proximity anti-cheat and checkpoint-only storage. |300| FPS-style / mouselook camera controls | **camera-control** | Mouselook pattern: `PrimaryPointerInfo.screenDelta` + VirtualCamera + PointerLock + InputModifier. Desktop only. |301| Spectate / observer / director camera | **camera-control** | Spectate Mode pattern: free or player-following camera, WASD/E/F/1/2 controls, parcel-bounds clamping, player roster. Combine with an admin check (authoritative-server) to restrict who can enter spectate mode. |302| Audio-reactive visuals (music visualizers, beat detection) | **audio-analysis** | `AudioAnalysis` component on `AudioSource` or `VideoPlayer` (progressive only, not HLS). Drive geometry/lights/colors from `amplitude` and 8 frequency `bands`. |303| Screen UI, React-ECS, HUD elements | **build-ui** | Building menus, scoreboards, dialogs. `UiInputBinding` prop for binding InputActions to UI elements (on-screen buttons for mobile). |304| Mobile touch controls | **advanced-input** | `TouchScreenControls` component for hiding/showing on-screen buttons, setting main action, hiding joystick/crosshair. Platform detection via `getPlatform()` / `isMobile()` from `@dcl/sdk/platform`. |305| Open Explorer UI panels from scenes | **scene-runtime** | `openExplorerUi()` restricted action to open map, backpack, settings, etc. from a user gesture. Useful for onboarding flows and UX shortcuts. |306| Deployment timing & post-publish troubleshooting | **deploy-scene** | Asset bundle conversion takes ~15 min (plan 30-60 min). Publish 2+ hours before live events. `/detectabs` checks conversion status in-world. Conversion status URLs for monitoring. |307| Local asset bundle preview | **optimize-scene** | "Optimize Assets" in Creator Hub or `--local-ab` CLI flag reproduces production asset bundle conversion locally. Catches texture/model issues before publishing. |308| Pause gameplay when scene is hidden | **scene-runtime** | `EngineInfo.getOrNull(engine.RootEntity)?.sceneHidden` is `true` when a fullscreen Explorer UI (map, backpack, loading screen) covers the scene. Use to pause game loops, audio, and expensive systems so they don't run while the player can't see or interact with the scene. |309| Entity removal returns boolean | **scene-runtime** | `engine.removeEntity(entity)` now returns `boolean` — `false` for renderer-reserved (avatar) entities, where components are left untouched. Check the return when despawning entities in game loops to avoid silently failing to remove an entity. |310| World deployment, storage budget | **deploy-worlds** | World storage budget (100 MB per NAME, 100 MB per LAND, 100 MB per 2k MANA; ENS = 36 MB fixed). Plan scene file sizes accordingly. |311| Performance optimization, entity/triangle budgets | **optimize-scene** | Detailed optimization techniques, local asset bundle preview, gltf reuse-vs-merge benchmark. |312313This skill focuses on the **design decisions and optimization constraints** that shape implementations. For detailed code patterns, see the referenced skills.