render-textures

Draw game objects to off-screen textures using Phaser 4 RenderTexture and DynamicTexture APIs.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill render-textures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: render-textures
Source: https://github.com/Raphe-dev/phaser-cozy-mmo/tree/main/skills/render-textures
Command: npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill render-textures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Off-screen rendering of game content by enabling RenderTexture and DynamicTexture in Phaser 4, allowing you to draw and snapshot game objects to textures for HUDs, minimaps, or composites without altering the live scene.

Core Features & Use Cases

  • RenderTexture vs DynamicTexture: Create and manage textures that are either visible as a game object or shared across objects.
  • Draw, stamp, and capture: Compose scenes by drawing objects, stamping textures, and capturing them for later reuse.
  • Snapshots and minimaps: Produce pixel-accurate images of textures for screenshots, minimaps, or thumbnails.
  • Practical patterns: HUD overlays, off-screen generation, image processing, and reusable texture assets.

Quick Start

Create a RenderTexture and draw a sprite to it, 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 draw game objects to off-screen textures in Phaser 4?

You can draw game objects to off-screen textures in Phaser 4 by using RenderTexture and DynamicTexture APIs to perform draw, stamp, and capture operations outside the live scene.

What is the difference between RenderTexture and DynamicTexture in Phaser 4?

RenderTexture is a visible game object for drawing and snapshotting content, while DynamicTexture creates a shared texture that can be applied across multiple game objects.

Can I use off-screen rendering to create minimaps and HUD overlays in Phaser 4?

Yes, off-screen rendering supports generating pixel-accurate snapshots and composites of game objects, which you can reuse directly for minimaps, HUD overlays, and thumbnails.

How do I capture a snapshot of a sprite for later reuse in Phaser 4?

You can capture a snapshot of a sprite by drawing it to an off-screen RenderTexture and flushing the command buffer to save the pixel-accurate image for later reuse.

Does this approach to off-screen rendering support per-object camera positioning?

Yes, this off-screen rendering workflow supports command-buffer rendering and per-object camera positioning, allowing customized capture angles and composite scene generation.