Communitygithub.com

SamuelChien/mega-skills-collection

2Dゲーム開発の原則。スプライト、タイルマップ、物理演算、カメラ。

mega-skills-collection とは?

このスキルは、2Dゲーム開発における基本的な設計原則と実装パターンを提供します。スプライトシステム、タイルマップデザイン、2D物理演算、カメラシステム、ジャンル別のパターン(プラットフォーマーやトップダウンなど)、そして一般的なアンチパターンを網羅しています。開発者は、パフォーマンス最適化(アトラス統合、簡略化された衝突形状)、ゲームプレイの質(コヨーテタイム、ジャンプバッファリング、滑らかなカメラ追従)、および明確なビジュアルコミュニケーションの原則を理解できます。このスキルは、あらゆる2Dゲームエンジンやフレームワーク(Unity、Godot、Phaserなど)に適用可能で、AIエージェントが2Dゲーム開発のワークフローやアクションを実行する際のガイドとして機能します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/2d-games

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

2Dゲーム開発

2Dゲームシステムのための原則。


1. スプライトシステム

スプライトの整理

コンポーネント目的
アトラステクスチャを統合し、描画コールを削減
アニメーションフレームの連続
ピボット回転・スケールの原点
レイヤリングZオーダー制御

アニメーションの原則

  • フレームレート:一般的に8〜24 FPS
  • 衝撃感を出すための押しつぶしと伸ばし
  • 動作の前の予備動作
  • 動作後のフォロースルー

2. タイルマップデザイン

タイルの考慮事項

要素推奨事項
サイズ16x16、32x32、64x64
自動タイル地形に使用
コリジョン簡略化された形状

レイヤー

レイヤー内容
背景操作不能な景色
地形歩行可能な地面
小道具操作可能なオブジェクト
前景パララックスオーバーレイ

3. 2D物理演算

衝突形状

形状使用例
ボックス長方形オブジェクト
円ボール、丸いもの
カプセルキャラクター
ポリゴン複雑な形状

物理演算の考慮事項

  • ピクセルパーフェクト vs 物理ベース
  • 一貫性のための固定タイムステップ
  • フィルタリングのためのレイヤー

4. カメラシステム

カメラの種類

種類用途
追従プレイヤーを追跡
先読み動きを予測
マルチターゲット2人プレイ
ルームベースメトロイドヴァニア

画面揺れ

  • 短い持続時間(50〜200ms)
  • 減衰する強度
  • 控えめに使用

5. ジャンル別パターン

プラットフォーマー

  • コヨーテタイム(端を離れた後の猶予)
  • ジャンプバッファリング
  • 可変ジャンプ高さ

トップダウン

  • 8方向または自由移動
  • エイムベースまたは自動エイム
  • 回転の有無を検討

6. アンチパターン

❌ すべきでないこと✅ すべきこと
個別のテクスチャアトラスを使用
複雑な衝突形状簡略化された衝突
ガタつくカメラ滑らかな追従
物理演算におけるピクセルパーフェクトどちらか一方のアプローチを選択

覚えておいてください: 2Dは明瞭さが重要です。すべてのピクセルが意味を持つべきです。

使用タイミング

このスキルは、概要で説明されているワークフローやアクションを実行するために適用可能です。

制限事項

  • タスクが上記の範囲に明確に合致する場合にのみ、このスキルを使用してください。
  • 出力を、環境固有の検証、テスト、または専門家によるレビューの代わりとして扱わないでください。
  • 必要な入力、権限、安全境界、または成功基準が不足している場合は、立ち止まって確認を求めてください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through hash verification.

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

関連スキル