flame-core

Document Flame Engine architecture and implementation patterns for Flutter 2D games.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/shirulot/codex-skill --skill flame-core-shirulot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flame-core
Source: https://github.com/shirulot/codex-skill/tree/main/flame-core
Command: npx skills add https://github.com/shirulot/codex-skill --skill flame-core-shirulot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive knowledge base for the Flame Engine, helping developers overcome the steep learning curve associated with component systems, collision detection, and game loop management in Flutter.

Core Features & Use Cases

  • Component Lifecycle Management: Learn how to properly load, mount, and update game entities to ensure smooth performance.
  • Collision & Physics: Implement robust hitboxes and collision callbacks for interactive gameplay elements.
  • Scene & Camera Control: Manage complex game states, camera movement, and UI overlays efficiently.
  • Use Case: Use this Skill to structure a 2D platformer, ensuring that player movement, enemy AI, and background parallax layers are organized and performant.

Quick Start

Consult the flame-core skill to understand how to implement a custom collision callback for a player character.

Frequently Asked Questions about flame-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement collision detection in a Flutter 2D game using Flame?

Implement collision detection in a Flame 2D game by defining component hitboxes and configuring collision callbacks to trigger interactive gameplay logic. This approach ensures robust hitbox management and accurate collision event handling.

How does the component lifecycle work in the Flame Engine?

The component lifecycle in the Flame Engine works through distinct phases of loading, mounting, and updating game entities. Properly managing these lifecycle states ensures smooth rendering performance and optimized game loop execution.

What is the best way to manage camera movement and scene control in Flame?

Manage camera movement and scene control in Flame by utilizing the framework's camera management features to handle complex game states and UI overlays. This approach ensures efficient tracking and scene rendering.

Can I structure a 2D platformer in Dart using the Flame framework?

Yes, you can structure a 2D platformer in Dart using the Flame framework. This Skill provides best practices for organizing player movement, enemy AI, and background parallax layers to ensure performant game structures.

Does Flame support audio integration and asset loading for 2D games?

Yes, Flame supports audio integration and asset loading for 2D games. The framework provides best practices for optimizing asset loading and managing audio components to ensure performant game structures.

Why are my Flame Engine game entities not updating during the game loop?

Flame Engine game entities may not update during the game loop if the component lifecycle is improperly managed. Ensure game entities are correctly loaded, mounted, and updated to maintain smooth performance and rendering.