scale-and-responsive

Scale and resize Phaser 4 game canvas using ScaleManager.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/diegolinhares/lightlabs_arena --skill scale-and-responsive-diegolinhares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scale-and-responsive
Source: https://github.com/diegolinhares/lightlabs_arena/tree/main/skills/scale-and-responsive
Command: npx skills add https://github.com/diegolinhares/lightlabs_arena --skill scale-and-responsive-diegolinhares

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill solves the challenge of creating responsive games that handle display scaling and fullscreen mode correctly, making them more accessible to a wider audience.

Core Features & Use Cases

  • ScaleManager Integration: Provides an API for the ScaleManager, handling game size, display size, and aspect ratio adjustments.
  • Responsive Design: Enables the game to scale with the parent container or fill it while preserving the aspect ratio.
  • Full-Screen Mode: Facilitates the use of fullscreen functionality to provide an immersive gaming experience.

Quick Start

Enable the 'scale-and-responsive' skill and set your game to fit inside a specific container.

Frequently Asked Questions about scale-and-responsive

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

FAQPage Schema
How do I make a Phaser 4 game responsive to different screen sizes?

To make a Phaser 4 game responsive, you use the ScaleManager to automatically resize the game canvas according to the parent element's size or game configuration, preserving the aspect ratio across various devices.

How do I integrate fullscreen support in a Phaser 4 game canvas?

Fullscreen support in a Phaser 4 game canvas is integrated by utilizing the ScaleManager API, which facilitates toggling fullscreen mode to provide an immersive gaming experience that dynamically fills the screen.

What's the best way to handle dynamic aspect ratios in Phaser 4?

The best way to handle dynamic aspect ratios in Phaser 4 is by configuring the ScaleManager to scale the game with its parent container while preserving the aspect ratio, ensuring the display adjusts correctly without distortion.

Can I scale a Phaser 4 game to fit a specific HTML container?

Yes, you can scale a Phaser 4 game to fit a specific HTML container by enabling the responsive scaling skill, which sets the game canvas to dynamically resize and fit inside the designated parent element.

Why does my Phaser 4 game canvas distort on different devices?

A Phaser 4 game canvas distorts on different devices when the aspect ratio is not preserved during display resizing, an issue solved by using the ScaleManager to manage game size and aspect ratio adjustments properly.