dev-phaser-ui-creation

Create game HUDs, buttons, dialogs, and DOM overlays with Phaser 3 UI components.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/fiando/bake-tycoon --skill dev-phaser-ui-creation-fiando
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dev-phaser-ui-creation
Source: https://github.com/fiando/bake-tycoon/tree/main/.github/skills/dev-phaser-ui-creation
Command: npx skills add https://github.com/fiando/bake-tycoon --skill dev-phaser-ui-creation-fiando

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phaser.

What problem does it solve? Building game interfaces with raw HTML and CSS requires manual DOM manipulation, separate styling, and no integration with the Phaser scene lifecycle, camera, or rendering pipeline. This Skill provides patterns for creating UI directly inside Phaser scenes using text objects, graphics, containers, and interactive elements. ## Core Features & Use Cases - Text and HUD Elements: Create score displays, health bars, and timers with add.text() and Graphics, fixed to the camera via setScrollFactor(0). - Interactive Buttons: Build buttons with hover, press, and click states using setInteractive() and tween-based feedback effects. - Dialogs and Containers: Group UI elements into containers and implement typewriter-style dialog boxes with keyboard advancement. - HTML DOM Integration: Embed HTML overlays with this.add.dom() for pause menus and complex styled layouts. - Use Case: When building an idle game like a bakery simulator, use this Skill to create a responsive HUD showing currency totals, producer buttons with hover effects, and a daily-reward dialog that scales across screen sizes. ## Quick Start Ask the AI to create a Phaser UI scene with a score display, an interactive start button with hover effects, and a health bar fixed to the camera.

Frequently Asked Questions about dev-phaser-ui-creation

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

FAQPage Schema
How do I create a button in Phaser 3?▼

Create a text object with backgroundColor and padding styles, call setInteractive({ useHandCursor: true }), then attach pointerover, pointerout, and pointerdown event handlers. Add tweens for scale feedback on hover and click states.

How to keep Phaser UI fixed when the camera moves?▼

Call setScrollFactor(0) on HUD elements or their container so they ignore camera movement. Alternatively, place UI in a separate scene and have the game camera ignore those objects.

Should I use Phaser UI or HTML DOM for game menus?▼

Use Phaser text and graphics for HUDs and buttons that need tweens, depth sorting, and single-pass rendering. Use this.add.dom() HTML overlays for complex styled layouts like pause menus, but minimize DOM element count for performance.

How do I make Phaser UI responsive to screen size?▼

Position elements relative to this.scale.width and this.scale.height, then listen to the scale manager resize event to reposition elements when the game size changes. Avoid hardcoded pixel coordinates.

Why is my Phaser button not responding to clicks?▼

The game object likely lacks setInteractive(), which registers it with the input system. Also verify the button is not covered by another interactive object and that touch targets are at least 44 pixels on mobile.