phaser-mobile
Installation
SKILL.md
Phaser 4 Mobile & Responsive
This guide covers Scale Manager configuration, touch controls, browser gesture prevention, mobile performance, Capacitor deployment, and PWA setup.
Scale Manager Configuration
The Scale Manager controls how Phaser maps its internal resolution to the screen.
// In GameConfig:
const config: Phaser.Types.Core.GameConfig = {
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: 800,
height: 600,
},
};