Toolverse
All skills

web-games

by davila7

Web browser game development principles. Framework selection, WebGPU, optimization, PWA.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Frontend
Views
42

About this skill

Web browser game development principles. Framework selection, WebGPU, optimization, PWA.

How to use

  1. Zainstaluj skill web-games w swoim środowisku Claude lub Codex. Skill udostępnia narzędzia do czytania, edycji i przeszukiwania plików (Read, Write, Edit, Glob, Grep), które będą potrzebne do pracy z kodem gry.

  2. Zapoznaj się z tabelą wyboru frameworka na podstawie typu gry: dla gier 2D z pełnym zestawem funkcji wybierz Phaser 4, dla renderowania i interfejsu użytkownika – PixiJS 8, dla gier 3D z wizualizacjami – Three.js, dla pełnego silnika z obsługą XR – Babylon.js 7.

  3. Zdecyduj o strategii renderowania: jeśli tworzysz nowy projekt, zaplanuj WebGPU z fallbackiem na WebGL (wspierane w ~73% przeglądarek na świecie od 2025 roku). Dla starszych projektów zacznij od WebGL i sprawdzaj dostępność WebGPU za pomocą navigator.gpu.

  4. Zastosuj optymalizacje wydajności w kolejności priorytetów: kompresja zasobów (KTX2, Draco, WebP dla tekstur; WebM/Opus dla audio), lazy loading zasobów na żądanie, object pooling aby uniknąć garbage collection, batching draw callów, oraz Web Workers do przesunięcia ciężkich obliczeń.

  5. Uwzględnij ograniczenia przeglądarki: pakuj zasoby i korzystaj z CDN (brak dostępu do plików lokalnych), wstrzymuj grę gdy karta jest ukryta, kompresuj zasoby dla urządzeń mobilnych, wymagaj interakcji użytkownika przed odtworzeniem dźwięku.

  6. Dla gier 3D wybierz odpowiedni format: modele w formacie glTF z kompresją Draco lub Meshopt, tekstury w KTX2 z Basis Universal, audio w WebM/Opus z fallbackiem na MP3.

Related skills

bubbletea

by hmans

Browse Bubbletea TUI framework documentation and examples. Use when working with Bubbletea components, models, commands, or building terminal user interfaces in Go.

Frontend
2158

interactive-dashboard-builder

by anthropics

Build self-contained interactive HTML dashboards with Chart.js, dropdown filters, and professional styling. Use when creating dashboards, building interactive reports, or generating shareable HTML files with charts and filters that work without a server.

Frontend
2298

web-research

by langchain-ai

Use this skill for requests related to web research; it provides a structured approach to conducting comprehensive web research

Frontend
18114

better-icons

by better-auth

Use when working with icons in any project. Provides CLI for searching 200+ icon libraries (Iconify) and retrieving SVGs. Commands: `better-icons search u003cqueryu003e` to find icons, `better-icons get u003cidu003e` to get SVG. Also available as MCP server for AI agents.

Frontend
2037

frontend-slides

by sickn33

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual

Frontend
65135

zustand

by lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

Frontend
36126