game-setup-and-config

Automate Phaser 4 game setup and boot sequence with GameConfig options.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill game-setup-and-config-giantcroissant-lunar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-setup-and-config
Source: https://github.com/GiantCroissant-Lunar/proto-breakout/tree/main/.agent/skills/01-phaser/game-setup-and-config
Command: npx skills add https://github.com/GiantCroissant-Lunar/proto-breakout --skill game-setup-and-config-giantcroissant-lunar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers avoid the tedious, error-prone setup of a new Phaser 4 game by guiding correct GameConfig usage, renderer selection, boot order, and canvas initialization.

Core Features & Use Cases

  • Configure renderer, scaling, pixel art, and FPS to ensure reliable boot and consistent visuals across devices.
  • Drive the Phaser boot sequence from new Phaser.Game through to the first active scene with clear mapping to core files (src/core/Game.js, src/core/Config.js) and related config sub-objects.
  • Use across typical game templates to standardize setup for consistent development and faster prototyping.

Quick Start

Create a minimal Phaser 4 game by instantiating new Phaser.Game(config) with the default GameConfig options.

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 Phaser 4 GameConfig options for renderer and scaling?

To configure Phaser 4 GameConfig options, instantiate new Phaser.Game with a config object specifying renderer, scaling, and pixel art settings. This Skill enforces parsing of defaults and supports both top-level and scale sub-objects for consistent visuals across devices.

What is the correct boot sequence for a new Phaser 4 game?

The Phaser 4 boot sequence maps to core files like src/core/Game.js and src/core/Config.js, driving initialization from new Phaser.Game through to the first active scene. This standardizes setup and ensures reliable canvas initialization.

How do I set up a minimal Phaser 4 game project?

To set up a minimal Phaser 4 game, instantiate new Phaser.Game with the default GameConfig options. This provides a standardized boot sequence and canvas initialization for faster prototyping across typical game templates.

Why does my Phaser 4 game have inconsistent scaling across devices?

Inconsistent scaling in Phaser 4 often results from misconfigured GameConfig scale sub-objects. Properly configuring the scale options during the new Phaser.Game setup ensures consistent visual rendering and reliable canvas initialization.

Do I need to manually configure the boot order in Phaser 4?

No, you do not need to manually configure the boot order. This Skill automates the Phaser 4 boot sequence by applying correct GameConfig usage, mapping directly to core files for reliable initialization from game start to the first scene.