本文へスキップ
Skillpedia
一般的なプログラミング33k · #8690

2d-games

できること

このスキルは、アニメーション、レベル設計、衝突判定、カメラの動きといった2Dゲーム制作の基本原則をAIに与えます。横スクロールなどの2Dゲームを作る人向けです。

使う場面

  • ✓2Dキャラクターのスプライトアニメーションを設計してほしいとき。
  • ✓タイルでステージを作り、レイヤーについて助言がほしいとき。
  • ✓衝突判定や、プレイヤーを追いかけるカメラを設定したいとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/game-development/2d-games/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/game-development/2d-games/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“2Dプラットフォーマーで、プレイヤーを追いかけるカメラを設定する手伝いをしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、2Dゲームの各部分について指針をエージェントに与えます。エージェントはそれを使って、ゲームのコードを書いたりレビューしたりする際に、実用的な判断をします。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

2D Game Development

Principles for 2D game systems.


1. Sprite Systems

Sprite Organization

Component Purpose
Atlas Combine textures, reduce draw calls
Animation Frame sequences
Pivot Rotation/scale origin
Layering Z-order control

Animation Principles

  • Frame rate: 8-24 FPS typical
  • Squash and stretch for impact
  • Anticipation before action
  • Follow-through after action

2. Tilemap Design

Tile Considerations

Factor Recommendation
Size 16x16, 32x32, 64x64
Auto-tiling Use for terrain
Collision Simplified shapes

Layers

Layer Content
Background Non-interactive scenery
Terrain Walkable ground
Props Interactive objects
Foreground Parallax overlay

3. 2D Physics

Collision Shapes

Shape Use Case
Box Rectangular objects
Circle Balls, rounded
Capsule Characters
Polygon Complex shapes

Physics Considerations

  • Pixel-perfect vs physics-based
  • Fixed timestep for consistency
  • Layers for filtering

4. Camera Systems

Camera Types

Type Use
Follow Track player
Look-ahead Anticipate movement
Multi-target Two-player
Room-based Metroidvania

Screen Shake

  • Short duration (50-200ms)
  • Diminishing intensity
  • Use sparingly

5. Genre Patterns

Platformer

  • Coyote time (leniency after edge)
  • Jump buffering
  • Variable jump height

Top-down

  • 8-directional or free movement
  • Aim-based or auto-aim
  • Consider rotation or not

6. Anti-Patterns

❌ Don't ✅ Do
Separate textures Use atlases
Complex collision shapes Simplified collision
Jittery camera Smooth following
Pixel-perfect on physics Choose one approach

Remember: 2D is about clarity. Every pixel should communicate.

よくある質問

このスキルがゲーム全体を作ってくれますか?

いいえ。原則に関する助言を与えるものです。コードを書くのは、あなたのプロジェクト用にエージェントが行います。

どのゲームエンジンを使いますか?

一般的な2Dの原則に基づくため、お使いのエンジンやツールをエージェントに伝えてください。

アニメーションについて何を説明していますか?

フレームレート、つぶしと伸ばし、予備動作と後続動作を扱い、より滑らかな動きを目指します。

詳細

作者による元の説明

2D game development principles. Sprites, tilemaps, physics, camera.

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8690
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル