Game Setup And Config
Phaser 4 game setup and GameConfig reference covering renderer, scaling, pixel art, FPS, and boot flow.
- CCM score
- 78 of 100
- skills.sh installs
- 1.6K
- GitHub stars
- 40.8K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers game instance creation with
new Phaser.Game(config), the boot sequence, and config parsing into sub-objects - Includes renderer constants (
AUTO,CANVAS,WEBGL,HEADLESS), pixel art and smooth pixel art modes, scaling, FPS limits, and a full top-level GameConfig table - Enforces that
pixelArtandsmoothPixelArteach override antialias and roundPixels settings, and thatscalevalues take priority over top-level width and height - Designed for developers setting up new Phaser 4 projects who need to configure rendering, canvas placement, and input options
Install
$ npx -y skills add phaserjs/phaser --skill game-setup-and-config -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Game Setup and Config
How to create a Phaser.Game instance with the right GameConfig options for renderer, scaling, pixel art, FPS, and canvas placement.
Key source paths: src/core/Game.js, src/core/Config.js, src/core/typedefs/GameConfig.js, src/const.js, src/scale/const/
Related skills: ../scenes/SKILL.md, ../loading-assets/SKILL.md, ../scale-and-responsive/SKILL.md
Quick Start
The simplest possible Phaser 4 game -- a single scene with the default 1024×768 canvas:
class MyScene extends Phaser.Scene {
preload() {
this.load.image('logo', 'assets/logo.png');
}
create() {
this.add.image(400, 300, 'logo');
}
}
const config = {
type: Phaser.AUTO,
scene: MyScene
};
const game = new Phaser.Game(config);
new Phaser.Game(config) triggers the entire boot sequence: config parsing (Config), renderer creation, DOM insertion, and the game loop (TimeStep). The game waits for DOMContentLoaded before booting.
Core Concepts
Boot Sequence (src/core/Game.js)
Details
- Repository
- github.com/phaserjs/phaser
- Categories
- Game Development, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the game-setup-and-config skill help with?
It covers creating a new Phaser 4 game instance and configuring GameConfig options. It handles renderer selection, canvas setup, scaling, pixel art, FPS settings, boot sequence, and config sub-objects.
How do I install the game-setup-and-config skill?
Run npx -y skills add phaserjs/phaser --skill game-setup-and-config -y in your project. It then lets your agent set up a Phaser game with the right GameConfig options for renderer, scaling and pixel art.
How do I configure Phaser for pixel art games?
Set pixelArt to true in the config and Phaser turns off antialiasing and enables roundPixels automatically. The skill includes a full pixel art example that pairs a small width and height with a fit scale mode and integer zoom.
Where does this skill stand in the Game Development category?
It sits in the Game Development category on Claude Marketplaces, alongside game-feel, game-ui-ux, level-design, higgsfield-game-generation and godot-gdscript-patterns. It focuses specifically on Phaser 4 setup and GameConfig options.
More from phaserjs/phaser
All 8Similar to Game Setup And Config
More Game Developmenttilemapsphaserjs/phaser1.3K installsPhaser 4 tilemap guide covering Tiled JSON loading, layers, tile collision, and GPU-accelerated rendering.
game-enginegithub/awesome-copilot13.8K installsBrowser game engine guide covering Canvas, WebGL, physics, controls, and publishing workflows.
v4-new-featuresphaserjs/phaser1.3K installsPhaser 4's new rendering features: Filters, RenderNodes, CaptureFrame, Gradient, Noise, and GPU layers.
phaserplayableintelligence/game-creator1.6K installsPhaser 3 game development guide for building TypeScript browser games with scenes, EventBus, and restart-safe state.
phaser-gamedevchongdashu/phaserjs-tinyswords1.1K installsPhaser 3 scene-based game development with Arcade and Matter physics, tilemaps, animations, and input handling.
game-developmentsickn33/agentic-awesome-skills4K installsOrchestrator skill that routes game projects to platform, dimension, and engine sub-skills, with universal game-loop principles.