ラボ

Nanobanana ゲームカード資産生成完全ガイド:7つのスタイル実戦事例とプロンプト集

AIで完璧なテキストとUIレイアウトを含むゲームカードを生成しませんか?本ガイドでは、Nanobanana (Gemini 3 Pro) と Midjourney の違いを徹底解説し、独自の「コンテナ・コンテンツ階層化」手法と、ファンタジー、SF、ドット絵など7つの即戦力プロンプトテンプレートを提供します。

一、 中核ロジック:なぜカード生成で「画像と文字が混ざってしまう」のか?

AIGCゲーム開発において、多くの開発者が直面する課題があります。それは、「Midjourneyは絵は綺麗だが、複雑なUIレイアウトが苦手で、文字が文字化けしてしまう」という点です。しかし、Google Gemini 3 Pro アーキテクチャに基づく Nanobanana プラットフォームは、その強力な論理推論能力SOTAレベルのテキストレンダリング能力によって、この問題を解決しました。

完璧なカードを生成するには、「コンテナ・コンテンツ階層化 (Container-Content Layering)」 プロンプト手法を習得する必要があります。プロンプトを構造化し、AIに「物理的な枠(コンテナ)」と「内部のイラスト(コンテンツ)」を強制的に区別させるのです。

以下では、JSON構造化プロンプトと自然言語指示を活用し、7つの異なるスタイルの実戦事例を通じて、即戦力となるゲーム資産を生成する方法を解説します。

二、 実戦事例ライブラリ:7大主流カードスタイル・プロンプト

本章で提供するプロンプトは、Nanobanana プラットフォーム向けに論理的に最適化されています。最高の結果を得るには、Nano Banana Pro (Gemini 3 Pro) モデルの使用を推奨します。

1. クラシック・ハイファンタジー・クリーチャーカード (High Fantasy Creature)

適用シーン: 『ハースストーン』や『マジック:ザ・ギャザリング』のようなTCG
核心技術: 素材の区別(金と羊皮紙)による画像の融合防止、OCR能力による正確なタイトル生成。

High Fantasy Creature Card - Frost Giant

Prompt (プロンプトテンプレート):

Task: Create a high-quality fantasy trading card asset.
Layout:
*   Frame: An ornate heavy gold filigree border with embedded ruby gemstones in the corners. Use an antique metal texture.
*   Text Box: Below the illustration, a parchment paper texture box.
*   Stats Icon: In the bottom right corner, a cracked stone shield icon displaying the number "10" in red.
Content (Illustration):
*   Inside the frame, a dramatic oil painting of a "Frost Giant" wielding a massive ice club in a snowstorm.
*   Style: Blizzard entertainment concept art, dynamic lighting, cinematic composition.
Typography:
*   Inside the parchment box, strictly render the text "FROST GIANT" in a bold, black, medieval serif font. Ensure the text is legible and centered.

💡 デザイン解析:
Gemini は「イラストの下 (Below the illustration)」という空間ロジックを理解できるため、従来のAIによくある「巨人の顔に文字が重なる」といったミスを回避できます。


2. サイバーパンク・ホログラム装備カード (Cyberpunk HUD Item)

適用シーン: SF RPG、未来戦争テーマ
核心技術: 半透明マテリアルのレンダリング、等幅デジタルフォント (Monospaced)、発光エフェクトの制御。

Cyberpunk HUD Item Card - Plasma Rifle

Prompt (プロンプトテンプレート):

Context: Design a futuristic sci-fi trading card with a digital HUD interface style.
Structure:
*   Border: A sleek, glowing cyan neon frame with hexagonal mesh patterns. Material should look like holographic glass projection.
*   Subject: Center is a 3D render of a "Plasma Rifle" weapon floating in zero gravity. Matte black finish with glowing blue energy coils.
*   UI Overlay: A semi-transparent dark blue tech-panel at the bottom.
Data:
*   Render the text "PLASMA RIFLE" in a white, monospaced digital font (console style).
*   Top left corner features a yellow warning triangle icon.
Aesthetic: High-tech, glitch art aesthetic, unreal engine 5 render, ray tracing.

💡 デザイン解析:
「Holographic glass(ホログラムガラス)」と「Monospaced font(等幅フォント)」の使用が鍵です。Gemini のSF UIに対する理解度は純粋な画像生成モデルを遥かに凌駕しており、ゲームインターフェース特有の「浮遊感」を正確に再現します。


3. JSON構造化生成によるRPGアイテムカード (Structured RPG Potion)

適用シーン: 大量生成が必要なRPGのインベントリアイコンやカード
核心技術: JSONパラメータ化プロンプト (Parameterized Prompting)。この形式はGeminiに対して極めて有効で、構造の安定性を最大限に保証します。

JSON Structured RPG Potion Card - Elixir of Void

Prompt (JSON形式):

{
  "Task": "Design a complete digital asset for a RPG Item Card",
  "Object_Definition": {
    "Type": "Vertical Item Card",
    "Background": "Solid Black (for masking)"
  },
  "Layout_Structure": {
    "Border": "Silver metallic frame with celtic knots",
    "Art_Window": "Arched window occupying top 70%",
    "Text_Area": "Dark velvet panel at bottom"
  },
  "Content_Illustration": {
    "Subject": "A potion bottle filled with glowing purple liquid",
    "Effect": "Sparkles and smoke swirling inside the glass",
    "Style": "Isometic 3D icon style, high gloss"
  },
  "Typography_Data": {
    "Title_Text": "ELIXIR OF VOID",
    "Title_Style": "Gold, Serif, Elegant",
    "Stat_Badge": "Small circle in top-right with text 'LV.5'"
  }
}

💡 デザイン解析:
JSONの括弧構造を使用することで、モデルに「UIレイヤー」と「イラストレイヤー」を強制的に分離させます。これは現在、複雑なUIレイアウトを生成する上で最も成功率の高い方法です。


4. ダーク・アールヌーヴォー風タロットカード (Dark Art Nouveau Tarot)

適用シーン: ナラティブゲーム、占いシステム
核心技術: フルアート制御、金箔質感シミュレーション、インセットボーダー。

Dark Art Nouveau Tarot Card - The Moon

Prompt (プロンプトテンプレート):

Type: Generate a full-art Tarot card design titled "THE MOON".
Composition: The illustration covers the entire card surface. Add a delicate, thin silver line border inset 5mm from the edge (inset border).
Visuals: A mysterious wolf howling at a large pale moon, surrounded by twisted thorns.
Style: Alphonse Mucha mixed with H.R. Giger. Dark tones, intricate silver line work, flat colors, watercolor texture.
Text: At the bottom center, a decorative ribbon banner containing the text "THE MOON" in vintage capital letters.
Material: Simulate a silver foil print effect on textured black cardstock.

💡 デザイン解析:
キーワード「Full-art(フルアート)」と「Inset border(内側の枠)」により、AIに重厚な外枠を生成させないよう指示します。Gemini のテキストレンダリング能力は、装飾的なタイトルの生成にも活用できます。


5. ドット絵レトロキャラクターカード (Retro Pixel Art Card)

適用シーン: インディーゲーム、GBA風ノスタルジックゲーム
核心技術: スタイル固定、解像度シミュレーション。

Retro Pixel Art Card - Pixel Knight

Prompt (プロンプトテンプレート):

Style: 16-bit pixel art style, SNES game asset.
Layout: A character profile card with a chunky grey stone border.
Character: A pixel art "Pixel Knight" with iron armor and a blue cape, standing in a dungeon.
UI Elements:
*   Bottom text box with blue background.
*   Text: "KNIGHT" in white pixelated font.
*   HP Bar: A red bar icon on the left side of the frame.
Resolution: Keep details sharp and blocky, no anti-aliasing.

💡 デザイン解析:
Geminiは高画質が得意ですが、「Pixelated font(ドットフォント)」や「16-bit」を指定すれば、レトロUIも正確に生成できます。「No anti-aliasing(アンチエイリアスなし)」を指定して、ピクセルのエッジを鮮明に保つのがポイントです。


6. 世紀末ウェイストランド車両カード (Post-Apocalyptic Vehicle)

適用シーン: 荒廃した世界でのサバイバル、戦車バトルゲーム
核心技術: 変数注入法 (Variable Injection) —— UIを固定し、主体のみを入れ替える。

Post-Apocalyptic Vehicle Card - Interceptor

Prompt (プロンプトテンプレート):

Product View: A collectible trading card on a dirty metal table.
Card Frame: Rusted iron plates bolted together, industrial hazard stripes (yellow/black) on the edges.
Main Image: A modified muscle car with spikes and armor plating, driving through a desert dust storm. Mad Max style.
Data Layer:
*   Top Label: Stenciled text "INTERCEPTOR" in white spray paint style.
*   Stats: A gear icon in the bottom right corner with the number "88".
Consistency: Strong separation between the rusty frame and the painted illustration.

💡 デザイン解析:
このテンプレートは「量産」に適しています。実際のワークフローでは、Card Frame の記述を変えずに、Main Image 内の車両記述だけを変更することで、統一感のあるカードセットを生成できます。


7. ミニマリストUIスキルアイコンカード (Minimalist Modern Skill Card)

適用シーン: 現代的なモバイルゲーム、フラットUIデザイン
核心技術: ベクタースタイル、余白の活用、CSSコード補助。

Minimalist UI Skill Card - Thunder

Prompt (プロンプトテンプレート):

Design: A flat vector art skill card for a mobile game.
Shape: Rounded rectangle card with a soft shadow. Background color is solid pastel blue.
Icon: A simple white vector icon of a "Lightning Bolt" in the center.
Typography: Clean, Sans-Serif bold text "THUNDER" at the bottom center.
Detail: No texture, clean lines, flat colors, Dribbble UI style.
Instruction: Leave the top area empty for potential status icons.

💡 デザイン解析:
現代的なUIには、「Flat Vector(フラットベクター)」や「No texture(テクスチャなし)」を使用して、AI特有の厚塗り感を取り除きます。極めて正確なレイアウトが必要な場合は、Geminiのコード生成能力を活用して、画像の上に重ねるCSSコードを直接書かせることも可能です。


三、 高度なワークフロー:生成から実装へのラストワンマイル

1. 修正と微調整 (Inpainting)

生成されたカードの文字が「Dragon」ではなく「Draagon」になっていたり、指が一本多かったりしても、決して再生成しないでください
Nanobanana のマルチターン会話機能を活用しましょう:

2. スタイル転送 (Style Transfer)

Midjourney v6 は依然として画風の王者です。最適なワークフローは以下の通りです:

  1. MJでスタイル画像を生成: 光と配色のリファレンスを取得します。
  2. Nanobananaで構造を生成: MJの画像をリファレンス(Reference Image)としてアップロードし、前述のJSONプロンプトと組み合わせて、Geminiに「MJの画風で正確なUIレイアウトを描かせる」のです。

3. 後処理

プロンプトには常に "Isolate on solid black background" を含めることをお勧めします。Gemini 3 Pro はまだ完全な透過チャンネル(アルファチャンネル)を生成できませんが、純粋な黒背景であれば、Photoshopの「スクリーン(Screen)」描画モードや自動選択ツールを使用して、複雑な光のエフェクト(ホログラムスクリーンなど)を簡単に抽出できます。


結び:
Nanobanana (Gemini 3 Pro) の論理推論能力により、カードデザインは「運任せのガチャ」から「制御可能なエンジニアリング生産」へと変わりました。上記のJSONテンプレートと階層化ロジックを使いこなせば、高品質なゲーム資産ライブラリを10倍の速度で構築できるでしょう。

(本チュートリアルは Gemini 3 Pro モデルの特性に基づいています。一部の高度な機能は Nanobanana Pro バージョンでのみ体験可能です)