flame-engine

Develop 2D games in Flutter using the Flame Engine.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/lvmp/tribal-idle --skill flame-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flame-engine
Source: https://github.com/lvmp/tribal-idle/tree/main/.agent/skills/flame-engine
Command: npx skills add https://github.com/lvmp/tribal-idle --skill flame-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and examples for developing 2D games using the Flame Engine within the Flutter framework, covering core game development concepts from basic setup to advanced features.

Core Features & Use Cases

  • Game Structure: Understand the FlameGame lifecycle, component system, and world management.
  • Visuals & Effects: Implement sprites, animations, parallax backgrounds, particles, and visual effects.
  • Interaction & Logic: Handle user input, collisions, camera control, and game state management for idle game mechanics.
  • Use Case: Develop a mobile idle game where players manage resources, upgrade buildings, and interact with a dynamic game world, leveraging Flame's component-based architecture and performance optimizations.

Quick Start

Use the flame-engine skill to create a basic FlameGame with a single SpriteComponent.

Frequently Asked Questions about flame-engine

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

FAQPage Schema
How do I build a 2D game in Flutter using Flame Engine?

To build a 2D game in Flutter using Flame Engine, you utilize a component-based architecture to manage the game loop, sprites, and lifecycle. This Skill provides specific examples for structuring your FlameGame and managing the game world.

What is the best way to handle collision detection and camera control in Flutter games?

Handling collision detection and camera control in Flutter games is managed through Flame Engine's built-in component system. You can implement interactive logic and dynamic perspectives by attaching these behaviors directly to your game components.

Do I need to know Dart and Flutter before using Flame Engine for game development?

Yes, you need an understanding of Dart and Flutter before using Flame Engine for game development. This Skill focuses on advanced game architecture, visual effects, and idle game mechanics rather than teaching the underlying framework basics.

Can I use Flame Engine to develop an idle game with resource management mechanics?

You can use Flame Engine to develop an idle game with resource management mechanics. The Skill covers specific patterns for idle game development, including handling game state, upgrading buildings, and managing resources within a dynamic world.

How do you implement visual effects and particle systems in a Flutter game?

You implement visual effects and particle systems in a Flutter game by leveraging Flame Engine's rendering capabilities. The Skill guides you through adding sprites, animations, parallax backgrounds, and dynamic particles to your components.

How does the FlameGame lifecycle work for managing components in Flutter?

The FlameGame lifecycle works by systematically initializing, updating, and rendering components within the Flutter game loop. This Skill explains how to manage this lifecycle, ensuring your visual elements and game logic update correctly over time.