text-and-bitmaptext

Render and style Text and BitmapText in Phaser 4 using Canvas 2D and WebGL.

Updated May 16, 2026
One-click install
npx skills add https://github.com/ckyeon/claude-code-settings --skill text-and-bitmaptext-ckyeon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: text-and-bitmaptext
Source: https://github.com/ckyeon/claude-code-settings/tree/main/project-templates/phaser/.claude/skills/text-and-bitmaptext
Command: npx skills add https://github.com/ckyeon/claude-code-settings --skill text-and-bitmaptext-ckyeon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers users to easily display text and bitmap text in Phaser 4 games, solving the challenge of incorporating readable and stylable text elements into game UIs and graphics.

Core Features & Use Cases

  • Text Display: Provides comprehensive support for rendering Canvas-based Text and BitmapText objects in Phaser 4.
  • Dynamic Styling: Allows for rich text styling with web fonts, shadows, gradients, and more.
  • Use Case: For developers aiming to add informative text labels, player stats, or dynamic UI elements to their Phaser 4 games.

Quick Start

Add a canvas-based text element with styling: ```js const title = this.add.text(400, 50, 'Hello World', { fontFamily: 'Arial', fontSize: '32px', color: '#ffffff' });

Frequently Asked Questions about text-and-bitmaptext

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

FAQPage Schema
How do I display styled text in a Phaser 4 game?

To display styled text in Phaser 4, you can add a canvas-based text element using the Canvas 2D API. This approach supports web fonts, shadows, gradients, padding, and alignment for game UI elements.

What is the difference between Text and BitmapText in Phaser 4?

Text and BitmapText in Phaser 4 differ in rendering engines. Text uses the Canvas 2D API for web font styling, while BitmapText uses WebGL for rendering pre-rendered bitmap characters.

Can I add dynamic UI elements and player stats using Phaser 4 text rendering?

Yes, you can add dynamic UI elements and player stats using Phaser 4 text rendering. It supports dynamic content manipulation, allowing you to update text labels and styled elements during gameplay.

Does Phaser 4 text rendering support word wrap and alignment for game UIs?

Phaser 4 text rendering supports word wrap and alignment for game UIs. These features allow you to control text layout, padding, and styling to ensure readable UI elements within your game.

What's the best way to apply rich styling like gradients to text in Phaser 4?

The best way to apply rich styling like gradients to text in Phaser 4 is by configuring the text style object. This object accepts properties for fontFamily, fontSize, color, shadows, and gradients.

Why use BitmapText instead of Canvas Text in a Phaser 4 game?

You should use BitmapText instead of Canvas Text in Phaser 4 when leveraging WebGL for rendering. BitmapText is optimal for rendering character glyphs, whereas Canvas Text relies on the Canvas 2D API for web fonts.