render-textures

Draw and compose game content onto off-screen textures using Phaser 4 rendering APIs.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill render-textures-arnaudruffin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: render-textures
Source: https://github.com/arnaudruffin/dvx-phaser-game/tree/main/.agents/skills/render-textures
Command: npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill render-textures-arnaudruffin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Off-screen rendering and texture composition for Phaser 4 game development, enabling complex visuals without altering the visible scene.

Core Features & Use Cases

  • RenderTexture and DynamicTexture creation to draw objects off-screen, then render to the display or reuse textures across scenes.
  • Snapshots, stamping, and procedural texture generation to support minimaps, UI overlays, and dynamic effects.
  • Use Case: Build a minimap by repeatedly drawing world objects to a small RenderTexture and displaying it in a HUD.

Quick Start

In a Scene's create() method, create a RenderTexture and draw objects, then call render() to flush the command buffer.

Frequently Asked Questions about render-textures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render game content to an off-screen texture in Phaser 4?

Off-screen rendering in Phaser 4 uses RenderTexture and DynamicTexture APIs to draw and compose game objects without altering the visible scene. This allows complex multi-layer rendering and texture reuse across different scenes.

What is the best way to build a minimap using dynamic textures?

Building a minimap with dynamic textures involves repeatedly drawing world objects onto a small RenderTexture. This off-screen texture is then displayed in your HUD, allowing continuous procedural texture generation and stamping without affecting the main scene.

How do I use the renderTexture API for multi-layer rendering?

The renderTexture API supports multi-layer rendering by buffering draw commands and stamping operations off-screen. You control the render mode to composite multiple game objects into a single texture for display or cross-scene reuse.

Can I reuse off-screen textures across different scenes?

Yes, DynamicTexture allows you to draw and compose game content once and reuse the resulting texture across multiple scenes. This avoids redrawing objects repeatedly while maintaining the off-screen composition.

When do I need off-screen rendering for UI overlays and snapshots?

You need off-screen rendering for UI overlays and snapshots when generating procedural textures or capturing visual states without modifying the active scene. This technique composes visuals independently before stamping them onto the display.