본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)48k · #4692

web-games

하는 일

이 도구는 웹 브라우저에서 실행되는 게임을 만드는 데 도움을 줍니다. 게임 유형(2D 또는 3D)에 따라 사용할 기술을 제안하고, 성능을 최적화하는 방법을 알려 줍니다.

사용하는 경우

  • ✓새 브라우저 게임에 가장 좋은 기술을 고를 때.
  • ✓진행 중인 게임을 더 빠르게 실행되도록 최적화할 때.
  • ✓게임이 여러 브라우저에서 작동하게 하는 방법을 이해하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/game-development/web-games/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/game-development/web-games/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“간단한 2D 브라우저 게임을 만들고 싶어요. 시작하기에 가장 좋은 도구는 무엇인가요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 만들고 싶은 게임 유형을 분석하고 Phaser나 PixiJS 같은 프레임워크를 제안합니다. 또한 파일 압축, 탭이 비활성화될 때 일시 정지하기 등 부드러운 플레이를 위한 팁도 제공합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Web Browser Game Development

Framework selection and browser-specific principles. For stack choice details see game-development/engine-selection.


1. Framework Selection

Decision Tree

What type of game?
│
├── 2D Game
│   ├── Full game engine features? → Phaser 4
│   ├── Fast prototype / jam?      → Kaplay
│   ├── Raw rendering power?       → PixiJS 8
│   └── Tiny / no dependency?      → Raw Canvas / WebGL
│
├── 3D Game
│   ├── Full engine (physics, XR)? → Babylon.js
│   └── Rendering focused?         → Three.js
│
├── Hybrid (DOM UI + canvas moments)
│   └── Custom shell + guest viewport
│       (Canvas/Kaplay/Phaser/Pixi inside a region/modal)
│
└── Narrative-first
    └── Ink (inkjs) or Twine export + DOM host

Comparison

Framework Type Best For
Raw Canvas / WebGL 2D / low-level Small scope, full control
Kaplay 2D toolkit Rapid prototypes
Phaser 4 2D engine Full game features
PixiJS 8 2D renderer Rendering, custom systems
Three.js 3D renderer Visualizations, lightweight 3D
Babylon.js 3D engine Full engine, XR

Hybrid shell + guest

Use when chrome is HTML (menus, inventories, text, dashboards) but bursts of play need a canvas:

  1. Mount guest in a container; pass context in.
  2. Run a local game loop in the guest.
  3. Return results (score, pass/fail); destroy guest (RAF, listeners, GL context as needed).

Do not let the guest own global app routing unless the product is a full-screen game.


2. WebGPU Adoption

Browser Support (2025)

Browser Support
Chrome ✅ Since v113
Edge ✅ Since v113
Firefox ✅ Since v131
Safari ✅ Since 18.0
Total ~73% global

Decision

  • New GPU-heavy projects: Use WebGPU with WebGL fallback
  • Broad legacy / simple 2D: Start with WebGL or Canvas 2D
  • Feature detection: Check navigator.gpu

3. Performance Principles

Browser Constraints

Constraint Strategy
No local file access Asset bundling, CDN
Tab throttling Pause when hidden (visibilitychange)
Mobile data limits Compress assets
Audio autoplay Require user interaction

Optimization Priority

  1. Asset compression - KTX2, Draco, WebP
  2. Lazy loading - Load on demand
  3. Object pooling - Avoid GC
  4. Draw call batching - Reduce state changes
  5. Web Workers - Offload heavy computation

4. Asset Strategy

Type Format
Textures KTX2 + Basis Universal (or WebP/PNG for simple 2D)
Audio WebM/Opus (fallback: MP3)
3D Models glTF + Draco/Meshopt
Phase Load
Startup Core assets, <2MB
Gameplay Stream on demand
Background Prefetch next level

5. PWA for Games

Benefits: offline play, install, fullscreen, optional push. Requirements: service worker, web app manifest, HTTPS.


6. Audio Handling

  • Create/resume AudioContext on first click/tap
  • Prefer Web Audio API; pool sources; preload common SFX
  • Compress with WebM/Opus when possible

7. Anti-Patterns

❌ Don't ✅ Do
Load all assets upfront Progressive loading
Ignore tab visibility Pause when hidden
Block on audio load Lazy load audio
Skip compression Compress everything
Assume fast connection Handle slow networks
Leave canvas engines running off-screen Tear down guests

Remember: Browser is the most accessible platform. Respect its constraints.

When to Use

Use when building HTML5/WebGL/WebGPU games, choosing a browser runtime, or wiring hybrid DOM+canvas guests.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

「하이브리드」 게임이란 무엇인가요?

일반 웹 페이지의 시각 요소(예: 메뉴)와, 브라우저의 캔버스처럼 더 발전된 기술을 쓰는 게임 영역을 섞은 게임입니다.

WebGPU란 무엇인가요?

게임이 브라우저에서 직접 컴퓨터의 그래픽 카드 성능을 활용해 더 복잡한 게임을 실행할 수 있게 하는 새로운 기술입니다.

브라우저 게임 최적화가 왜 중요한가요?

다양한 컴퓨터와 휴대폰에서, 느린 인터넷 연결에서도 게임이 잘 돌아가도록 하고, 기기의 자원을 너무 많이 쓰지 않도록 하기 위해서입니다.

상세 정보

작성자의 원본 설명

Web browser game development. Framework selection (Phaser, PixiJS, Kaplay, Canvas/WebGL, Three.js, Babylon.js), hybrid DOM+canvas, WebGPU, optimization, PWA, audio unlock. Use when building HTML5/WebGL/WebGPU games or choosing a browser runtime.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4692
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬