mcpField
F
flame-core

flame-core

github.com/miles990Development2695 installsUpdated 40w ago
Repository

About flame-core

flame-core is a reference skill for developers building games with Flame Engine in Flutter. It organizes core concepts and practical guidance across game components, input, collisions, cameras, animation, and scene management.

Key features

  1. 01Component types and lifecycle
  2. 02Touch, keyboard, and joystick input
  3. 03Collision detection and hitboxes
  4. 04Camera setup and HUD
  5. 05Animation, scenes, audio, and particles
  6. 06Performance and debugging guidance

Use cases

  1. 01Choosing Flame component types for game logic
  2. 02Implementing player input and collision handling
  3. 03Adding camera behavior, animations, or scenes
  4. 04Consulting performance and debugging references

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/miles990/claude-software-skills --skill flame-core

After installing, type/flame-corein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
animation.md
audio.md
camera.md
collision.md
components.md
debug.md
input.md
particles.md
performance.md
scenes.md

Details

From the project README

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

TopicFileDescription
Componentsreferences/components.md組件生命週期、類型、最佳實踐
Inputreferences/input.md觸控、鍵盤、搖桿輸入處理
Collisionreferences/collision.md碰撞檢測、Hitbox 類型
Camerareferences/camera.md相機設置、跟隨、HUD
Animationreferences/animation.md精靈動畫、Effects 系統
Scenesreferences/scenes.mdRouterComponent、Overlays、UI
Audioreferences/audio.md音效、背景音樂、AudioPool
Particlesreferences/particles.md粒子系統、特效、爆炸效果
Performancereferences/performance.md效能優化、最佳實踐、常見問題
Debugreferences/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

TypeUse Case
ComponentLogic only
PositionComponentHas position/size
SpriteComponentStatic image
SpriteAnimationComponentAnimated sprite
SpriteAnimationGroupComponentMultiple states

Related Skills

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

Comments

Markdown supported