game-setup-and-config

Configure and boot Phaser 4 games with renderer, scaling, and boot sequence.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/kehwar/pixi-square --skill game-setup-and-config-kehwar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-setup-and-config
Source: https://github.com/kehwar/pixi-square/tree/main/.agents/skills/game-setup-and-config
Command: npx skills add https://github.com/kehwar/pixi-square --skill game-setup-and-config-kehwar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers in creating and configuring a Phaser 4 game instance, covering renderer selection, canvas placement, scaling, pixel art, FPS, boot sequence, and nested config objects to ensure a correct and predictable startup.

Core Features & Use Cases

  • Supports configuring GameConfig parsing, renderer creation, boot lifecycle, and scale management for ready-to-run games.
  • Useful when starting new Phaser projects or adjusting game setup for different devices and performance targets.
  • Real-world scenario: you want a responsive 1024x768 game that adapts to window size while preserving pixel art and FPS targets.

Quick Start

Create a minimal Phaser 4 game by implementing a single scene and passing a basic config to new Phaser.Game.

Frequently Asked Questions about game-setup-and-config

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

FAQPage Schema
How do I configure a Phaser 4 game for pixel-perfect rendering?

Configure the Phaser 4 GameConfig with precise renderer selection and pixel art settings before boot to ensure the canvas starts with crisp, pixel-perfect rendering.

What's the best way to make a Phaser canvas responsive to window size?

The best way to create a responsive Phaser canvas is by applying scale management configurations within your GameConfig, allowing the game instance to adapt to window size while preserving your target dimensions and FPS.

Does Phaser 4 GameConfig support nested configuration objects for boot sequencing?

Yes, Phaser 4 GameConfig supports nested config objects, allowing you to define parsing, renderer creation, and boot lifecycle requirements for a predictable game startup sequence.

How do I set up a new Phaser project with specific FPS targets?

Set up a new Phaser project by passing a basic config to a new Phaser Game instance, defining specific FPS targets alongside renderer and scale management options for a ready-to-run game.

Why does my Phaser game startup sequence fail during DOM insertion?

Phaser game startup fails during DOM insertion if GameConfig parsing and boot lifecycle requirements are not met, making precise configuration of renderer creation and scale management essential for correct DOM placement.