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

2d-games

できること

このツールは2Dゲームの作成を助けます。キャラクターの動き方、タイルマップの使い方、カメラの設定、物理演算の適用などを、ブラウザやアプリで動くゲーム向けに説明します。

使う場面

  • ✓特殊なジャンプ操作があるプラットフォームゲームを作るとき。
  • ✓自由に動き回れるトップダウン視点のゲームを作るとき。
  • ✓より大きなアプリの中に、小さな2ゲームのセクションを追加するとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/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. Pair with game-development/web-games / game-development/engine-selection for framework choice.


Shell vs guest (web)

Setup 2D systems live…
Full-screen 2D game Entire app (Phaser/Kaplay/Pixi/Canvas)
Hybrid DOM + challenges Only inside guest viewports; tear down when done

1. Sprite Systems

Component Purpose
Atlas Combine textures, reduce draw calls
Animation Frame sequences (often 8-24 FPS)
Pivot Rotation/scale origin
Layering Z-order control

Animation Principles

  • Squash and stretch for impact
  • Anticipation before action
  • Follow-through after action

2. Tilemap Design

Factor Recommendation
Size 16x16, 32x32, 64x64
Auto-tiling Use for terrain
Collision Simplified shapes
Layer Content
Background Non-interactive scenery
Terrain Walkable ground
Props Interactive objects
Foreground Parallax overlay

3. 2D Physics

Shape Use Case
Box Rectangular objects
Circle Balls, rounded
Capsule Characters
Polygon Complex shapes
  • Choose a movement/collision model per mechanic; pixel-art rendering can coexist with physics
  • Fixed timestep for consistency
  • Layers for filtering

4. Camera Systems

Type Use
Follow Track player
Look-ahead Anticipate movement
Multi-target Two-player
Room-based Metroidvania
Static Board games, modal skill-checks

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
  • Decide whether rotation matters

6. Anti-Patterns

❌ Don't ✅ Do
Separate textures Use atlases
Complex collision shapes Simplified collision
Jittery camera Smooth following
Uncoordinated movement and physics Define one authority per body
Orphaned RAF/listeners after a guest closes Full teardown

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

When to Use

Use for canvas/Phaser/Kaplay/Pixi 2D systems, or guest viewports inside hybrid web apps.

Example

User request:

Add coyote time and jump buffering to our platformer while preserving the fixed physics timestep and testing corner collisions.

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.
よくある質問

「アトラス」とは何ですか?

複数の小さな画像を1枚の大きな画像にまとめたものです。こうすることで、ゲームの読み込みが速くなり、動作も軽くなります。

「タイルマップ」とは何ですか?

昔のゲームのように、小さなブロック(タイル)を並べて作る地図のことです。背景などの景色を効率よく作るために使われます。

「コヨーテタイム」とは何ですか?

足場から少しはみ出してしまっても、ジャンプできるようにする小さな救済措置のことです。プレイヤーにとって優しく、遊びやすいゲームになります。

詳細

作者による元の説明

2D game development principles. Sprites, atlases, tilemaps, physics, cameras, and genre patterns (platformer, top-down). Use for canvas/Phaser/Kaplay/Pixi 2D games or guest viewports inside hybrid web apps.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4682
ライセンス
MIT
更新日
2026/10/15

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

0

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

コメント

  • …

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

似ているスキル