Skip to content
Skillv1.0.0

flame-core

Flame Engine core fundamentals - components, input, collision, camera, animation, scenes

by miles990(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from miles990/claude-software-skills (domain-applications/game-development/flame/flame-core/SKILL.md). Install upstream with npx skills add miles990/claude-software-skills --skill flame-core. Copyright stays with the author.

Flame Core Fundamentals

Flame Engine 核心基礎,涵蓋組件系統、輸入處理、碰撞檢測、相機、動畫與場景管理。

Quick Start

flutter create my_game && cd my_game
flutter pub add flame
flutter pub add flame_audio       # Optional
flutter pub add flame_tiled       # Optional
import 'package:flame/game.dart';
import 'package:flutter/material.dart';

void main() => runApp(GameWidget(game: MyGame()));

class MyGame extends FlameGame with HasCollisionDetection {
  @override
  Future<void> onLoad() async {
    camera.viewfinder.anchor = Anchor.topLeft;
  }
}

Reference Index

Topic File Description
Components references/components.md 組件生命週期、類型、最佳實踐
Input references/input.md 觸控、鍵盤、搖桿輸入處理
Collision references/collision.md 碰撞檢測、Hitbox 類型
Camera references/camera.md 相機設置、跟隨、HUD
Animation references/animation.md 精靈動畫、Effects 系統
Scenes references/scenes.md RouterComponent、Overlays、UI
Audio references/audio.md 音效、背景音樂、AudioPool
Particles references/particles.md 粒子系統、特效、爆炸效果
Performance references/performance.md 效能優化、最佳實踐、常見問題
Debug references/debug.md 除錯模式、日誌、效能監控

AI Usage Guide

需要了解組件系統? → Read references/components.md
需要處理輸入?     → Read references/input.md
需要碰撞檢測?     → Read references/collision.md
需要相機設置?     → Read references/camera.md
需要動畫效果?     → Read references/animation.md
需要場景管理/UI?  → Read references/scenes.md
需要音效/音樂?    → Read references/audio.md
需要粒子特效?     → Read references/particles.md
需要效能優化?     → Read references/performance.md
需要除錯/日誌?    → Read references/debug.md

Component Types Quick Reference

Type Use Case
Component Logic only
PositionComponent Has position/size
SpriteComponent Static image
SpriteAnimationComponent Animated sprite
SpriteAnimationGroupComponent Multiple states

Related Skills

  • flame-systems - 14 個遊戲系統(任務、對話、背包等)
  • flame-templates - 遊戲類型模板(RPG、平台、Roguelike)

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/miles990-claude-software-skills-flame-core/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

miles990-claude-software-skills-flame-core.ocm.jsonjson
{
  "ocm": "1",
  "id": "miles990-claude-software-skills-flame-core",
  "kind": "skill",
  "name": "flame-core",
  "description": "Flame Engine core fundamentals - components, input, collision, camera, animation, scenes",
  "publisher": "miles990",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "flame",
      "flutter",
      "dart",
      "2d-games",
      "game-engine",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Flame Engine core fundamentals - components, input, collision, camera, animation, scenes"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/miles990/claude-software-skills",
      "path": "domain-applications/game-development/flame/flame-core/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/miles990/claude-software-skills/blob/HEAD/domain-applications/game-development/flame/flame-core/SKILL.md",
      "key": "miles990/claude-software-skills/domain-applications/game-development/flame/flame-core/SKILL.md"
    }
  },
  "instructions": "# Flame Core Fundamentals\n\nFlame Engine 核心基礎,涵蓋組件系統、輸入處理、碰撞檢測、相機、動畫與場景管理。\n\n## Quick Start\n\n```bash\nflutter create my_game && cd my_game\nflutter pub add flame\nflutter pub add flame_audio       # Optional\nflutter pub add flame_tiled       # Optional\n```\n\n```dart\nimport 'package:flame/game.dart';\nimport 'package:flutter/material.dart';\n\nvoid main() => runApp(GameWidget(game: MyGame()));\n\nclass MyGame extends FlameGame with HasCollisionDetection {\n  @override\n  Future<void> onLoad() async {\n    camera.viewfinder.anchor = Anchor.topLeft;\n  }\n}\n```\n\n## Reference Index\n\n| Topic | File | Description |",
  "cost": {
    "context_tokens": 519
  }
}

Fetch it by URL: GET /api/v1/registry/miles990-claude-software-skills-flame-core/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.