game-setup-and-config

Bootstrap Phaser 4 games with GameConfig renderer, canvas, and scaling options.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers bootstrap Phaser 4 games by guiding renderer selection, canvas setup, scaling decisions, pixel-art settings, FPS tuning, boot sequencing, and all necessary GameConfig sub-objects.

Core Features & Use Cases

  • Bootstrap and configure a new Phaser.Game instance with a complete GameConfig that covers renderer, scale, and rendering options.
  • Adjust visuals and performance through pixelArt, FPS, antialiasing, and scale settings for various display targets.
  • Understand boot lifecycle including Config parsing, renderer creation, DOM insertion, and the main game loop, with references to core files for deeper dives.

Quick Start

Create a minimal Phaser 4 game by defining a simple config and instantiating new Phaser.Game(config).

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 instance with the correct renderer and scaling options?

To configure a Phaser 4 game, define a GameConfig object specifying renderer, scale, and canvas settings, then pass it to new Phaser.Game(config) to handle setup and boot sequencing.

What is the boot lifecycle sequence when starting a Phaser 4 game?

The Phaser 4 boot lifecycle involves parsing the GameConfig, creating the renderer, inserting the canvas into the DOM, and starting the main game loop across configured scenes.

How do I enable pixel art rendering and adjust FPS limits in Phaser 4?

Enable pixel art and adjust FPS in Phaser 4 by setting the pixelArt and fps properties within your GameConfig object before instantiation to tune visuals and performance.

Can I swap renderers or adjust canvas settings after creating a Phaser 4 game?

Phaser 4 renderer and canvas configurations are established during the initial boot sequence via the GameConfig, meaning renderer swapping applies to scenarios creating new games or defining config objects.

What's the best way to structure GameConfig sub-objects for scaling across different display targets?

Structure GameConfig sub-objects by defining scale and rendering options like antialiasing and scale mode settings to properly adjust visuals and performance for various display targets.

Why does my Phaser 4 game fail to boot correctly after passing a config object?

Boot failures often stem from incomplete or invalid GameConfig sub-objects, preventing proper renderer creation or DOM insertion during the Phaser 4 boot sequence.