web-games

Guides browser game development with framework selection, WebGPU adoption, and performance optimization.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/kaitoartz/dotfiles --skill web-games-kaitoartz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: web-games
Source: https://github.com/kaitoartz/dotfiles/tree/main/dot_gemini/config/skills/game-development/web-games
Command: npx skills add https://github.com/kaitoartz/dotfiles --skill web-games-kaitoartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Choosing the right framework and architecture for browser games is difficult given browser constraints like tab throttling, audio autoplay restrictions, and no local file access. This Skill provides decision trees and principles for building performant web games. ## Core Features & Use Cases - Framework Selection: Decision tree and comparison of Phaser 4, PixiJS 8, Three.js, and Babylon.js 7 for 2D and 3D games. - WebGPU & Performance Guidance: Browser support data, WebGL fallback strategy, and optimization priorities including asset compression, object pooling, and Web Workers. - Asset & PWA Strategy: Compression formats (KTX2, Draco, WebM/Opus), progressive loading phases, and PWA requirements for offline play. - Use Case: When starting a new 2D browser game, use this Skill to decide between Phaser and PixiJS, then plan asset compression and lazy loading to keep startup under 2MB. ## Quick Start Help me choose a framework and optimization strategy for a new 3D browser game targeting mobile users.

Frequently Asked Questions about web-games

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

FAQPage Schema
How do I choose a framework for a browser game?▼

Choose based on game type: Phaser 4 for full-featured 2D games, PixiJS 8 for 2D rendering and UI, Babylon.js 7 for 3D games needing physics and XR, and Three.js for lightweight 3D rendering and visualizations.

Phaser vs PixiJS for 2D web games?▼

Phaser 4 provides full game engine features like physics and scene management for complete 2D games. PixiJS 8 focuses on raw rendering power and UI, better when you want to build custom game logic on top.

Does WebGPU work in all browsers in 2025?▼

WebGPU is supported in Chrome and Edge since v113, Firefox since v131, and Safari since 18.0, covering roughly 73% of global users. New projects should use WebGPU with a WebGL fallback and feature-detect via navigator.gpu.

Why does audio not play automatically in browser games?▼

Browsers block audio autoplay until user interaction occurs. Create the AudioContext on the first click or tap, resume it if suspended, and use the Web Audio API with pooled, preloaded sounds.

What asset formats should web games use?▼

Use KTX2 with Basis Universal for textures, WebM/Opus for audio with MP3 fallback, and glTF with Draco or Meshopt compression for 3D models. Keep startup assets under 2MB and stream the rest on demand.

What are common web game performance mistakes?▼

Common anti-patterns include loading all assets upfront, ignoring tab visibility, blocking on audio load, skipping compression, and assuming fast connections. Instead use progressive loading, pause when hidden, and compress everything.